/* Study-set library and learner workspace */
.home-mocks {margin-top:16px;}
.pick-circle {width:18px;height:18px;flex:none;border:2px solid #818da4;border-radius:50%;}
.answers button[aria-pressed="true"] .pick-circle {border:5px solid var(--blue);background:white;}
.example-links {display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 14px;margin:12px 0 5px;font-size:.875rem;}
.example-links span {font-weight:650;color:var(--muted);}
.example-links a,.original-tests a {text-decoration:underline;text-underline-offset:3px;}
.practice-refs.original-tests {margin:0 0 20px;padding:15px 18px;background:#edf1f9;border:1px solid #d7deea;border-radius:10px;}
.study-home {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 1fr);
  margin: 32px 0;
  overflow: hidden;
  border: 1px solid #dce2ef;
  border-radius: 20px;
  background: #edf1fc;
}
.study-cover { padding: clamp(28px, 4.2vw, 62px); align-self: center; }
.study-cover h1, .library-head h1, .set-detail h1 {
  margin: 0; letter-spacing: -.048em; line-height: 1.06;
  font-size: clamp(2.25rem, 4.1vw, 4.1rem); color: var(--navy);
}
.study-cover h1 { max-width: 13em; }
.study-cover p, .library-head p, .set-byline, .mock-strip p {
  margin: 14px 0 0; color: #475973; line-height: 1.55;
}
.cover-road {
  min-height: 250px;
  background: linear-gradient(90deg, #edf1fc 0%, transparent 24%), url(assets/matobo-road.webp) center 58% / cover no-repeat;
}
.set-search {
  display: flex; align-items: center; gap: 12px; margin-top: 22px; max-width: 620px;
  padding: 6px 7px 6px 16px; background: white; border: 1px solid #aebcd2; border-radius: 12px;
}
.set-search:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.set-search svg {flex: none; color: var(--blue);}
.set-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.set-search button, .save-set { border-radius: 8px; padding: 10px 15px; font-weight: 650; border: 0; }
.set-search button { background: var(--blue); color: white; }
.set-block { margin: 34px 0; }
.set-block h2, .mock-strip h2 { margin: 0; font-size: clamp(1.4rem,2.2vw,1.95rem); letter-spacing: -.035em; }
.set-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.set-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 15px; }
.set-tile {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 134px;
  padding: 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: white;
}
.set-tile:hover { border-color: #788dc0; box-shadow: 0 3px 10px #203d6812; }
.set-tile h3 { margin: 10px 0 6px; font-size: 1.14rem; letter-spacing: -.024em; line-height: 1.2; }
.set-tile small { color: #57677f; font-size: .875rem; }
.set-count, .count-pill { padding: 3px 8px; border-radius: 6px; color: #394d78; background: #ecf0fa; font-size: .875rem; font-weight: 650; }
.set-thumb { display: grid; flex: none; place-items: center; width: 66px; height: 70px; padding: 9px; border-radius: 12px; }
.set-thumb img { max-width: 100%; max-height: 52px; }
.lilac .set-thumb {color: #473d7c;background: #f0edfa;}
.amber .set-thumb {color: #775116;background: #fff1d6;}
.teal .set-thumb {color: #21614f;background: #e3f4ed;}
.mock-strip {display:flex; align-items:center; justify-content:space-between; gap:18px; border-radius:16px; background:#e8edf8; padding:24px 30px; margin:32px 0 20px;}
.mock-strip p {margin-top:6px;}
.mock-strip .btn { flex: none; }
.set-extras {display:flex; flex-wrap:wrap; gap:20px; font-weight:650; font-size:.94rem;}
.library-head {margin-top:42px;margin-bottom:22px;}
.library-head .set-search {margin:20px 0 0;}
.set-filters { flex-wrap: wrap; }
.set-summary, .set-breadcrumb, .deck-status, .set-byline {font-size:.94rem;color:#52627a;}
.set-summary {margin:20px 0 0;}
.set-detail {max-width:920px; margin:32px auto 50px;}
.set-breadcrumb {margin:18px 0;}
.set-breadcrumb a, .set-byline a {font-weight:650;}
.set-detail h1 {font-size:clamp(2rem,4vw,3.3rem);}
.save-set {color:var(--blue);background:#fff;border:1px solid #aebcd2;flex:none;min-height:42px;}
.save-set[aria-pressed="true"] {background:#e6eefc;border-color:#627daf;}
.set-byline {margin:10px 0 20px;}
.study-tabs {display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px 0 14px;}
.study-tabs a {display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 4px;color:#334b73;font-weight:650;border-radius:10px;border:1px solid #cfd7e6;background:white;}
.study-tabs a[aria-current="page"] {background:#203e80;color:white;border-color:#203e80;}
.study-pane {padding:clamp(15px,3vw,30px);border:1px solid #d6dce8;background:white;border-radius:18px;}
.deck-meta, .deck-controls, .deck-status, .study-actions {display:flex;align-items:center;gap:12px;}
.deck-meta {color:#586781;font-size:.875rem; margin:0 0 13px;}
.deck-meta strong {margin-left:auto;color:var(--ink);}
.deck-tool,.rate-card {border:1px solid #bdc9db;color:var(--blue);background:white;border-radius:8px;font-weight:600;min-height:40px;padding:7px 13px;}
.deck-tool {font-size:.9rem;}
.flip-card {
  width:100%; min-height:300px; padding:22px 16px; display:flex; flex-direction:column;align-items:center;
  justify-content:center;gap:14px;background:#f5f7fe;border:1px solid #d6def4;border-radius:14px;color:var(--ink);text-align:center;
}
.flip-card.back {background:#eef7f4;border-color:#c3e1d5;}
.flip-card strong {font-size:clamp(1.3rem,2.8vw,2.05rem);max-width:32ch;line-height:1.2;letter-spacing:-.025em;}
.face-label,.flip-hint {font-size:.875rem;font-weight:600;color:#475c80;}
.card-explain {max-width:55ch;line-height:1.5;}
.card-figure,.learn-figure {display:grid;place-items:center;width:100%;min-width:0;}
.card-figure img,.learn-figure img {max-width:100%;height:clamp(120px,19vw,205px);object-fit:contain;}
.deck-controls {justify-content:space-between;margin-top:16px;flex-wrap:wrap;}
.deck-controls>div {display:flex;gap:8px;}
.rate-card {background:#fff3dd;color:#69470c;border-color:#e6c987;}
.rate-card.know {background:#e5f5ed;color:#20563e;border-color:#b8dac9;}
.rate-card[aria-pressed="true"] {outline:2px solid currentColor;outline-offset:1px;}
.deck-status {justify-content:space-between;flex-wrap:wrap;margin-top:16px;}
.study-finished {text-align:center;padding-block:38px;}
.study-finished h2 {margin-top:0;}
.study-finished p {max-width:55ch;margin:12px auto 18px;}
.study-actions {justify-content:center;flex-wrap:wrap;}
.learn-pane h2 {font-size:clamp(1.3rem,2.6vw,1.9rem);margin:15px 0;}
.learn-options {display:grid;gap:8px;margin-top:15px;}
.learn-option {min-height:44px;text-align:left;background:#fff;color:var(--ink);border:1px solid #bcc9da;border-radius:9px;padding:10px 14px;}
.learn-option:disabled {opacity:1;}
.learn-option.right {background:#e3f4eb;border-color:#45946b;}
.learn-option.wrong {background:#fff0ea;border-color:#bd6750;}
.learn-feedback {padding:14px 0;line-height:1.5;}
.learn-feedback p {margin:6px 0;}
.term-list {margin-top:14px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:white;}
.term + .term {border-top:1px solid var(--line);}
.term summary {display:flex;align-items:center;gap:14px;padding:14px 16px;cursor:pointer;list-style:none;}
.term summary::-webkit-details-marker {display:none;}
.term summary b {margin-left:auto;color:var(--blue); font-size:1.15rem;}
.term[open] summary b {transform:rotate(45deg);}
.term summary img {width:54px;height:40px;object-fit:contain;flex:none;}
.term>div {padding:2px 16px 16px;}
.term p {margin:5px 0 9px;line-height:1.45;}
@media(max-width:920px){.set-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.navwrap{gap:18px;}}
@media(max-width:700px){
  .study-home {grid-template-columns:1fr;margin:18px 0 24px;}
  .study-cover {padding:23px 19px;}
  .cover-road {min-height:82px;background:linear-gradient(180deg,#edf1fc 0%,transparent 36%),url(assets/matobo-road.webp) center 52% / cover;}
  .set-grid {grid-template-columns:1fr;gap:9px;}
  .set-block {margin:26px 0;}
  .set-tile {min-height:96px;padding:14px 16px;}
  .set-thumb {height:57px;width:57px;}
  .set-thumb img {max-height:40px;}
  .set-tile h3 {margin:7px 0 4px;}
  .mock-strip {align-items:flex-start;padding:20px;flex-direction:column;}
  .set-detail {margin:22px auto 30px;}
  .set-detail .set-heading {align-items:flex-start;}
  .set-heading h1 {min-width:0;}
  .set-extras {gap:12px;}
  .navwrap nav a {font-size:clamp(.68rem,3.3vw,.88rem);padding:10px 4px;}
  .flip-card {min-height:260px;}
  .deck-controls {gap:6px;}
  .deck-controls .deck-tool,.rate-card {font-size:.875rem;padding:7px 9px;}
  .set-search {gap:7px;padding-left:9px;}
  .set-search input {font-size:1rem;}
}
@media(max-width:420px){.deck-controls{display:grid;grid-template-columns:1fr 1fr;}.deck-controls>div{grid-column:1/-1;grid-row:1;}.deck-controls>div button{flex:1;}.set-heading{flex-wrap:wrap;}.study-tabs a{gap:5px;}.deck-meta{gap:6px;}}


.flash-choices{display:grid;gap:.35rem;text-align:left;font-weight:400}.flip-card:has(.flash-choices){height:auto;min-height:18rem}.review-choices{padding-left:1.6rem}.review-choices li{padding-left:.3rem;margin:.25rem 0}

.footer-actions{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}.footer-actions [role=status]{overflow-wrap:anywhere}.footer-actions [role=status]:empty{display:none}.learner-name{display:block;font-weight:650;margin-top:1rem}.learner-name small{font-weight:400}#learner-name{border:1px solid #8293aa;border-radius:7px;padding:.65rem;width:min(100%,24rem);font:inherit;margin:.4rem 0}.setup #learner-note{margin-top:0}
