/* Original white book cards, wider 4:5 proportions. */
#book-based-tests-section .book-carousel-shell{position:relative;min-width:0}
#book-tests-track{scroll-behavior:smooth;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding-top:10px;padding-bottom:18px}
#book-tests-track .book-card-item{position:relative;width:min(240px,calc(100vw - 72px));min-width:0;height:auto;max-height:none;aspect-ratio:4 / 5;flex:0 0 auto;box-sizing:border-box;padding:12px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 2px 6px #0f172a0a;scroll-snap-align:start;overflow:hidden;display:flex;flex-direction:column}
#book-tests-track .book-card-item>div:first-child{height:54%;flex:0 0 54%;min-height:0;background:#f8fafc;border:1px solid #f1f5f9;border-radius:12px}
#book-tests-track .book-card-item>div:nth-child(2){min-height:0;flex:1;padding-top:8px}
#book-tests-track .book-card-item h3{font-size:12px;line-height:1.3;font-weight:900;color:#64748b;height:32px;margin-bottom:4px}
#book-tests-track .book-card-item p{font-size:11px;color:#94a3b8;font-weight:600}
#book-tests-track .book-card-item button{background:#2563eb;color:#fff;border-radius:10px;min-height:40px;font-size:12px;font-weight:700;padding:8px;flex-shrink:0}
#book-based-tests-section .book-carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:10;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;background:#fff;color:#64748b;border:1px solid #e2e8f0;border-radius:50%;box-shadow:0 3px 12px #0f172a18;cursor:pointer}
#book-based-tests-section .book-carousel-previous{left:-12px}
#book-based-tests-section .book-carousel-next{right:-12px}
#book-based-tests-section button:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}
@media(min-width:640px){#book-tests-track .book-card-item{width:260px}#book-tests-track .book-card-item h3{font-size:13px}#book-based-tests-section .book-carousel-previous{left:-20px}#book-based-tests-section .book-carousel-next{right:-20px}}
@media(hover:hover){#book-tests-track .book-card-item button:hover{background:#1d4ed8}#book-based-tests-section .book-carousel-arrow:hover{color:#2563eb;background:#f8fafc}}
@media(prefers-reduced-motion:reduce){#book-tests-track{scroll-behavior:auto}#book-tests-track .book-card-item{transition:none;animation:none!important}}
#book-test-popup-modal>div{border-radius:24px;background:linear-gradient(160deg,#fff,#f8fbff);box-shadow:0 24px 70px #0f172a30;max-height:calc(100dvh - 32px);overflow-y:auto}
#book-test-popup-modal h3{font-weight:900;letter-spacing:-.4px;padding-right:28px}
#book-test-popup-modal label{font-size:11px;color:#526581;letter-spacing:1px}
#book-test-popup-modal select{appearance:none;-webkit-appearance:none;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23526581' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding:14px 38px 14px 14px;border:1px solid #dce5f1;border-radius:14px;box-shadow:0 3px 8px #14213d06;font-size:13px;font-weight:650;min-width:0;width:100%;transition:border-color .2s ease,box-shadow .2s ease}
#book-test-popup-modal select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb15}
#book-test-popup-modal select:disabled{background-color:#f1f5f9;color:#94a3b8;box-shadow:none}
#book-practice-summary{padding:12px;border:1px solid #dbeafe;border-radius:12px;background:#eff6ff;color:#475569}
#book-practice-start{background:linear-gradient(110deg,#2563eb,#4f46e5);min-height:46px;border-radius:14px}
#book-practice-start:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:479px){#book-test-popup-modal{padding:12px}#book-test-popup-modal>div{padding:22px 18px}#book-test-popup-modal select{font-size:16px}}
