/* MTK digital store: store, product, bundle, assessment and library pages (store_pages.py). Builds on site.css. */

.h3 { font-size: 22px; margin: 44px 0 16px; }
.narrow { max-width: 900px; }
.sample-note { display: inline-flex; gap: 8px; align-items: center; margin-top: 22px; padding: 8px 14px; border-radius: 12px; background: #FFF4E5; color: #B25E00; font-size: 13.5px; }
.empty { margin-top: 30px; color: var(--grey-soft); }
[hidden] { display: none !important; }

/* format tags */
.fmt { display: inline-grid; place-items: center; font: 700 10.5px/1 "Helvetica Neue", Arial, sans-serif; letter-spacing: .04em; font-style: normal; padding: 4px 7px; border-radius: 6px; color: #fff; background: var(--blue); direction: ltr; }
.fmt-xlsx { background: var(--blue-deep); }
.fmt-docx { background: var(--peri); }
.fmt-pdf { background: #6A2FD8; }
.fmt-pbit { background: #3A4466; }
.fmt-epub { background: #8E6BD8; }
.fmts { display: inline-flex; gap: 4px; flex-wrap: wrap; }

/* ---------- drawn document previews ---------- */
.dm { container-type: inline-size; position: relative; background: #fff; overflow: hidden; border-radius: 6px; box-shadow: 0 14px 30px -14px rgba(10,15,140,.45), 0 0 0 1px rgba(10,15,140,.06); direction: ltr; }
.dm > .fmt { position: absolute; top: 7%; right: 6%; font-size: 9px; padding: 3px 5px; }
.dm-slide, .dm-report { aspect-ratio: 16 / 9; }
.dm-slide .dm-glow { position: absolute; width: 70%; aspect-ratio: 1; right: -22%; top: -40%; background: url(img/glow.webp) center / contain no-repeat; }
.dm-slide b { position: absolute; left: 8%; top: 16%; width: 52%; color: var(--blue); font: 700 6.4cqw/1.15 "Helvetica Neue", "Noto Kufi Arabic", Arial, sans-serif; }
.dm-slide b[dir="auto"]:lang(ar) { text-align: left; }
.dm-slide .dm-bars { position: absolute; left: 8%; bottom: 14%; width: 40%; height: 34%; display: flex; gap: 8%; align-items: flex-end; }
.dm-slide .dm-bars i { flex: 1; background: var(--blue); border-radius: 2px 2px 0 0; opacity: .85; }
.dm-slide .dm-bars i:nth-child(2n) { background: var(--slate-soft); }
.dm-slide img { position: absolute; right: 7%; bottom: 10%; width: 9%; }
.dm-sheet { aspect-ratio: 4 / 3; }
.dm-sheet .dm-sh-h { position: absolute; inset: 0 0 auto 0; height: 13%; background: var(--blue); display: flex; align-items: center; padding: 0 5%; direction: rtl; }
.dm-sheet .dm-sh-h b { color: #fff; font: 600 4.6cqw/1 "Noto Kufi Arabic", Arial, sans-serif; white-space: nowrap; overflow: hidden; }
.dm-sheet .dm-sh-g { position: absolute; inset: 13% 0 0 0; background:
  repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), var(--line) calc(20% - 1px) 20%),
  repeating-linear-gradient(180deg, transparent 0 calc(11% - 1px), var(--line) calc(11% - 1px) 11%); }
.dm-sheet .dm-sh-c { position: absolute; left: 20%; top: 35%; width: 40%; height: 33%; background: linear-gradient(90deg, rgba(0,19,255,.14) 50%, rgba(170,146,231,.25) 50%); }
.dm-sheet > .fmt { top: auto; bottom: 6%; }
.dm-page { aspect-ratio: 1 / 1.414; padding: 16% 12% 0; display: flex; flex-direction: column; gap: 5%; direction: rtl; }
.dm-page .dm-pg-top { position: absolute; inset: 0 0 auto 0; height: 7%; background: linear-gradient(90deg, var(--blue), #6A2FD8); }
.dm-page b { color: var(--blue); font: 700 8.5cqw/1.45 "Noto Kufi Arabic", Arial, sans-serif; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dm-page i { display: block; height: 2.6cqw; border-radius: 4px; background: var(--line); }
.dm-page i.s { width: 64%; }
.dm-page > .fmt { top: auto; bottom: 5%; right: auto; left: 8%; }
.dm-report { background: #F5F6FA; }
.dm-report .dm-rp-h { position: absolute; inset: 0 0 auto 0; height: 14%; background: #fff; display: flex; align-items: center; padding: 0 4%; border-bottom: 1px solid var(--line); }
.dm-report .dm-rp-h b { color: var(--blue-deep); font: 700 4cqw/1 "Helvetica Neue", "Noto Kufi Arabic", Arial, sans-serif; }
.dm-report .dm-rp-k { position: absolute; left: 4%; right: 4%; top: 20%; height: 18%; display: flex; gap: 3%; }
.dm-report .dm-rp-k i { flex: 1; background: #fff; border-radius: 4px; display: grid; place-items: center; box-shadow: 0 1px 0 var(--line); }
.dm-report .dm-rp-k s { text-decoration: none; color: var(--blue); font: 700 4.2cqw/1 "Helvetica Neue", Arial, sans-serif; }
.dm-report .dm-rp-b { position: absolute; left: 4%; width: 58%; bottom: 8%; height: 46%; background: #fff; border-radius: 4px; display: flex; gap: 5%; align-items: flex-end; padding: 3% 4% 0; }
.dm-report .dm-rp-b i { flex: 1; background: var(--blue); border-radius: 2px 2px 0 0; }
.dm-report .dm-rp-b i:nth-child(3n) { background: var(--lavender); }
.dm-report .dm-rp-d { position: absolute; right: 4%; width: 30%; bottom: 8%; height: 46%; background: #fff; border-radius: 4px; }
.dm-report .dm-rp-d::after { content: ""; position: absolute; inset: 14% 22%; border-radius: 50%; background: radial-gradient(#fff 52%, transparent 53%), conic-gradient(var(--blue) 0 62%, var(--lavender) 0 84%, var(--slate-soft) 0); }
.dm-book { aspect-ratio: 1 / 1.45; background: linear-gradient(160deg, #2333FF, var(--blue) 45%, var(--blue-deep)); padding: 14% 11%; direction: rtl; border-radius: 3px 8px 8px 3px; }
.dm-book::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5%; background: rgba(0,0,0,.18); }
.dm-book .dm-glow { position: absolute; width: 110%; aspect-ratio: 1; left: -30%; bottom: -36%; background: url(img/glow.webp) center / contain no-repeat; opacity: .9; }
.dm-book b { position: relative; display: block; color: #fff; font: 700 11cqw/1.3 "Noto Kufi Arabic", Arial, sans-serif; }
.dm-book img { position: absolute; right: 11%; bottom: 8%; width: 14%; }

/* cover: a small stack of the product's files on the slate gradient */
.stack { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: linear-gradient(135deg, #BBC6E6 0%, #A9B5D3 55%, #9AA6C0 100%); direction: ltr; }
.stack-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stack-glow { position: absolute; width: 85%; aspect-ratio: 1100 / 1058; left: 26%; top: -30%; background: url(img/glow.webp) center / contain no-repeat; transform: rotate(-12deg); opacity: .9; }
.ly { position: absolute; transition: transform .35s; }
.ly-slide, .ly-report { width: 62%; }
.ly-sheet { width: 50%; }
.ly-page { width: 32%; }
.ly-book { width: 34%; }
.ly0 { left: 10%; bottom: 10%; transform: rotate(-3deg); z-index: 3; }
.ly1 { left: 46%; bottom: 20%; transform: rotate(5deg); z-index: 2; }
.ly2 { left: 30%; bottom: 34%; transform: rotate(-8deg); z-index: 1; }
.ly0.ly-page { left: 14%; bottom: 8%; }
.ly1.ly-page { left: 58%; bottom: 10%; }
.ly2.ly-page { left: 56%; bottom: 30%; }
.ly0.ly-sheet { left: 12%; }
.ly0.ly-book { left: 18%; bottom: 7%; transform: rotate(-4deg); }
.ly1.ly-page:has(+ .ly0.ly-book), .ly-page + .ly0.ly-book { }
a:hover .ly1 { transform: rotate(8deg) translateY(-4px); }
a:hover .ly2 { transform: rotate(-11deg) translateY(-6px); }

/* store */
.search { display: flex; align-items: center; gap: 10px; margin-top: 30px; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 20px; box-shadow: 0 16px 40px -28px rgba(0,19,255,.5); }
.search > .ic { font-size: 22px; color: var(--blue); margin-inline-start: 10px; }
.search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 15px; padding: 10px 4px; min-width: 0; background: transparent; }
.store-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.store-links a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--tint); color: var(--blue); font-weight: 600; font-size: 14px; }
.store-links a:hover { background: var(--blue); color: #fff; }
.store-links .ic { font-size: 18px; }
.filters .fchip { display: inline-flex; gap: 6px; align-items: center; }
.filters .fchip .ic { font-size: 17px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-top: 30px; }
.pcard { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r); border: 1px solid var(--line); background: #fff; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.pcard:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 24px 50px -30px rgba(0,19,255,.5); }
.pcard-b { padding: 18px 20px 20px; display: grid; gap: 8px; align-content: start; }
.pcard-b h3 { font-size: 18px; }
.pcard-b p { font-size: 14px; color: var(--grey-soft); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-c { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--grey); }
.pcard-c .ic { color: var(--blue); font-size: 17px; }
.course-meta .ic { font-size: 15px; vertical-align: -3px; }
.pcard-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.pcard-f b { color: var(--blue); white-space: nowrap; }
.pcard-f s { color: var(--grey-soft); font-size: 13px; }
.save { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: #E9FBFB; color: #037C7C; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.save.big { font-size: 14px; padding: 6px 14px; width: fit-content; }

/* bundles */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; margin-top: 34px; }
.bcard { display: grid; grid-template-rows: auto 1fr; border-radius: 22px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.bcard:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 24px 50px -30px rgba(0,19,255,.5); }
.bc-art { position: relative; aspect-ratio: 16 / 8; background: var(--blue); overflow: hidden; }
.bc-art::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; left: -20%; top: -50%; background: url(img/glow.webp) center / contain no-repeat; }
.bc-i { position: absolute; width: 46%; top: 16%; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px -18px rgba(0,0,60,.6); }
.bc-i:nth-child(1) { right: 6%; transform: rotate(3deg); z-index: 3; }
.bc-i:nth-child(2) { left: 6%; transform: rotate(-4deg); top: 22%; z-index: 2; }
.bc-i:nth-child(3) { left: 27%; top: 8%; transform: rotate(-1deg) scale(.86); z-index: 1; }
.bc-art.n2 .bc-i:nth-child(2) { left: 10%; }
.bcard-b { padding: 20px 22px 22px; display: grid; gap: 8px; }
.bcard-b h3 { font-size: 20px; }
.bcard-b p { font-size: 14px; color: var(--grey-soft); }
.bc-k { display: inline-flex; gap: 6px; align-items: center; color: var(--peri); font-size: 13px; font-weight: 600; }
.bc-k .ic { font-size: 17px; }
.bitems { display: grid; gap: 12px; }
.bitem { display: grid; grid-template-columns: 150px 1fr auto; gap: 18px; align-items: center; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.bitem:hover { border-color: var(--blue); }
.bitem .stack { border-radius: 12px; }
.bi-b { display: grid; gap: 4px; }
.bi-b b { color: var(--blue); font-size: 16.5px; }
.bi-b small { display: inline-flex; gap: 6px; align-items: center; color: var(--grey); font-size: 13px; }
.bi-b small .ic { color: var(--blue); }
.bitem > em { font-style: normal; font-weight: 700; color: var(--grey-soft); text-decoration: line-through; white-space: nowrap; }
.b-save { display: flex; justify-content: space-between; font-size: 14px; }
.bf-h { font-size: 17px; margin: 28px 0 12px; }

/* assessments promo */
.agrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
.acard { display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: 22px; background: linear-gradient(180deg, #fff, var(--tint)); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.acard:hover { transform: translateY(-3px); border-color: var(--blue); }
.ac-ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--blue); color: #fff; font-size: 30px; }
.ac-ic.big { width: 76px; height: 76px; font-size: 42px; border-radius: 22px; flex: none; }
.ac-k { color: var(--peri); font-size: 13px; font-weight: 600; }
.acard h3 { font-size: 20px; }
.acard p { font-size: 14.5px; }
.acard .more { color: var(--blue); font-weight: 700; margin-top: 6px; }

/* product page */
.chero-grid > *, .sd-grid > *, .sci-grid > * { min-width: 0; }
.chero .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pricebox .pb-price { color: var(--blue); font-size: 32px; line-height: 1.1; }
.pricebox .pb-price span { font-size: inherit; }
.lic { display: grid; gap: 8px; }
.lic label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; }
.lic label:has(input:checked) { border-color: var(--blue); background: var(--tint); }
.lic input { accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.lic span { display: grid; flex: 1; }
.lic b { font-size: 15px; color: var(--blue); }
.lic small { font-size: 12.5px; color: var(--grey-soft); }
.lic em { font-style: normal; font-weight: 700; color: var(--blue-deep); font-size: 14px; white-space: nowrap; }
.perks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; font-size: 13.5px; }
.perks li { display: flex; gap: 8px; align-items: center; }
.perks .ic { color: var(--blue); font-size: 18px; }
.sample summary { list-style: none; justify-content: center; width: 100%; }
.sample summary::-webkit-details-marker { display: none; }
.sample[open] summary { margin-bottom: 12px; }
.free-form { display: grid; gap: 10px; }
.free-form label { display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; }
.free-form input, .restore input { font: inherit; font-size: 15px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; min-width: 0; }
.free-form .btn { justify-content: center; }
.free-msg { font-size: 14px; color: var(--blue); }
.free-msg.err { color: #B3261E; }

/* preview slider */
.gal { margin-top: 30px; }
.gal-stage { position: relative; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, #DCE3F5, #BBC6E6 60%, #A9B5D3); }
.gal-stage::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -18%; top: -40%; background: url(img/glow.webp) center / contain no-repeat; opacity: .55; pointer-events: none; }
.gal-track { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.gal-slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 6% 12%; }
.gal-art { width: 100%; height: 100%; display: grid; place-items: center; }
.gal-art > .dm, .gal-art > img { max-width: 100%; max-height: 100%; }
.gal-art.k-slide > .dm, .gal-art.k-report > .dm { width: 100%; }
.gal-art.k-sheet > .dm { width: 82%; }
.gal-art.k-page > .dm { height: 100%; width: auto; }
.gal-art > img { border-radius: 8px; box-shadow: 0 20px 40px -18px rgba(10,15,140,.5); object-fit: contain; }
.gal-nav { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--blue); font-size: 20px; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(0,19,255,.6); }
.gal-nav:hover { background: #fff; }
.gal-nav:disabled { opacity: .35; cursor: default; }
.gal-nav.prev { right: 14px; }
.gal-nav.next { left: 14px; }
.gal-nav.prev svg { transform: scaleX(-1); }
.gal-count { position: absolute; top: 14px; right: 16px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.85); color: var(--blue-deep); font-size: 13px; direction: ltr; }
.gal-stage .wm { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: rgba(0,19,255,.35); font-weight: 700; letter-spacing: .1em; font-size: 12px; pointer-events: none; }
.gal-cap { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-top: 14px; font-size: 15px; min-height: 28px; }
.gal-cap b { color: var(--blue); }
.gal-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.gal-th { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--tint); padding: 8px; border: 2px solid transparent; cursor: pointer; overflow: hidden; }
.gal-th.on { border-color: var(--blue); background: #fff; }
.gal-th > span { width: 100%; height: 100%; display: grid; place-items: center; pointer-events: none; }
.gal-th .dm { width: 100%; }
.gal-th .k-page .dm { width: auto; height: 100%; }
.gal-th img { max-height: 100%; }

/* content sections */
.sd-grid .lead + .lead { margin-top: 14px; }
.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.frow { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.frow .fmt { min-width: 46px; padding: 8px 0; font-size: 11px; margin-top: 2px; }
.frow > span { display: grid; gap: 2px; flex: 1; }
.frow b { color: var(--blue); font-size: 16px; }
.frow small { color: var(--peri); font-size: 13px; font-weight: 600; }
.fdet { font-size: 14px; color: var(--grey); }
.free-tag { font-style: normal; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: #E9FBFB; color: #037C7C; font-weight: 700; white-space: nowrap; }
.toc { margin: 0; padding: 22px 46px 22px 22px; border-radius: 18px; background: var(--tint); columns: 2; column-gap: 40px; font-size: 15px; }
.toc li { margin-bottom: 8px; break-inside: avoid; }
.toc li::marker { color: var(--blue); font-weight: 700; }
.aud ul li .ic { font-size: 22px; }
.science { background: var(--blue); color: #D5DAFF; overflow: hidden; }
.science .glow { width: 760px; left: -240px; top: -300px; opacity: .85; }
.science .h2 { color: #fff; margin-top: 4px; }
.science .lead { color: #D5DAFF; }
.sci-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.sci-pts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sci-pts li { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.sci-pts .ic { font-size: 26px; flex: none; }
.sci-ref { display: flex; gap: 8px; align-items: center; margin-top: 18px; font-size: 14px; }
.rel-course { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: var(--tint); }
.rel-course > .ic { font-size: 36px; color: var(--blue); }
.rel-course small { display: block; color: var(--peri); font-weight: 600; font-size: 12.5px; }
.rel-course b { color: var(--blue); }
.rel-course .more { margin-inline-start: auto; color: var(--blue); font-weight: 600; font-size: 14px; white-space: nowrap; }
.rel-course:hover { background: #E8ECFF; }
.in-bundle { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding: 18px 20px; border-radius: 18px; border: 1px dashed var(--slate); }
.in-bundle > .ic { font-size: 32px; color: var(--blue); }
.in-bundle small { display: block; color: var(--grey-soft); font-size: 12.5px; }
.in-bundle a { color: var(--blue); font-weight: 600; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; background: #fff; }
.faq summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.faq p { margin-top: 10px; font-size: 15px; }

/* assessment */
.as-head { display: flex; gap: 20px; align-items: center; }
.as-head h1 { font-size: clamp(30px, 4.2vw, 50px); }
.as-app { border-radius: 26px; border: 1px solid var(--line); background: #fff; padding: clamp(22px, 4vw, 40px); box-shadow: 0 30px 60px -44px rgba(0,19,255,.5); }
.as-facts { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.as-facts li { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--tint); color: var(--blue); font-weight: 600; font-size: 14px; }
.as-facts .ic { font-size: 18px; }
.as-axes { margin: 0 0 26px; padding-inline-start: 22px; display: grid; gap: 6px; }
.as-axes li::marker { color: var(--blue); font-weight: 700; }
.as-prog { display: flex; gap: 6px; margin-bottom: 22px; }
.as-prog i { flex: 1; height: 6px; border-radius: 6px; background: var(--tint); }
.as-prog i.on { background: var(--blue); }
.as-step small { color: var(--peri); font-weight: 600; }
.as-step h2 { font-size: 26px; margin: 4px 0 22px; }
.as-q { padding: 18px 0; border-top: 1px solid var(--line); }
.as-q legend { color: var(--blue-deep); font-weight: 600; font-size: 16px; margin-bottom: 12px; padding: 0; }
.as-q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.as-opts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.as-opts label { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 10px 6px; border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer; font-size: 12.5px; line-height: 1.5; }
.as-opts label b { font-size: 16px; color: var(--blue); }
.as-opts input { position: absolute; opacity: 0; }
.as-opts label:has(input:checked) { border-color: var(--blue); background: var(--blue); color: #fff; }
.as-opts label:has(input:checked) b { color: #fff; }
.as-opts label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.as-q.miss legend { color: #B3261E; }
.as-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.as-res-top { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 30px; align-items: center; }
.as-score { display: grid; gap: 6px; }
.as-score small { color: var(--peri); font-weight: 600; }
.as-score b { font-size: 64px; line-height: 1; color: var(--blue); direction: ltr; text-align: right; }
.as-score .lvl { display: inline-flex; width: fit-content; padding: 6px 16px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; font-size: 18px; }
.as-radar svg { width: 100%; height: auto; display: block; overflow: visible; }
.as-bars { display: grid; gap: 12px; margin-top: 26px; }
.as-bar { display: grid; grid-template-columns: minmax(0, 1fr) 2fr 52px; gap: 14px; align-items: center; font-size: 14.5px; }
.as-bar span:first-child { color: var(--blue-deep); font-weight: 600; }
.as-bar .track { height: 10px; border-radius: 10px; background: var(--tint); overflow: hidden; }
.as-bar .track i { display: block; height: 100%; border-radius: 10px; background: var(--blue); }
.as-bar.low .track i { background: var(--lavender); }
.as-bar b { color: var(--blue); direction: ltr; text-align: left; }
.as-recs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.as-rec { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.as-rec:hover { border-color: var(--blue); }
.as-rec > .ic { font-size: 30px; color: var(--blue); flex: none; }
.as-rec small { display: block; color: var(--peri); font-size: 12px; font-weight: 600; }
.as-rec b { color: var(--blue); font-size: 15px; line-height: 1.5; }
.as-rec em { display: block; font-style: normal; font-size: 13px; color: var(--grey-soft); }
.as-lead { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; padding: 24px; border-radius: 20px; background: var(--tint); }
.as-lead label { display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; }
.as-lead input { font: inherit; font-size: 15px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; min-width: 0; }
.as-lead .full { grid-column: 1 / -1; }

/* library + download panel */
.owns { display: grid; gap: 18px; }
.own { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: #fff; display: grid; gap: 12px; }
.own h3 { font-size: 20px; }
.own-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--grey-soft); }
.dl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dl-list li { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--tint); font-size: 14.5px; }
.dl-list li > span { flex: 1; display: grid; }
.dl-list li b { color: var(--blue-deep); font-weight: 600; }
.dl-list li small { color: var(--grey-soft); font-size: 12.5px; }
.dl-list .fmt { min-width: 44px; padding: 7px 0; }
.dl { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.dl:hover { background: #2333FF; }
.lib-link { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--slate); font-size: 14px; }
.lib-link code { direction: ltr; text-align: left; font-size: 12.5px; color: var(--blue-deep); word-break: break-all; }
.lib-link button { font: inherit; font-size: 13px; width: fit-content; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); font-weight: 600; cursor: pointer; }
.lib-empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 50px 20px; border-radius: 24px; background: var(--tint); }
.lib-empty > .ic { font-size: 54px; color: var(--blue); }
.lib-empty h2 { font-size: 22px; }
.restore { margin-top: 30px; padding: 26px; border-radius: 22px; border: 1px solid var(--line); display: grid; gap: 10px; }
.restore h3 { display: flex; gap: 8px; align-items: center; font-size: 18px; }
.restore > div { display: flex; gap: 10px; }
.restore input { flex: 1; }
.pay-dl { margin-top: 22px; text-align: right; display: grid; gap: 12px; }
.pay-dl h2 { font-size: 20px; }
.skeleton { height: 120px; border-radius: var(--r); background: linear-gradient(90deg, var(--tint), #fff, var(--tint)); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }

/* responsive */
@media (max-width: 1000px) {
  .agrid { grid-template-columns: 1fr; }
  .sci-grid, .as-res-top { grid-template-columns: 1fr; }
  .toc { columns: 1; }
}
@media (max-width: 760px) {
  .gal-thumbs { grid-template-columns: repeat(5, 72px); overflow-x: auto; }
  .gal-nav { width: 38px; height: 38px; }
  .bitem { grid-template-columns: 96px 1fr; }
  .bitem > em { grid-column: 2; }
  .as-opts { grid-template-columns: 1fr; }
  .as-opts label { grid-template-columns: 28px 1fr; justify-items: start; text-align: right; }
  .as-bar { grid-template-columns: 1fr 52px; }
  .as-bar .track { grid-column: 1 / -1; grid-row: 2; }
  .as-lead { grid-template-columns: 1fr; }
  .restore > div { flex-direction: column; }
  .chero .facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .gal-track { scroll-behavior: auto; } .skeleton { animation: none; } }
@media print {
  .top, footer, .cta, .as-nav, .as-lead, .as-actions, .crumbs { display: none !important; }
  .as-app { box-shadow: none; border: 0; padding: 0; }
  section { padding-block: 10px; }
}
