/* Catalog-only layout: order desk and delivery forms keep their established styles. */
body:has(.shop-library){background:#f3f6fc}body:has(.shop-library)>:is(.site-header,.science-mobile-navigation,footer){display:none}
.shop-library{--ink:#1e304e;--muted:#718199;--green:#2868e8;--line:#dde5f0;--surface:#fff;--soft:#f4f7fc;max-width:1840px;width:calc(100% - 48px);height:var(--library-height,calc(100dvh - 24px));min-height:550px;padding:0;margin:12px auto 0;display:flex;flex-direction:column;gap:0;color:var(--ink)}
.shop-library button{font:inherit}.shop-library :focus-visible{outline:3px solid #78b8ff;outline-offset:3px}.shop-library>dialog{flex:none}.shop-library>#blender-models{display:none}
.library-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:70px;padding:0 2px 14px;flex-shrink:0}.library-heading{display:flex;align-items:center;gap:14px}.library-mark{width:48px;height:48px;display:grid;place-content:center;border-radius:15px;background:linear-gradient(135deg,#377af5,#2459da);box-shadow:0 5px 14px #326de529}.library-mark svg{width:25px;height:25px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.library-intro h1{font-size:29px!important;letter-spacing:.5px;line-height:1.2}.library-intro h1 span{font-size:10px;color:#899bb1;font-weight:500;letter-spacing:2px;margin-left:14px;vertical-align:middle}.library-intro p{color:var(--muted);font-size:13px;margin-top:8px}.library-price{display:flex;align-items:center;gap:13px;font-size:12px;color:var(--muted)}.library-price strong{font-size:24px;letter-spacing:-.5px;color:var(--ink)}.library-price strong small{font-size:12px;font-weight:400;color:var(--muted);letter-spacing:0}.library-price em{font-style:normal;background:#fff0df;color:#ac6a22;padding:6px 10px;border-radius:6px;font-size:11px}
.library-tabs{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;min-height:44px;border-bottom:1px solid var(--line);flex-shrink:0}.library-tabs>div{height:44px;display:flex;gap:26px}.library-tabs button{position:relative;border:0;border-radius:0;padding:0 4px 12px;background:transparent;color:var(--muted);font-size:14px;font-weight:600}.library-tabs button b{font-size:10px;background:#e8eef8;border-radius:5px;padding:2px 5px;margin-left:6px;font-weight:500}.library-tabs button[aria-selected=true]{color:var(--green)}.library-tabs button[aria-selected=true]:after{position:absolute;content:'';height:3px;left:4px;right:4px;bottom:0;background:var(--green);border-radius:4px 4px 0 0}.library-tabs>a{font-size:13px;font-weight:600;padding:0 3px 10px;color:#546983}.library-tabs>a span{margin-left:15px;color:var(--green)}
.library-workspace{display:grid;grid-template-columns:190px minmax(0,1fr) 286px;gap:20px;min-height:0;flex:1}.library-sidebar{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:18px 13px;display:flex;flex-direction:column;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#d0dced transparent}.sidebar-label{font-size:12px;color:#586d87;margin:0 9px 13px;font-weight:650;display:flex;align-items:center;justify-content:space-between}.sidebar-label span{font-size:8px;letter-spacing:1px;color:#a4b0c0;font-weight:400}#shop-subject-list{display:grid;gap:4px}.shop-library .library-subject{border:0;background:transparent;border-radius:9px;display:flex;align-items:center;text-align:left;gap:10px;padding:10px 11px;font-size:13px;color:#52677e;min-height:39px}.library-subject .subject-glyph{width:23px;height:23px;display:grid;place-content:center;font-size:19px;color:#6d89ab}.library-subject small{margin-left:auto;font-size:11px;font-variant-numeric:tabular-nums;color:#8c9db1}.shop-library .library-subject:hover{background:var(--soft)}.shop-library .library-subject[aria-pressed=true]{background:#eaf1ff;color:#225cd4;font-weight:650}.library-subject[aria-pressed=true] .subject-glyph,.library-subject[aria-pressed=true] small{color:#2868e8}
.sidebar-curriculum{border-top:1px solid var(--line);margin-top:16px;padding:16px 4px 0;display:flex;flex-direction:column;gap:8px}.sidebar-curriculum label{font-size:11px;color:var(--muted);margin-top:3px}.sidebar-curriculum select{font:inherit;font-size:12px;border:1px solid var(--line);border-radius:7px;height:34px;width:100%;background:var(--surface);color:var(--ink);padding:0 6px;min-width:0}.sidebar-curriculum select:disabled{color:#9aabba;background:var(--soft)}.shop-library .scope-add{background:#edf4ff;color:#3064bd;border:1px solid #cdddf6;border-radius:7px;font-size:11px;font-weight:600;padding:9px 4px;margin-top:4px}.shop-library .text-button{background:transparent;color:var(--muted);border:0;text-decoration:none;font-size:11px;padding:4px}.sidebar-curriculum>p{font-size:10px;line-height:1.8;color:#8b9aad}.sidebar-note{margin-top:auto!important;padding:20px 5px 0;font-size:11px;color:#7890a8;line-height:2}.sidebar-note>span{color:#50a3b6;margin-right:4px}.sidebar-note small{font-size:9px;color:#a0aebc}
.library-catalog{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column}.library-catalog-top{height:39px;flex-shrink:0;display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.library-catalog-top>div{display:flex;align-items:center;gap:12px;min-width:0}.library-catalog-top h2{font-size:19px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:450px}.library-catalog-top #shop-results{font-size:11px;color:#8998aa;white-space:nowrap}.library-selected{display:flex;gap:7px;align-items:center;font-size:12px;color:#6d8097;white-space:nowrap;padding-top:3px}.shop-library input[type=checkbox]{width:15px;height:15px;accent-color:var(--green)}.library-filterbar{display:flex;gap:10px;margin-bottom:14px;flex-shrink:0;height:40px}.library-search{display:flex;align-items:center;gap:10px;flex:1;min-width:0;border:1px solid var(--line);background:var(--surface);border-radius:9px;padding:0 12px}.library-search:focus-within{border-color:#77a5f1;box-shadow:0 0 0 3px #326de510}.library-search svg{width:18px;height:18px;fill:none;stroke:#8298b3;stroke-width:1.7;flex-shrink:0}.library-search input{width:100%;min-width:0;padding:0!important;outline:none!important;border:0!important;background:transparent;font:inherit;font-size:13px;color:var(--ink);height:100%}.library-search input::placeholder{color:#92a0b2}.library-filterbar select{font:inherit;font-size:12px;padding:0 12px;background:var(--surface);color:#61768c;border:1px solid var(--line);border-radius:9px;width:128px}
.shop-library .library-grid{display:grid;grid-template-columns:repeat(var(--library-cols,4),minmax(0,1fr));grid-template-rows:repeat(var(--library-rows,2),minmax(0,1fr));gap:14px;flex:1;min-height:0;max-height:none;overflow:visible;padding:0;align-content:stretch}.shop-library .shop-model-card{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid var(--line);background:var(--surface);border-radius:13px;overflow:hidden;box-shadow:0 3px 9px #20395c04;transition:border-color .15s,box-shadow .15s}.shop-library .shop-model-card:hover{border-color:#9cbdec;box-shadow:0 5px 16px #20427010}.shop-library .shop-model-card.selected{border:2px solid #3778ee;box-shadow:0 0 0 2px #3778ee10;background:var(--surface)}.shop-library .shop-model-cover{position:relative;display:block;flex:1;min-height:65px;width:100%;border:0;border-radius:0;padding:0;background:#e9eff6;aspect-ratio:auto;overflow:hidden}.shop-library .shop-model-cover img{display:block;width:100%;height:100%;object-fit:cover;position:absolute;inset:0;transition:transform .2s}.shop-library .shop-model-cover:hover img{transform:scale(1.025)}.shop-library .shop-model-number{position:absolute;top:8px;left:8px;font-size:10px;color:#52657b;background:#fffffff0;border:1px solid #ffffffaa;border-radius:5px;padding:2px 5px;font-weight:600}.card-selected-mark{position:absolute;top:8px;right:8px;display:grid;place-content:center;width:22px;height:22px;border-radius:50%;background:#2868e8;color:white;font-size:13px;box-shadow:0 2px 6px #24458220}.library-card-info{padding:9px 12px 0;flex-shrink:0}.shop-library .shop-model-grade{display:block;margin:0 0 4px;color:#8795a7;font-size:10px;line-height:1.3}.shop-library .shop-model-card h3{font-size:14px;line-height:1.45;height:40px;margin:0;font-weight:600;letter-spacing:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--ink)}.shop-library .shop-model-footer{display:flex;justify-content:space-between;align-items:center;gap:4px;padding:8px 11px 10px;flex-shrink:0}.shop-library .shop-model-footer>b{font-size:15px;font-weight:600;color:#3c5473}.shop-library .card-add{font-size:11px;font-weight:550;padding:6px 8px;border:1px solid #dce7fb;border-radius:6px;background:#f1f6ff;color:#3264bf;white-space:nowrap}.shop-library .card-add[aria-pressed=true]{background:#2868e8;color:#fff;border-color:#2868e8}.library-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;height:46px;flex-shrink:0;color:#8292a7;font-size:11px}.library-pagination>div{display:flex;align-items:center;gap:12px;font-size:12px}.library-pagination button{display:grid;place-content:center;min-width:30px;height:27px;background:var(--surface);color:#55769e;border:1px solid var(--line);border-radius:6px;font-size:16px}.library-empty{position:absolute;inset:110px 0 55px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--soft);border:1px dashed var(--line);border-radius:12px}.library-empty>span{font-size:50px;color:#a2b5cd}.library-empty h3{font-size:18px;margin:10px 0}.library-empty p{font-size:13px;color:var(--muted)}.library-empty button{margin-top:20px;background:var(--surface);border:1px solid var(--line);padding:9px 16px;border-radius:8px;color:var(--green);font-size:13px}
.library-basket{display:flex;flex-direction:column;min-height:0;background:var(--surface);border:1px solid var(--line);border-radius:15px;overflow:hidden;box-shadow:0 8px 24px #214c7e05}.library-basket>header{display:flex;align-items:center;justify-content:space-between;padding:19px 19px 16px;border-bottom:1px solid #edf1f7;flex-shrink:0}.library-basket>header>div{display:flex;gap:8px;align-items:center}.library-basket h2{font-size:16px}.basket-icon{color:#4484e8;font-size:22px}.library-basket #basket-count{font-size:12px;font-weight:700;background:#eef4ff;color:#3676db;border-radius:7px;min-width:25px;padding:4px 7px;text-align:center}.library-basket-list{flex:1;min-height:65px;overflow:auto;scrollbar-width:thin;scrollbar-color:#c6d8ed transparent;padding:0 15px}.library-basket-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;color:#889bb1}.library-basket-empty>span{display:grid;place-content:center;width:52px;height:52px;border-radius:16px;border:1px dashed #c5d6ed;background:#f7faff;color:#99b2d7;font-size:28px;font-weight:300}.library-basket-empty>b{font-size:12px;font-weight:500}.library-basket-empty>p{font-size:10px;color:#9aaabe}.library-basket-item{display:grid;grid-template-columns:43px minmax(0,1fr) 22px;gap:9px;align-items:center;border-bottom:1px solid #eef2f8;padding:12px 0}.library-basket-item>img{width:43px;height:35px;object-fit:cover;border-radius:5px;background:#edf3f8}.library-basket-item>div{min-width:0}.library-basket-item b{display:block;font-size:11px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:5px}.library-basket-item small{font-size:9px;color:#9ba8b9}.library-basket-item>button{border:0;background:#f3f6fb;color:#93a3b5;border-radius:50%;width:21px;height:21px;font-size:15px;padding:0}.basket-list-bottom{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:11px 18px;font-size:10px;color:#98a5b6;flex-shrink:0}.library-quote{background:linear-gradient(180deg,#f7faff,#fff);padding:18px 20px 12px;border-top:1px solid var(--line);flex-shrink:0}.library-quote>p:not(.next-tier){display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#8491a4;margin-bottom:10px}.library-quote p b{color:#5a708b;font-weight:500;font-variant-numeric:tabular-nums}.library-quote .quote-saving b{color:#ca8035}.quote-total{display:flex;justify-content:space-between;align-items:center;margin:21px 0 9px}.quote-total>span{font-size:12px;color:#5a6f8c}.quote-total strong{font-size:30px;letter-spacing:-1px;font-variant-numeric:tabular-nums;color:#25476d}.next-tier{font-size:10px!important;color:#7e91ab;margin:0 0 15px!important;min-height:15px}.shop-library .library-checkout{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(110deg,#367cf3,#245ed9);color:#fff;font-size:14px;font-weight:600;padding:13px 16px;border-radius:9px;box-shadow:0 5px 12px #3972df1f}.shop-library .library-checkout.disabled{background:#e5edf9;color:#93a8c8;box-shadow:none;cursor:default}.price-details{display:block;border:0;background:transparent;color:#8c9cb1;font-size:10px!important;margin:11px auto 0;padding:0}.library-delivery{display:flex;align-items:center;justify-content:center;gap:6px;padding:13px 5px;border-top:1px solid #f0f3f8;color:#9aa9bc;font-size:9px;flex-shrink:0}.library-delivery i{font-style:normal;color:#bed0e4}
.library-free-panel{flex:1;min-height:0;display:flex;flex-direction:column}.library-free-panel>header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px;flex-shrink:0}.library-free-panel h2{font-size:21px}.library-free-panel p{font-size:13px;color:var(--muted);margin-top:8px}.library-free-panel>header>span{font-size:12px;color:#4b91a4;background:#eaf6f7;padding:8px 14px;border-radius:8px}.library-free-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:16px;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:3px 8px 6px 3px;scrollbar-width:thin;scrollbar-color:#c4d5eb transparent}.shop-library .free-card{display:flex;flex-direction:column;background:var(--surface);border-color:var(--line);min-height:0}.shop-library .free-card>img{width:100%;height:auto;min-height:0;flex:none;object-fit:contain;aspect-ratio:16/10}.shop-library .free-card>div{padding:10px 14px;flex-shrink:0}.shop-library .free-card h3{font-size:14px;height:40px;color:var(--ink)}.shop-library .free-card button{font-size:12px;color:#247e97}.shop-library .free-card .subject{font-size:10px;color:var(--muted)}
.library-services-panel{flex:1;min-height:0;overflow:auto;scrollbar-width:thin}.library-custom{display:flex;align-items:center;justify-content:space-between;padding:26px 30px;border-radius:16px;background:linear-gradient(110deg,#eaf2ff,#edf8fa);border:1px solid #dbe7f8;margin-bottom:24px}.library-custom p{font-size:12px;color:#548bb6;margin-bottom:9px}.library-custom h2{font-size:25px;margin-bottom:11px}.library-custom span{font-size:12px;color:#7a8ea5}.library-custom button{background:var(--surface);border-color:#c5d8f3;color:#316ac3;font-size:13px}.library-services-panel .blender-section{padding:0 3px 20px}.library-services-panel .blender-card{background:var(--surface);border-color:var(--line)}.library-services-panel .blender-label{background:#eaf0fb;color:#6684ae}.library-services-panel .section-heading h2{font-size:21px}
.shop-library .library-preview{padding:0;width:850px;overflow:hidden;max-width:88vw;background:var(--surface);border-radius:18px}.library-preview-image{height:min(42vh,390px);background:var(--soft)}.library-preview-image img{width:100%;height:100%;object-fit:contain}.library-preview-info{padding:24px 30px}.library-preview-info>span{font-size:11px;color:#8497ad}.library-preview-info h2{font-size:25px;margin:10px 0 12px}.library-preview-info p{font-size:14px;line-height:1.8;color:#6d819a}.library-preview-info>div{display:flex;align-items:center;gap:22px;margin-top:22px}.library-preview-info button{background:#2868e8;color:white;border:0;border-radius:8px;padding:11px 20px;font-size:13px}.library-preview-info a{font-size:13px;color:#5386c3}.library-preview .close{z-index:2;background:#fffffff0!important}.library-discounts{min-width:260px;margin:22px 0}.library-discounts p{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line);font-size:14px}.library-discounts b{color:var(--green)}.library-toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);z-index:2147483647;background:#203756ed;color:#fff;font-size:13px;line-height:1.6;padding:11px 22px;border-radius:9px;box-shadow:0 5px 25px #263b6226;max-width:70vw;pointer-events:none}
@media(min-width:1700px){.library-workspace{grid-template-columns:210px minmax(0,1fr) 300px;gap:24px}.library-sidebar{padding:22px 15px}.shop-library .library-subject{font-size:14px;padding:12px}.sidebar-curriculum{gap:11px}.sidebar-curriculum select{height:38px}.sidebar-curriculum label{font-size:12px}.shop-library .scope-add{font-size:12px}.library-catalog-top{height:43px}.library-filterbar{height:44px;margin-bottom:17px}.shop-library .library-grid{gap:18px}.library-card-info{padding:12px 15px 0}.shop-library .shop-model-card h3{font-size:16px;height:46px}.shop-library .shop-model-grade{font-size:11px}.shop-library .shop-model-footer{padding:10px 14px 13px}.shop-library .shop-model-footer>b{font-size:17px}.shop-library .card-add{font-size:12px;padding:7px 10px}.library-basket-item b{font-size:12px}.library-basket-list{padding:0 18px}.library-quote{padding:22px 23px 17px}.library-quote>p:not(.next-tier){font-size:13px}.library-delivery{font-size:10px}.library-basket>header{padding:23px}.library-basket h2{font-size:17px}.sidebar-note{font-size:12px}.sidebar-note small{font-size:10px}.library-basket-empty>b{font-size:13px}.library-basket-empty>p{font-size:11px}}
@media(max-height:820px){.library-intro{min-height:61px;padding-bottom:10px}.library-intro h1{font-size:25px!important}.library-mark{width:43px;height:43px}.library-tabs{margin-bottom:12px;min-height:39px}.library-tabs>div{height:39px}.library-sidebar{padding:13px 10px}.sidebar-label{margin-bottom:8px}.shop-library .library-subject{min-height:33px;padding:6px 10px;font-size:12px}.library-subject .subject-glyph{font-size:17px}.sidebar-curriculum{margin-top:11px;padding-top:10px;gap:5px}.sidebar-curriculum select{height:30px}.sidebar-note{padding-top:10px;font-size:10px}.sidebar-note small{font-size:9px}.library-basket>header{padding:15px 17px}.library-quote{padding:13px 18px 10px}.quote-total{margin-top:15px}.quote-total strong{font-size:28px}.library-delivery{padding:10px 3px}.library-basket-list{min-height:55px}.library-catalog-top{height:34px}.library-filterbar{margin-bottom:12px;height:36px}.library-pagination{height:39px}.library-card-info{padding:7px 10px 0}.shop-library .shop-model-card h3{font-size:14px;height:39px}.shop-library .shop-model-footer{padding:5px 9px 8px}.shop-library .shop-model-footer>b{font-size:14px}.shop-library .card-add{font-size:10px;padding:5px 7px}.library-free-panel>header{margin-bottom:12px}.library-custom{padding:20px 25px}.library-custom h2{font-size:22px}}
html[data-science-theme=dark] body:has(.shop-library){background:#111c2e}html[data-science-theme=dark] .shop-library{--ink:#dae6f7;--muted:#8ea4c3;--green:#7eacff;--line:#30435e;--surface:#1b2a40;--soft:#1e3049}html[data-science-theme=dark] .shop-library .library-subject[aria-pressed=true]{background:#263f65;color:#9fc5ff}html[data-science-theme=dark] .shop-library .library-subject[aria-pressed=true] :is(small,.subject-glyph){color:#9fc5ff}html[data-science-theme=dark] .shop-library .scope-add,html[data-science-theme=dark] .shop-library .card-add{background:#263d60;border-color:#3c5881;color:#a6caff}html[data-science-theme=dark] .shop-library .card-add[aria-pressed=true]{background:#3574dd;color:#fff}html[data-science-theme=dark] .library-quote{background:#1a2940}html[data-science-theme=dark] .quote-total strong,html[data-science-theme=dark] .shop-library .shop-model-footer>b{color:#b9d2f6}html[data-science-theme=dark] .library-basket-empty>span{background:#243751;border-color:#45658a}html[data-science-theme=dark] .library-basket>header,html[data-science-theme=dark] .library-basket-item,html[data-science-theme=dark] .library-delivery{border-color:var(--line)}html[data-science-theme=dark] .library-custom{background:linear-gradient(110deg,#233d64,#203d4a);border-color:var(--line)}html[data-science-theme=dark] .shop-library .library-checkout.disabled{background:#293e5b;color:#8199bb}html[data-science-theme=dark] .library-tabs button b{background:#263d59}html[data-science-theme=dark] .library-preview .close{background:#263e5e!important;color:#b7d4ff}html[data-science-theme=dark] .library-price em{background:#473b30;color:#efbb7e}
/* Keep complete scientific thumbnails visible, including rulers and graph labels. */
.shop-library .shop-model-cover img{object-fit:contain}.shop-library .shop-model-cover{background:#edf2f8}
@media(min-width:1700px){.library-card-info{padding:8px 12px 0}.shop-library .shop-model-card h3{font-size:15px;height:42px}.shop-library .shop-model-grade{font-size:10px;margin-bottom:3px}.shop-library .shop-model-footer{padding:6px 11px 9px}.shop-library .card-add{font-size:11px;padding:6px 8px}}
@media(max-height:820px){.sidebar-note{display:none}.shop-library .library-subject{padding:5px 10px;min-height:30px}.library-subject .subject-glyph{height:20px;width:20px}.sidebar-curriculum{margin-top:9px;padding-top:9px}.library-sidebar{padding-top:12px;padding-bottom:10px}}
html[data-science-theme=dark] .shop-library .shop-model-card.selected{background:var(--surface);border-color:#5892f2}
.shop-library .free-card>img{object-fit:contain;background:#edf2f8}

.shop-library .library-back{display:flex;align-items:center;gap:8px;margin-right:8px;padding:10px 13px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:#5c7699;font-size:12px;white-space:nowrap}.library-back>span{font-size:19px}.shop-library .library-back:hover{border-color:#91b4ed;color:var(--green);background:var(--soft)}

.shop-library .entry-focus{border-color:#397bf1;box-shadow:0 0 0 3px #397bf124}.shop-library .free-card.entry-focus{border:2px solid #397bf1}.shop-library .entry-focus .shop-model-number{background:#eaf2ff;color:#225fd4}

.shop-library .library-free-note{flex-shrink:0;margin:0;padding:10px 2px 0;font-size:11px;color:var(--muted)}
