:root {
  --body: var(--text);
  --muted: #626b61;
  --line: var(--rule);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden], .symbols { display: none !important; }
button, select { color: inherit; font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { border: 0; }
button:focus-visible, a:focus-visible, select:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid #a47d32; outline-offset: 3px; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.kicker { font: 600 10.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 1.4px; }
.deck-control { padding-bottom: 2px; display: grid; gap: 7px; }
.deck-control > .kicker { color: var(--muted); }
.select-wrap { position: relative; display: flex; align-items: center; }
.select-wrap > svg { position: absolute; pointer-events: none; width: 16px; height: 16px; left: 13px; }
.select-wrap > svg:last-child { left: auto; right: 11px; width: 14px; height: 14px; }
select { appearance: none; padding: 10px 36px 10px 38px; min-width: 167px; border: 1px solid #c8cdbf; border-radius: 7px; background: #fcfbf7; font-weight: 550; font-size: 14px; }
.workspace { display: grid; grid-template-columns: minmax(0,2.12fr) minmax(260px,1fr); gap: 23px; align-items: start; }
.panel { background: #fffefb; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 3px 10px #34372b05; }
.drill { min-width: 0; overflow: hidden; }
.drill-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 21px; }
.drill-type { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.drill-type .icon { width: 18px; height: 18px; color: #566a4b; }
.q-count { font: 11px var(--mono); color: var(--muted); }
.specimen {
  position: relative; isolation: isolate; display: grid; place-items: center; height: 217px; overflow: hidden;
  margin: 0 14px; border: 1px solid #d7d8c8; border-radius: 7px; background-color: #eae9dc;
  background-image: linear-gradient(90deg,#686e4e13 1px,transparent 1px),linear-gradient(#686e4e13 1px,transparent 1px),radial-gradient(ellipse at 45% 23%,#f3f1e4,transparent 72%);
  background-size: 19px 19px,19px 19px,100% 100%;
}
.specimen::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .21; background: url("./grain.svg"); mix-blend-mode: multiply; z-index: -1; }
.specimen .cross { position: absolute; width: 11px; height: 11px; color: #73775d; opacity: .62; }
.cross.nw { left: 12px; top: 12px; }.cross.ne { right: 12px; top: 12px; }.cross.sw { left: 12px; bottom: 12px; }.cross.se { right: 12px; bottom: 12px; }
.specimen-kind { position: absolute; top: 14px; left: 34px; font: 10px/1 var(--mono); text-transform: uppercase; letter-spacing: 1px; color: #58614d; }
.specimen-ticks { position: absolute; left: 34px; bottom: 15px; width: 52px; height: 6px; color: #757b61; opacity: .62; }
.patch {
  --edge: #454a33;
  width: 109px; height: 158px; padding: 9px 3px; display: inline-grid; place-items: center; position: relative; isolation: isolate;
  border: 2px solid var(--edge); border-radius: 4px 5px 4px 3px;
  background-color: #50583d;
  background-image: repeating-linear-gradient(3deg,transparent 0 1px,#232c1940 1.4px 2.35px,transparent 2.7px 3.5px),repeating-linear-gradient(83deg,#d9d8ad35 0 .8px,#28301d44 1px 2px,transparent 2.5px 3px),linear-gradient(115deg,#697051,#4b543b 80%);
  box-shadow: inset 0 0 2px 2px #33392680;
}
.patch::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .55; background: url("./grain.svg"); mix-blend-mode: soft-light; }
.patch::after { content: ""; position: absolute; pointer-events: none; inset: 3px; border: 1px dashed #b0ab7a9c; border-radius: 2px; box-shadow: 0 0 0 1px #333c2855,inset 0 0 0 1px #343a2936; }
.patch svg { width: 100%; height: 100%; position: relative; overflow: visible; }
.specimen > .patch { transform: rotate(-7deg); box-shadow: 2px 3px 2px #47473552,5px 10px 11px -3px #3c412e6b,12px 16px 22px -10px #423f315e,inset 0 0 3px 2px #30372677; }
.question-body { padding: 18px 23px 19px; }
.question-body h2, .results h2 { font: 400 31px/1.24 var(--serif); letter-spacing: -.045em; }
.answers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 15px; }
.answer { display: flex; align-items: center; gap: 11px; background: #fdfcf8; border: 1px solid #cfd3c8; border-radius: 7px; text-align: left; min-height: 49px; padding: 9px 12px; font-weight: 550; font-size: 14px; line-height: 1.3; }
.answer:hover:not(:disabled), .filters button:hover, .library-row:hover { background: #f0f2e9; border-color: #9fae96; }
.key { display: inline-grid; flex: none; place-items: center; width: 23px; height: 23px; border: 1px solid #daddd2; background: #f0f1e9; border-radius: 4px; color: #66705e; font: 11px var(--mono); }
.answer.right { background: #e9f0e0; border-color: #7e9972; }.answer.wrong { background: #f7eae2; border-color: #b98266; }
.answer.right .key { color: #fff; background: #546e49; }.answer.wrong .key { color: #fff; background: #995f48; }
.key .icon { width: 14px; height: 14px; stroke-width: 2.5; }.answer:disabled { cursor: default; opacity: 1; }
.question-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e4e5dc; margin-top: 17px; padding-top: 14px; }
.clue-button, .text-link { display: inline-flex; align-items: center; gap: 7px; background: transparent; font-weight: 600; font-size: 13px; min-height: 30px; padding: 0; color: var(--accent); }
.clue-button .icon, .text-link .icon { width: 16px; height: 16px; }
.text-link:hover, .clue-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.keyboard-note { color: var(--muted); font: 10px/1.3 var(--mono); }
.clue-text { padding: 11px 13px; background: #f1f2e9; color: var(--body); border-radius: 5px; font-size: 14px; margin-top: 9px; }
.feedback { display: grid; gap: 3px; font-size: 14px; margin-top: 15px; }
.feedback strong { color: #405d3c; }.feedback p, .results p { color: var(--body); }
.primary, .secondary { min-height: 39px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 15px; font-size: 14px; font-weight: 600; }
.primary { background: var(--ink); color: #fffef8; }.primary:hover { background: #365347; }.secondary { background: #eef0e6; }.primary .icon, .secondary .icon { width: 16px; height: 16px; }
.rail { display: grid; gap: 18px; }
.session { --heading-color: #fffdf4; position: relative; isolation: isolate; overflow: hidden; color: #f6f5e8; background: #304833; border: 1px solid #2a412d; border-radius: 12px; padding: 21px 22px 17px; }
.session::before { position: absolute; inset: 0; content: ""; z-index: -1; background: linear-gradient(105deg,#2d4433 35%,transparent 94%),url("contours.svg") right top/230px 180px no-repeat; opacity: .9; }
.session-head, .promo-title { display: flex; align-items: center; gap: 9px; }
.session-head .icon { color: #c3cf9f; width: 18px; height: 18px; }
.session h2, .library-promo h2 { font: 500 23px/1.2 var(--serif); letter-spacing: -.04em; }
.session-total { margin-top: 17px; display: flex; align-items: baseline; gap: 7px; }
.session-total strong { font: 400 45px/1 var(--serif); letter-spacing: -.055em; }.session-total span { font-size: 13px; color: #e0e4d7; }
.progress { display: flex; gap: 4px; margin: 11px 0 19px; }
.progress i { flex: 1; height: 5px; border-radius: 1px; background: #ffffff3d; }.progress i.correct { background: #c0d49d; }.progress i.miss { background: #eab98e; }
.scoreline { padding: 12px 0 0; border-top: 1px solid #ffffff36; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #e8ecde; }
.scoreline + .scoreline { border-top: 0; padding-top: 7px; }
.scoreline span { display: flex; align-items: center; gap: 8px; }.scoreline .icon { width: 14px; height: 14px; color: #bfcea9; }.scoreline b { font: 14px var(--mono); }
.library-promo { padding: 23px 22px 18px; background: #efefe6; border-color: #d8dccc; }
.promo-title .icon { width: 20px; height: 20px; color: #576b4b; }
.library-promo p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--body); }
.samples { display: flex; align-items: center; gap: 9px; margin: 15px 0 11px; }
.sample { height: 58px; flex: 1; display: grid; place-items: center; border: 1px solid #d5d7c6; background: #e5e6d8; border-radius: 5px; }
.sample .patch { width: 29px; height: 41px; padding: 1px 0; border-width: 1px; border-radius: 1px; box-shadow: 1px 2px 2px #3d422c35; }.sample .patch::after { inset: 1px; border-color: #b0ab7a66; }
.results { padding: 28px; }.results > p { margin-top: 8px; }.result-mark { background: #e6eddc; display: grid; width: 54px; height: 54px; place-items: center; color: var(--accent); border-radius: 50%; margin-bottom: 19px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.review-list { margin: 18px 0 0; padding: 0; list-style: none; }.review-list li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }.review-list small { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 23px; }
.filters button { padding: 7px 14px; border: 1px solid #cdd1c5; border-radius: 20px; background: #fbfaf6; font-size: 13px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fffef8; border-color: var(--ink); }
.library-group { margin-bottom: 29px; }.library-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }.library-heading h2 { font: 400 27px var(--serif); letter-spacing: -.04em; }.library-heading span { font: 11px var(--mono); color: var(--muted); }
.library-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.library-row { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fffefb; text-align: left; padding: 10px; min-width: 0; }
.library-row .thumb { flex: none; display: grid; place-items: center; width: 48px; height: 60px; border-radius: 4px; background: #e9e9db; }
.thumb .patch { width: 29px; height: 43px; padding: 1px; border-radius: 1px; border-width: 1px; }.thumb .patch::after { inset: 1px; }
.library-row strong { font-size: 14px; font-weight: 600; }.library-row small { display: block; color: var(--muted); font-size: 11px; }.library-row > .icon { margin-left: auto; width: 14px; height: 14px; }
dialog { color: var(--ink); background: #fffefb; width: min(425px,calc(100% - 26px)); max-height: 90dvh; border: 1px solid var(--line); border-radius: 12px; padding: 19px; box-shadow: 0 20px 80px #18221740; }
dialog::backdrop { background: #23352e66; }.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.icon-button { padding: 5px; display: grid; place-items: center; border-radius: 4px; background: #f0f1e9; width: 33px; height: 33px; }.icon-button .icon { width: 17px; height: 17px; }
dialog .specimen { margin: 0; height: 190px; }dialog .patch { width: 89px; height: 133px; }dialog h2 { margin: 15px 0 5px; font: 400 32px/1.1 var(--serif); letter-spacing: -.04em; }dialog p { color: var(--body); font-size: 15px; }dialog .cue { margin-top: 11px; padding: 11px 13px; background: #f0f2e9; border-radius: 6px; }
.study-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }.study-nav button:disabled { opacity: .35; cursor: default; }.flip { transform: rotate(180deg); }
@media (max-width: 840px) {
  .workspace { grid-template-columns: minmax(0,1.8fr) minmax(210px,1fr); gap: 14px; }.rail { gap: 14px; }
  .session,.library-promo { padding: 17px; }.question-body { padding: 16px; }.answer { padding: 8px; gap: 7px; }.library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 660px) {
  .deck-control { display: flex; align-items: center; gap: 9px; }.select-wrap select { min-width: 146px; padding-top: 6px; padding-bottom: 6px; }.workspace { grid-template-columns: 1fr; }.rail { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .drill-top { padding: 13px 16px; }.specimen { margin: 0 10px; height: 190px; }.specimen > .patch { width: 96px; height: 143px; }.question-body h2 { font-size: 28px; }.answers { gap: 8px; margin-top: 12px; }
  .question-actions { margin-top: 13px; padding-top: 10px; }.keyboard-note { display: none; }.library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 495px) {
  .rail { grid-template-columns: 1fr; }.library-grid { grid-template-columns: 1fr; }.session .scoreline { font-size: 14px; }.sample { height: 53px; }.library-promo p { max-width: 34ch; }
}
@media (max-width: 355px) { .answer { font-size: 13px; }.question-body { padding: 13px; } }
@media (pointer: coarse) { .keyboard-note { display: none; } }

.practice-controls { display: flex; align-items: center; justify-content: space-between; gap: 13px 22px; flex-wrap: wrap; margin: -5px 0 18px; }
.practice-controls:has(#mode-control[hidden]) { display: none; }
.mode-control { display: inline-flex; align-items: stretch; background: #e9ece2; border: 1px solid #d2d7ca; border-radius: 9px; padding: 3px; }
.mode-control button { background: transparent; color: var(--body); border-radius: 6px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; font: 550 14px/1.35 var(--sans); }
.mode-control button[aria-pressed="true"] { background: #fffefb; color: var(--ink); box-shadow: 0 1px 4px #36402a35; }
.mode-control .icon { width: 16px; height: 16px; }
.practice-controls .deck-control { display: flex; align-items: center; gap: 10px; padding: 0; }
.title-specimen { display: grid; grid-template-columns: 1fr 1.12fr; align-items: stretch; margin: 0 14px; border: 1px solid #d4d6c5; border-radius: 7px; overflow: hidden; background: #eeeede; }
.title-field { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(20px,3vw,34px); gap: 12px; min-width: 0; }
.title-field:first-child { background-image: linear-gradient(90deg,#68745910 1px,transparent 1px),linear-gradient(#68745910 1px,transparent 1px); background-size: 15px 15px; }
.title-field + .title-field { background: #e3e7d8; border-left: 1px solid #cbd1bd; }
.level-label { text-transform: uppercase; font: 600 10px/1.45 var(--mono); letter-spacing: 1.3px; color: #535f4c; }
.level-name, .unit-name { font: 400 clamp(23px,2.4vw,32px)/1.15 var(--serif); letter-spacing: -.035em; overflow-wrap: break-word; }
.title-comparison { margin: 14px 0 0; border: 1px solid #d7dbcf; border-radius: 6px; padding: 0 12px; }
.title-comparison summary { display: flex; align-items: center; gap: 7px; list-style: none; color: var(--accent); font-size: 14px; font-weight: 600; cursor: pointer; padding: 10px 0; }
.title-comparison summary::marker { content: ""; }
.title-comparison summary::-webkit-details-marker { display: none; }
.disclosure-icon { width: 15px; height: 15px; transform: rotate(-90deg); }
details[open] > summary > .disclosure-icon { transform: none; }
.title-comparison summary:focus-visible { outline: 3px solid #a47d32; outline-offset: 1px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.4; margin-bottom: 6px; }
.compare-table :is(th,td) { padding: 6px 5px; border-top: 1px solid #dfe2d7; text-align: left; vertical-align: top; }
.compare-table tbody th { font-weight: 450; color: var(--body); width: 55%; }
.compare-table td { font-weight: 600; }.compare-table thead th { color: var(--muted); font-size: 11px; }
.title-comparison p { color: var(--body); font-size: 13px; margin: 8px 0; }
.title-sources { font-size: 12px; margin: 4px 0; }
.title-sources summary { font-size: 12px; font-weight: 500; }
.title-sources ul { margin: 0 0 10px; padding-left: 17px; }
.title-sources li + li { margin-top: 5px; }
.title-sources a { text-underline-offset: 2px; }
@media (max-width: 660px) {
  .practice-controls { margin-top: 0; }
  .title-specimen { margin: 0 10px; }.mode-control button { min-height: 38px; }
}
@media (max-width: 495px) {
  .title-specimen { grid-template-columns: 1fr; }
  .title-field { padding: 14px 18px; gap: 4px; }.title-field + .title-field { border-left: 0; border-top: 1px solid #cbd1bd; }
}

.set-controls { display: flex; align-items: center; justify-content: end; gap: 14px 22px; flex-wrap: wrap; min-width: 0; }
.study-layout { display: grid; grid-template-columns: minmax(0,2.12fr) minmax(250px,1fr); gap: 23px; align-items: start; }
.study-layout:has(.learn-contents[hidden]) { grid-template-columns: minmax(0,740px); }
.learn-contents { background: #efefe6; padding: 17px 19px; }
.contents-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.contents-heading h2 { font: 400 24px/1.2 var(--serif); letter-spacing: -.04em; }
.contents-heading > span { color: var(--muted); font: 11px var(--mono); }
.learn-contents ol { list-style: none; margin: 14px 0 0; padding: 0; max-height: 360px; overflow-y: auto; }
.learn-contents li + li { border-top: 1px solid #d6dacb; }
.learn-contents li button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; min-height: 43px; padding: 8px 10px; background: transparent; border-radius: 5px; font-size: 14px; }
.learn-contents li button:focus-visible { outline-offset: -2px; }
.learn-contents li button[aria-current="step"] { color: #304833; background: #dde5d3; font-weight: 650; }
.learn-contents li button:hover { background: #e4e9da; }
.learn-contents li button .icon { width: 15px; height: 15px; color: var(--accent); }
.learn-contents small { display: block; font-weight: 400; color: var(--muted); }
.library-search { position: relative; width: min(100%,360px); margin-bottom: 16px; display: flex; align-items: center; }
.library-search .search-glass { position: absolute; left: 11px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.library-search input { appearance: none; border: 1px solid #cbd1c6; border-radius: 7px; padding: 9px 40px 9px 36px; width: 100%; background: #fffefb; color: var(--ink); font: 14px/1.45 var(--sans); }
.library-search input::-webkit-search-cancel-button, .library-search input::-webkit-search-decoration { appearance: none; display: none; }
#clear-search { position: absolute; right: 1px; display: grid; place-items: center; width: 38px; height: calc(100% - 2px); background: transparent; border-radius: 6px; }
#clear-search .icon { width: 16px; height: 16px; }
.library-search input:focus-visible { outline: 3px solid #a47d32; outline-offset: 2px; }
.empty-search { padding: 20px 0; color: var(--muted); }
@media (max-width: 840px) {
  .set-controls { gap: 10px 14px; justify-content: start; }
  .study-layout { grid-template-columns: minmax(0,1.8fr) minmax(205px,1fr); gap: 14px; }
}
@media (max-width: 660px) {
  .study-layout { grid-template-columns: minmax(0,1fr); }
  .set-controls { max-width: 100%; }
  .practice-controls #scope-control { max-width: 100%; }
  .practice-controls .set-controls > .deck-control { gap: 6px; }
  .learn-contents ol { max-height: 210px; }
}
