:root{--ink:#192740;--muted:#607088;--blue:#3156e8;--lime:#d8fc71;--bg:#f3f5f9;--line:#e1e6ef;--white:#fff;--radius:20px;font-family:Pretendard,"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;color:var(--ink);background:var(--bg);font-size:16px;line-height:1.6;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--blue);outline-offset:4px}button{color:inherit}h1,h2,h3,p{margin:0}h1{font-size:2rem;line-height:1.4;letter-spacing:-.05em}h2{font-size:1.25rem;line-height:1.5;letter-spacing:-.035em}h3{font-size:1.1rem}svg{display:block;flex-shrink:0}small{font-size:.875rem}strong{font-weight:750}.skip{position:fixed;top:-100px;left:20px;z-index:9;background:var(--ink);color:#fff;padding:12px}.skip:focus{top:10px}.shell{max-width:1440px;margin:auto;display:grid;grid-template-columns:235px minmax(0,1fr);min-height:100vh}.rail{position:sticky;top:0;height:100dvh;background:#fff;border-right:1px solid var(--line);padding:36px 24px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:9px;font-size:1.55rem;letter-spacing:-.055em;font-weight:850}.brandmark{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--ink);color:var(--lime);font:700 32px/1 system-ui}.prototype{font-size:.75rem;letter-spacing:0;background:#edf0f7;color:#5b6780;border-radius:6px;padding:2px 6px;margin-left:2px;font-weight:600}.rail-context{font-size:.875rem;color:var(--muted);margin:15px 0 36px 42px}.rail-nav{display:grid;gap:8px}.nav-item{display:flex;align-items:center;gap:12px;min-height:52px;padding:12px 15px;border-radius:13px;font-size:.95rem;color:var(--muted);font-weight:650}.nav-item.active{background:#edf1ff;color:var(--blue)}.rail-foot{margin-top:auto;padding:20px 4px 0}.tinylabel{font-size:.8rem;color:var(--muted);display:block}.rail-foot strong{display:block;font-size:.95rem;margin:5px 0 12px}.rail-foot p{font-size:.875rem;color:var(--muted)}.workspace{min-width:0}.mobile-header{display:none}main{max-width:1050px;margin:auto;padding:48px 44px 70px;outline:none}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:27px}.subtitle{color:var(--muted);font-size:.95rem;margin-top:6px}.date-pill{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--line);border-radius:25px;padding:9px 13px;font-size:.8rem;white-space:nowrap;margin-top:6px}.notice{background:var(--ink);color:#fff;border-radius:var(--radius);padding:22px 24px;display:flex;gap:18px;align-items:center;margin-bottom:31px}.notice-symbol{display:grid;place-items:center;background:var(--lime);color:var(--ink);border-radius:12px;width:48px;height:48px;font-size:1.45rem;font-weight:800;flex-shrink:0}.notice p{font-size:.875rem;color:#c6cfe0;margin-top:2px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.text-button{background:none;border:0;padding:8px 0;min-height:44px;font-size:.875rem;color:var(--blue);font-weight:700}.subject-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.subject-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:1px solid var(--line);background:#fff;padding:21px;border-radius:var(--radius);min-height:177px;transition:transform .15s,border-color .15s;min-width:0}.subject-card:hover{border-color:#a7b5e5;transform:translateY(-2px)}.subject-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:var(--tint);color:var(--tone);margin-bottom:16px}.subject-card strong{font-size:1.1rem;letter-spacing:-.035em}.subject-card small{font-size:.8rem;color:var(--muted);margin-top:4px;line-height:1.65}.subject-card .card-bottom{margin-top:auto;padding-top:13px;display:flex;justify-content:space-between;width:100%;align-items:center;font-size:.75rem;color:var(--muted)}.tag{padding:3px 7px;border-radius:6px;font-size:.75rem;font-weight:650;background:#f1f4fa;color:var(--muted)}.support-row{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:28px}.support-card{display:flex;align-items:center;text-align:left;gap:15px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;min-height:105px}.support-icon{width:44px;height:44px;background:#eef2ff;color:var(--blue);display:grid;place-items:center;border-radius:13px;flex-shrink:0}.support-card p{font-size:.875rem;color:var(--muted);margin-top:3px}.page-foot{margin-top:28px;font-size:.8rem;color:var(--muted)}.icon-button{border:0;background:#f2f4f8;border-radius:50%;width:44px;height:44px;display:grid;place-items:center;flex-shrink:0}.toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);max-width:calc(100% - 32px);background:var(--ink);color:#fff;border-radius:12px;padding:12px 18px;opacity:0;pointer-events:none;z-index:8;transition:opacity .18s,transform .18s;font-size:.875rem}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:0;border-radius:24px;padding:26px;width:min(520px,calc(100% - 32px));max-height:85dvh;overflow:auto;color:var(--ink);box-shadow:0 25px 100px #19274026}dialog::backdrop{background:#19274080}.sheet-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:15px}
@media(max-width:1050px){.shell{grid-template-columns:205px minmax(0,1fr)}.rail{padding:30px 18px}main{padding:38px 28px 55px}.subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.date-pill{display:none}.support-row{grid-template-columns:1fr}}
@media(max-width:760px){.shell{display:block}.rail{display:none}.workspace{max-width:640px;margin:auto}.mobile-header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;background:#fff;border-bottom:1px solid var(--line)}.brand{font-size:1.4rem}.exam-label{font-size:.8rem;color:var(--muted);font-weight:650}main{padding:28px 20px 55px}.page-heading{margin-bottom:22px}h1{font-size:1.75rem}.subtitle{font-size:.875rem}.notice{padding:17px;gap:12px;margin-bottom:26px;border-radius:18px}.notice strong{font-size:.95rem}.notice p{font-size:.8rem;line-height:1.65}.notice-symbol{width:40px;height:40px;font-size:1.2rem}.section-head{margin-bottom:12px}.subject-grid{gap:12px}.subject-card{padding:17px;min-height:174px;border-radius:18px}.subject-icon{margin-bottom:13px}.subject-card strong{font-size:1.05rem}.support-row{gap:12px;margin-top:24px}.support-card{padding:17px;border-radius:18px;min-height:96px}.toast{bottom:calc(24px + env(safe-area-inset-bottom))}dialog{margin:auto 0 0;width:100%;max-width:none;border-radius:24px 24px 0 0;padding:24px 22px calc(26px + env(safe-area-inset-bottom))}.page-foot{line-height:1.7}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.filter-row{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:24px}.filter-pill{font-size:.875rem;padding:8px 13px;border-radius:9px;background:#fff;border:1px solid var(--line);color:var(--muted)}.filter-pill.selected{background:var(--ink);color:#fff;border-color:var(--ink)}.back-link{display:inline-flex;gap:7px;align-items:center;font-size:.875rem;color:var(--muted);min-height:44px;margin-bottom:16px}.subject-heading{display:flex;align-items:center;gap:17px;margin-bottom:27px}.subject-icon.large{width:64px;height:64px;border-radius:20px;margin:0;flex-shrink:0}.year-tabs{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding:4px 3px 14px;margin-bottom:15px}.year-tabs::-webkit-scrollbar{display:none}.year-tab{border:1px solid var(--line);background:#fff;border-radius:10px;min-height:44px;padding:9px 16px;font-size:.875rem;flex-shrink:0}.year-tab.selected{color:#fff;background:var(--ink);border-color:var(--ink)}.concept-panel,.reference-panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:25px;margin-bottom:18px}.panel-description{font-size:.9rem;color:var(--muted);margin:5px 0 18px}.concept-item{display:flex;gap:14px;align-items:center;padding:19px 0;border-top:1px solid var(--line)}.concept-number{font-size:.9rem;color:var(--muted);font-weight:700}.concept-item strong{font-size:1rem}.concept-mark{margin-left:auto;color:#8997ad}.hint{font-size:.8rem;color:var(--muted);line-height:1.8;margin-top:14px}.reference-flow{display:flex;gap:8px;flex-wrap:wrap;margin:17px 0}.reference-flow span{font-size:.8rem;background:#f0f3fc;color:var(--blue);border-radius:7px;padding:7px 10px}.reference-panel>p{font-size:.9rem;color:var(--muted);line-height:1.8}.empty-notes{text-align:center;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:44px 22px}.empty-symbol{display:grid;place-items:center;width:80px;height:80px;margin:0 auto 23px;border-radius:25px;background:#eef2ff;color:var(--blue)}.empty-notes h2{font-size:1.25rem}.empty-notes p{font-size:.95rem;color:var(--muted);margin:12px 0 25px}.primary-button,.secondary-button{display:inline-flex;justify-content:center;align-items:center;gap:9px;border-radius:12px;padding:13px 18px;min-height:48px;line-height:1.5;font-size:.95rem;font-weight:700;border:1px solid transparent}.primary-button{background:var(--blue);color:#fff}.secondary-button{background:#fff;border-color:var(--line)}.full{width:100%;margin-top:24px}.save-guide{padding:25px 4px}.save-guide>div{display:flex;align-items:flex-start;gap:14px;margin-top:19px;color:var(--muted);font-size:.9rem}.save-guide strong{color:var(--ink)}.sample-notice{display:flex;gap:13px;align-items:flex-start;padding:15px 17px;background:#eaf0ff;border-radius:12px;margin-bottom:20px}.sample-notice .tag{background:#dce6ff;color:#3554ab;white-space:nowrap;margin-top:3px}.sample-notice p{font-size:.8rem;color:#496089;line-height:1.75}.selection-row{display:flex;align-items:center;justify-content:space-between;margin:5px 0 18px;font-size:.875rem;color:var(--muted)}.selection-row label,.note-selector{display:inline-flex;gap:10px;align-items:center;min-height:44px;cursor:pointer}input[type=checkbox]{width:20px;height:20px;margin:0;accent-color:var(--blue);flex-shrink:0}.selection-row label{color:var(--ink)}.note-list{display:grid;gap:16px}.note-card{border:1px solid var(--line);background:#fff;border-radius:18px;padding:21px}.note-meta{display:flex;justify-content:space-between;align-items:center;gap:12px}.note-selector{font-size:.875rem;font-weight:700}.answer-badge{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#fff0f1;color:#b33749;font-weight:850;font-size:.95rem;flex-shrink:0}.note-text{font-size:1.05rem;line-height:1.9;margin:13px 0 15px;word-break:keep-all;overflow-wrap:anywhere}.note-source{font-size:.8rem;color:var(--muted);margin-bottom:14px}.note-card details{border-top:1px solid var(--line)}.note-card summary{padding:16px 0 0;min-height:44px;cursor:pointer;color:var(--blue);font-size:.875rem;font-weight:700}.note-explanation{padding-top:20px}.note-explanation p{font-size:.95rem;line-height:1.9;margin:6px 0 18px}.correct-text{background:#f0f5fd;padding:15px;border-radius:10px}.note-explanation small{font-size:.8rem;color:var(--muted)}.export-bar{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}.export-bar button:disabled{opacity:.5}.basis-list>div{display:flex;gap:14px;margin:20px 0}.basis-list h3{font-size:1rem;margin-bottom:6px}.basis-list p{font-size:.9rem;color:var(--muted);line-height:1.8}.step{width:30px;height:30px;border-radius:9px;background:#eaf0ff;color:var(--blue);display:grid;place-items:center;flex-shrink:0;font-weight:750;font-size:.875rem}.share-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:23px}.share-card h3{margin:18px 0 9px}.share-card p{color:var(--muted);font-size:.875rem}.share-card-link{border-top:1px solid var(--line);margin:20px -23px -23px;padding:14px;text-align:center;font-size:.875rem;font-weight:700}.copy-area{width:100%;min-height:260px;border:1px solid var(--line);border-radius:10px;padding:13px;font:inherit;font-size:.875rem}
@media(max-width:760px){.concept-panel,.reference-panel{padding:20px}.subject-heading{gap:14px}.subject-icon.large{width:54px;height:54px;border-radius:16px}.year-tab{padding:9px 12px}.note-card{padding:18px}.note-text{font-size:1rem}.note-selector{font-size:.8rem}.export-bar{gap:9px}.export-bar button{font-size:.875rem;padding:12px 9px}.sample-notice{padding:13px}.sample-notice p br{display:none}.empty-notes{padding:37px 18px}.page-heading .text-button{flex-shrink:0}}
@media(max-width:350px){main{padding-left:14px;padding-right:14px}.mobile-header{padding-left:16px;padding-right:16px}.subject-card{padding:14px}.subject-grid{gap:9px}.exam-label{display:none}}
.brand-cat{display:block;width:42px;height:42px;object-fit:contain;flex-shrink:0}.rail{overflow-y:auto;padding:27px 21px}.exam-selector{margin:26px 0 17px}.exam-button{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--line);background:#f6f8fc;color:var(--ink);width:100%;padding:12px 14px;border-radius:11px;min-height:48px;font-weight:750;font-size:.95rem;margin-top:7px}.exam-button span{font-size:.8rem;color:var(--muted);font-weight:500}.menu-label{font-size:.8rem;color:var(--muted);font-weight:700;display:block;margin:18px 10px 8px}.rail-nav{gap:3px}.rail .nav-item{min-height:42px;padding:8px 13px;font-size:.875rem}.rail .nav-item svg{width:19px;height:19px}.subject-nav{display:grid;gap:3px}.subject-nav-item{display:flex;gap:11px;align-items:center;border-radius:10px;min-height:43px;padding:9px 13px;font-size:.875rem;color:var(--muted)}.subject-nav-item.active{background:#edf1ff;color:var(--blue);font-weight:750}.subject-nav-item:hover{background:#f1f4fa}.rail-foot{padding-top:22px;margin-top:auto}.rail-foot p{display:none}.rail-foot strong{margin-bottom:0}.result-summary{display:flex;align-items:center;gap:15px;padding:22px 24px;background:var(--ink);color:#fff;border-radius:18px;margin-bottom:15px}.result-check{display:grid;place-items:center;border-radius:13px;width:48px;height:48px;background:var(--lime);color:var(--ink);flex-shrink:0}.result-summary strong{font-size:1.1rem}.result-summary p{font-size:.875rem;color:#cbd4e5;margin-top:4px}.result-summary b{color:var(--lime)}.finish-link{display:flex;justify-content:center;min-height:48px;align-items:center;color:var(--muted);font-size:.875rem;margin-top:13px}.menu-drawer{position:fixed;top:0;left:0;bottom:0;margin:0;width:320px;max-width:90vw;height:100dvh;max-height:100dvh;border-radius:0 22px 22px 0;padding:24px;overflow:auto}.menu-drawer .menu-label{margin-left:0}.drawer-subjects{display:grid;gap:5px;margin-top:13px}.drawer-subjects .subject-nav-item{min-height:49px;font-size:.95rem}.current-exam{margin:8px 0 10px}.exam-label{background:#f2f5fa;border:0;padding:10px 13px;min-height:44px;border-radius:10px;font-size:.875rem}.exam-label span{margin-left:8px}.brand{letter-spacing:-.025em;font-size:1.45rem}
@media(max-width:760px){.mobile-header{padding:12px 18px}.brand-cat{width:40px;height:40px}.result-summary{padding:19px}.menu-drawer{border-radius:0 22px 22px 0}.export-bar .primary-button{font-size:.875rem}.exam-label{display:block}.brand{font-size:1.3rem}}
p,small,strong{word-break:keep-all;overflow-wrap:break-word}
body{cursor:default;caret-color:transparent}a,button{cursor:pointer}textarea,input:not([type=checkbox]),[contenteditable=true]{cursor:text;caret-color:auto}
.learning-menu{flex-shrink:0}.category-tabs{display:grid;gap:3px}.category-tab{display:flex;align-items:center;min-height:44px;padding:9px 13px;border-radius:10px;font-size:.875rem;font-weight:650;color:var(--muted)}.category-tab:hover{background:#f1f4fa}.category-tab.active{color:var(--blue);background:#edf1ff;font-weight:750}.learning-menu .menu-label{font-size:.8rem;letter-spacing:0;line-height:1.6}.subject-nav-item span{min-width:0;overflow-wrap:anywhere}.menu-drawer .category-tab{font-size:.95rem;min-height:48px}.menu-drawer .subject-nav-item{min-height:48px}
.subject-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px;width:100%}.subject-stage{font-size:.75rem;color:var(--muted);font-weight:500;white-space:nowrap}.subject-heading .subject-stage{font-size:.8rem}

/* The quiz extends the existing OX냥 palette and mobile navigation. */
.subject-card .card-bottom,.subject-card small{font-size:.875rem}.subject-heading .subject-title{width:auto}.study-note{margin-top:20px;color:var(--muted);font-size:.875rem;line-height:1.7}.quiz-setup{padding:26px;border:1px solid var(--line);border-radius:var(--radius);background:var(--white);margin-bottom:28px}.quiz-setup>h2{margin-bottom:20px}.option-field{margin:0;padding:0;border:0;min-width:0}.option-field legend,.number-field{font-size:.875rem;font-weight:650;margin-bottom:10px}.quiz-setup .year-tabs{margin:0;flex-wrap:wrap;overflow:visible;gap:8px}.year-tab{font-size:.875rem;min-height:44px}.setup-options{display:flex;gap:26px;flex-wrap:wrap;align-items:flex-start;margin:22px 0}.choice-pills{display:flex;gap:8px}.option-pill{border:1px solid var(--line);border-radius:10px;background:#fff;min-height:44px;padding:9px 17px;font-size:.875rem}.option-pill.selected{border-color:var(--blue);background:#edf1ff;color:var(--blue);font-weight:750}.number-field{display:grid;gap:10px;margin:0}.number-field select{min-height:44px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:9px 35px 9px 12px;color:var(--ink)}.start-row{display:flex;gap:18px;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:20px}.start-row p{font-size:.95rem}.setup-date{display:block;font-size:.8rem;color:var(--muted);margin-top:3px}.primary-button,.secondary-button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:48px}.concept-count{font-size:.875rem;white-space:nowrap;color:var(--muted);margin-left:auto}.quiz-surface{max-width:780px;margin:auto}.quiz-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px}.quiz-toolbar .back-link{margin:0}.quiz-progress-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.875rem;margin-bottom:10px;color:var(--muted)}.quiz-progress-meta strong{font-size:1.4rem;color:var(--ink)}.quiz-progress-meta strong span{font-weight:500;font-size:.95rem;color:var(--muted)}.quiz-progress{display:block;width:100%;height:7px;appearance:none;border:0;border-radius:20px;overflow:hidden;background:var(--line);margin-bottom:24px}.quiz-progress::-webkit-progress-bar{background:var(--line);border-radius:20px}.quiz-progress::-webkit-progress-value{background:var(--blue);border-radius:20px}.quiz-progress::-moz-progress-bar{background:var(--blue);border-radius:20px}.question-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:30px}.question-meta{display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap;color:var(--muted);font-size:.8rem;margin-bottom:25px}.quiz-statement{font-size:1.5rem;line-height:1.8;font-weight:700;letter-spacing:-.015em;white-space:pre-wrap;overflow-wrap:anywhere;word-break:keep-all}.question-instruction{font-size:.875rem;color:var(--muted);margin-top:26px;margin-bottom:15px}.question-context{border-left:3px solid #879ce8;background:#f4f6fc;padding:15px 18px;margin-bottom:22px;border-radius:0 10px 10px 0;font-size:1rem;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}.question-context .tinylabel{margin-bottom:7px}.ox-buttons{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:26px}.ox-button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-height:120px;border-radius:18px;background:#fff;border:2px solid var(--line);transition:background .15s,border-color .15s}.ox-button>span{font-size:2.9rem;line-height:1.15;font-weight:800}.ox-button small{font-size:.875rem}.ox-o{color:#237a73;background:#f4faf8;border-color:#d3e9e2}.ox-x{color:#af4f63;background:#fff6f8;border-color:#edd9df}.ox-o:hover:not(:disabled),.ox-o.picked{border-color:#237a73;background:#e7f4ee}.ox-x:hover:not(:disabled),.ox-x.picked{border-color:#af4f63;background:#f8e6eb}.ox-button:disabled:not(.picked){opacity:.55}.feedback-panel{background:#fff;border:1px solid var(--line);border-top:4px solid #237a73;border-radius:18px;padding:24px;margin-top:18px}.feedback-wrong{border-top-color:#af4f63}.feedback-panel>h2{margin-bottom:20px}.feedback-correct>h2{color:#237a73}.feedback-wrong>h2{color:#af4f63}.answer-line{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:14px;font-size:.875rem}.truth-badge{display:inline-flex;align-items:center;padding:3px 9px;border-radius:7px;font-size:.875rem;font-weight:750;white-space:nowrap}.truth-badge.is-o{background:#e6f3ef;color:#237a73}.truth-badge.is-x{background:#faeaf0;color:#a4485c}.explanation-text,.corrected-block p,.special-notes p{white-space:pre-wrap;font-size:1rem;line-height:1.8;overflow-wrap:anywhere}.corrected-block{border-radius:12px;padding:17px;background:#edf5f2;margin-top:19px}.corrected-block .tinylabel,.special-notes .tinylabel{margin-bottom:7px}.special-notes{margin-top:18px;color:var(--muted)}.quiz-bottom{display:grid;grid-template-columns:1fr 1.4fr;gap:12px;margin-top:22px}.quiz-bottom button{min-height:50px}.note-text{white-space:pre-wrap}.note-selector{font-size:.875rem}.note-card .question-context{margin-top:17px;font-size:.95rem}.note-explanation .answer-line{margin-top:12px}.result-actions{display:flex;justify-content:space-between;gap:15px;align-items:center;flex-wrap:wrap;margin-top:22px}.export-bar{grid-template-columns:1fr 1fr}.export-bar>.text-button{grid-column:1/-1}.empty-notes .primary-button{margin-top:22px}.empty-note-icon{display:flex;justify-content:center;color:var(--blue);margin-bottom:18px}.empty-notes p{margin-top:12px;color:var(--muted)}.primary-button:disabled,.secondary-button:disabled{opacity:.45;cursor:default}.quiz-surface .back-link{min-width:0}.quiz-surface .back-link svg{flex-shrink:0}.concept-panel .hint{font-size:.875rem;line-height:1.7}
@media(max-width:760px){.quiz-setup{padding:20px}.quiz-statement{font-size:1.25rem;line-height:1.85}.question-card{padding:22px 20px;border-radius:20px}.question-meta{margin-bottom:20px}.ox-button{min-height:105px}.quiz-surface .quiz-toolbar{margin-top:-8px}.quiz-progress{margin-bottom:20px}.question-context{padding:13px 14px;font-size:1rem}.feedback-panel{padding:21px 19px}.start-row{align-items:stretch;flex-direction:column;gap:15px}.start-row .primary-button{width:100%}.setup-options{gap:22px;justify-content:space-between}.quiz-setup .year-tabs{gap:7px}.result-actions{display:grid;grid-template-columns:1fr}.result-actions .text-button{justify-content:center}.result-summary p{line-height:1.8}.quiz-toolbar .text-button{white-space:nowrap}.quiz-progress-meta{font-size:.875rem}.note-source{font-size:.8rem}.ox-buttons{margin-top:22px}.page-foot{font-size:.875rem}.exam-label{font-size:.875rem}.quiz-bottom .primary-button,.quiz-bottom .secondary-button{font-size:.95rem}.study-note{font-size:.875rem}}
@media(max-width:360px){.question-card{padding:19px 16px}.setup-options{gap:17px}.quiz-setup{padding:18px}.quiz-statement{font-size:1.15rem}.quiz-toolbar{gap:10px}.year-tab{padding:9px 11px}}

.subject-card .card-bottom{flex-wrap:wrap;gap:8px}.subject-card .card-bottom>span{white-space:nowrap}
main{padding-bottom:0}

/* Home keeps the same study layout, with a direct choice of five exams. */
.home-nav{margin:25px 0 10px}.home-nav .category-tab{gap:10px}.home-nav .category-tab svg{width:19px;height:19px}.home-hero{padding:7px 0 0;margin-bottom:34px}.home-kicker{color:var(--blue);font-size:.8rem;font-weight:750;letter-spacing:.025em;margin-bottom:10px}.home-hero h1{font-size:2.15rem;line-height:1.45}.home-hero .subtitle{margin-top:10px;line-height:1.8}.home-exams .section-head{margin-bottom:16px}.exam-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.exam-card{display:flex;align-items:center;gap:17px;min-width:0;min-height:126px;padding:23px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);transition:transform .15s,border-color .15s,box-shadow .15s}.exam-card:hover{border-color:#a7b5e5;transform:translateY(-2px);box-shadow:0 5px 18px #19274006}.exam-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;flex-shrink:0;background:var(--tint,#edf1ff);color:var(--tone,var(--blue))}.exam-icon svg{width:24px;height:24px}.exam-card-text{min-width:0;flex:1}.exam-card-text strong{display:block;font-size:1.1rem;letter-spacing:-.035em}.exam-card-text small{display:block;color:var(--muted);font-size:.875rem;margin-top:4px;line-height:1.6}.exam-card-arrow{color:var(--muted);font-size:1.2rem;line-height:1;flex-shrink:0}.home-flow{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px 25px;list-style:none;padding:0;margin:26px 0 0;color:var(--muted);font-size:.8rem}.home-flow li{display:flex;align-items:center;gap:8px}.home-flow li>span:first-child{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;color:var(--blue);background:#e8edff;font-weight:750;font-size:.75rem;flex-shrink:0}.result-export{margin-top:24px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px}.result-export .panel-description{line-height:1.8}.result-export-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.result-export-actions button{min-width:0;white-space:normal}.result-export .text-button{margin-top:8px}.result-export .hint{margin-top:7px}.result-export .hint:empty{display:none}
@media(max-width:1050px){.exam-card{padding:20px;gap:14px}.exam-icon{width:44px;height:44px;border-radius:13px}}
@media(max-width:760px){.home-nav{margin-top:15px}.home-hero{padding:0;margin-bottom:28px}.home-kicker{font-size:.75rem;margin-bottom:9px}.home-hero h1{font-size:1.8rem}.home-hero .subtitle{margin-top:9px}.home-exams .section-head h2{font-size:1.15rem}.exam-grid{gap:12px}.exam-card{min-height:113px;padding:19px 17px;gap:13px;border-radius:18px}.exam-card-text strong{font-size:1.05rem}.exam-card-text small{font-size:.8rem}.home-flow{gap:10px 18px;margin-top:23px}.result-export{padding:20px;border-radius:18px}.result-export-actions{gap:10px}.result-export-actions button{font-size:.875rem;padding:13px 12px}}
@media(max-width:450px){.exam-grid{grid-template-columns:1fr;gap:11px}.exam-card{min-height:97px;padding:18px;gap:15px}.exam-icon{width:44px;height:44px}.exam-card-text strong{font-size:1.05rem}.home-flow{gap:10px 15px;font-size:.75rem}.home-flow li{gap:6px}.home-flow li>span:first-child{width:21px;height:21px;font-size:.7rem}.result-export-actions{grid-template-columns:1fr}.result-export .text-button{width:100%}.home-hero h1{font-size:1.75rem}}
@media(max-width:350px){.home-hero h1{font-size:1.65rem}.home-flow{gap:9px}.home-flow li{gap:5px}.result-export{padding:18px}.exam-card{padding:17px}}
.result-export-actions>.text-button{grid-column:1/-1}

/* Results: selected wrong answers and OS sharing. */
.result-secondary-actions{display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:12px}.result-secondary-actions .text-button{margin-top:0}.result-export button:disabled,.share-sheet-actions button:disabled{opacity:.45;cursor:default}.share-sheet-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.share-sheet-actions button{min-width:0}.result-export-actions .primary-button{font-size:.95rem}@media(max-width:450px){.share-sheet-actions{grid-template-columns:1fr}.result-secondary-actions{gap:3px 18px}.result-secondary-actions .text-button{text-align:left}}

.result-actions{display:block}.result-actions>.secondary-button{width:100%}

/* Audit fixes: policy pages, focused keyboard flow, bounded wrong-answer lists. */
.site-footer{max-width:1050px;margin:32px auto 0;padding:0 44px 30px;color:var(--muted);font-size:.8rem}.site-footer nav{display:flex;gap:10px 24px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:18px}.site-footer a{display:inline-flex;align-items:center;min-height:44px}.site-footer a:first-child{font-weight:750}.site-footer a:hover,.site-footer a[aria-current=page]{color:var(--blue)}.site-footer p{font-size:.75rem;margin-top:4px}.policy-body{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px}.policy-body section+section{margin-top:28px;padding-top:25px;border-top:1px solid var(--line)}.policy-body h2{font-size:1.1rem;margin-bottom:10px}.policy-body p{font-size:.95rem;line-height:1.9;color:var(--muted)}.policy-body p+p{margin-top:12px}.policy-inline-link{display:inline-flex;align-items:center;min-height:44px;color:var(--blue);font-weight:700;margin-top:10px}.policy-body .contact-label{display:block;margin:20px 0 9px;font-weight:700}.contact-reference{display:block;margin-bottom:15px;min-height:180px;max-height:340px}.contact-empty{margin-top:18px;background:var(--bg);border-radius:12px;padding:16px}.concept-item strong{min-width:0;flex:1}.concept-count{font-size:.8rem;white-space:nowrap;text-align:right}.note-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.note-list-heading p{font-size:.8rem;color:var(--muted)}.result-pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:20px}.result-pagination span{font-size:.875rem;color:var(--muted)}.result-pagination .secondary-button{font-size:.875rem;padding:11px 14px}main h1:focus,.feedback-panel h2:focus,#wrong-list-heading:focus{outline:none}.feedback-panel h2:focus-visible,#wrong-list-heading:focus-visible{outline:2px solid var(--blue);outline-offset:5px}
@media(max-width:1050px){.site-footer{padding:0 28px 30px}}@media(max-width:760px){.site-footer{padding:0 20px calc(24px + env(safe-area-inset-bottom))}.site-footer nav{gap:6px 20px}.policy-body{padding:22px 20px}.policy-body h2{font-size:1.05rem}.policy-body p{font-size:.9rem}.concept-item{flex-wrap:wrap;gap:5px 10px}.concept-count{white-space:normal;width:100%;padding-left:30px;text-align:left}.note-list-heading{align-items:flex-start;flex-direction:column;gap:4px}.result-pagination{gap:10px}.result-pagination .secondary-button{font-size:.8rem;padding:10px 12px}}@media(max-width:350px){.site-footer{padding-left:14px;padding-right:14px}.site-footer nav{gap:6px 16px}}

/* Policy contacts and original-source disclosures. */
.policy-body a{overflow-wrap:anywhere}.policy-inline-link{max-width:100%}.policy-source-details{margin-top:16px}.policy-source-details summary{min-height:44px;display:list-item;cursor:pointer;color:var(--blue);font-weight:700;padding:10px 0}.policy-source-group{margin-top:20px}.policy-source-group h3{font-size:.95rem;margin-bottom:9px}.policy-source-group ul{padding-left:20px}.policy-source-group li{font-size:.9rem;line-height:1.8;margin:7px 0}.policy-source-group a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}

.policy-body .policy-inline-link{display:flex;width:fit-content}
.policy-facts{margin:16px 0 0}.policy-facts dt{font-size:.92rem;font-weight:750;color:var(--ink);margin-top:18px}.policy-facts dt:first-child{margin-top:0}.policy-facts dd{font-size:.92rem;line-height:1.9;color:var(--muted);margin:5px 0 0;overflow-wrap:anywhere}.policy-facts a,.policy-body p a,.policy-link-list a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}.policy-link-list{display:grid;gap:8px;margin-top:16px}.policy-link-list a{font-size:.9rem;line-height:1.7;padding:5px 0}.policy-body code{font-size:.85em;overflow-wrap:anywhere}.home-kicker{overflow-wrap:break-word}
.quiz-request-status{font-size:.875rem;line-height:1.7;color:var(--muted);margin-top:14px;white-space:pre-wrap}.quiz-request-status:empty{display:none}.quiz-request-status.is-error{color:#a4485c}.quiz-toolbar .text-button:disabled{opacity:.45;cursor:default}

/* Give long qualification subject names room on narrow screens. */
@media(max-width:480px){.subject-grid{grid-template-columns:1fr}.subject-card{min-height:0}.subject-card strong{overflow-wrap:break-word}}
button.concept-item{width:100%;min-height:60px;background:#fff;border:0;border-top:1px solid var(--line);text-align:left;border-radius:0;transition:background .15s}
button.concept-item:not(:disabled):hover{background:#f4f6fc}
button.concept-item:not(:disabled):hover strong{color:var(--blue)}
button.concept-item:disabled{color:var(--muted)}
button.concept-item[aria-busy=true]{opacity:.6}
button.concept-item strong{overflow-wrap:anywhere}
.quiz-topic{font-size:.95rem;color:var(--blue);font-weight:700;line-height:1.7;margin:0 0 15px;overflow-wrap:anywhere}
