/* User-pinned illustrated learning cards. These assets are local, not remote thumbnails. */
.learning{--paper:#fbf7f2;--white:#fff;--line:#e7e5e6;--muted:#627083}
.tool-grid{gap:18px;align-items:stretch}
.subject-section .tool-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}
.subject-section .tool-content h3{font-size:18px}
.subject-section .tool-content p{font-size:14px}
.tool-card{border:1px solid #e4e6e6;border-radius:24px;background:#fff;box-shadow:0 5px 14px #263d3409}
.preview{height:auto;aspect-ratio:8/5;isolation:isolate}
.preview img{object-position:center;width:100%;height:100%}
.stage-badge{position:absolute;top:16px;left:16px;max-width:calc(100% - 32px);padding:7px 12px;border-radius:100px;background:#263544e8;color:#fff;font-size:12px;font-weight:600;line-height:1.5;text-align:left}
.tool-content{padding:15px 17px 6px}
.tool-content h3{font-size:21px;line-height:1.45;font-weight:700;letter-spacing:-.3px;color:#202b3a;margin:0}
.tool-content .title-row{align-items:flex-start;gap:8px}
.tool-content .icon-button{border:0;background:transparent;width:32px;height:32px;color:#71808a;margin-right:-5px}
.tool-content .icon-button.saved{background:#f6ecd4;color:#866b29}
.tool-content p{font-size:15px;line-height:1.85;color:#596b7f;margin:12px 0 0;display:block;overflow:visible;min-height:3.7em;-webkit-line-clamp:unset}
.availability-note{display:inline-block;margin-top:12px;font-size:12px;font-weight:600;color:#805125;background:#fff1db;border-radius:6px;padding:3px 9px}
.tool-foot{border:0;margin:0;padding:5px 17px 15px;gap:9px;flex-wrap:wrap;align-items:center}
.open-tool{display:inline-flex;gap:7px;align-items:center;color:#6553c7;text-decoration:none;font-size:16px;font-weight:700;min-height:40px;line-height:1.5}
.open-tool svg{width:20px;height:20px;transition:transform .2s ease-out}
.open-tool:hover{color:#4938a4}.open-tool:hover svg{transform:translateX(3px)}
.detail-link{color:#5d6d7a;background:transparent;padding:8px 0;font-size:12px;min-height:40px;white-space:nowrap;text-decoration:underline;text-decoration-color:#c6ccd2;text-underline-offset:4px}
.subject-section{margin-top:22px;margin-bottom:28px;--subject-bg:#ebeafd;--subject-color:#6553bb}
.subject-heading{display:flex;align-items:center;gap:12px;border-radius:15px;padding:13px 18px;background:var(--subject-bg);margin-bottom:16px;color:var(--subject-color)}
.subject-heading h2{font-size:20px;font-weight:700;line-height:1.35}.subject-heading p{font-size:12px;margin-top:3px;color:#56657b}
.subject-mark{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border-radius:11px;background:#ffffff80}.subject-mark svg{width:23px;height:23px;stroke-width:1.5}
.subject-total{margin-left:auto;padding:7px 13px;background:#ffffffb8;border-radius:100px;font-size:12px;font-weight:600;white-space:nowrap}
.subject-section.english{--subject-bg:#f0e6f5;--subject-color:#87529b}.subject-section.science{--subject-bg:#e6ecf7;--subject-color:#4369a5}.subject-section.geo{--subject-bg:#dff1ed;--subject-color:#2f7d73}.subject-section.biology{--subject-bg:#f5e5e9;--subject-color:#a4506c}.subject-section.history{--subject-bg:#f4ead6;--subject-color:#876333}.subject-section.general{--subject-bg:#e9efde;--subject-color:#527745}.subject-section.teaching{--subject-bg:#e4ebe5;--subject-color:#4d725e}
.learning .learn-grade button{border-radius:100px;font-size:14px;padding:10px 23px}.learning .learn-grade button.active{background:#6553c7;border-color:#6553c7}
.learning .page-heading{margin-top:10px}.learning .page-heading h1{color:#243041}.learning .page-heading p{font-size:14px}
.learning .chip.active{background:#6553c7;border-color:#6553c7}.learning .chip.active small{color:#eeeafa}.learning .chip{border-radius:9px}
.detail-stage{font-size:12px;color:#6a7580;display:block;margin-bottom:5px}.detail-body .detail-lead{font-size:17px;line-height:1.8;color:#364c57;margin:0 0 24px}.detail-section{margin:22px 0}.detail-section h3,.usage-boundary h3,.actual-preview h3{font-size:16px;color:#314949}.detail-section p{color:#566675;line-height:1.85;margin:7px 0}.detail-section ul{padding-left:20px;margin:8px 0;color:#566675;font-size:14px;line-height:1.85}.detail-section li+li{margin-top:4px}.usage-boundary{padding:18px 20px;background:#edf1e8;border-radius:12px;margin:24px 0}.usage-boundary.warn{background:#fff0dc}.usage-boundary p{color:#5e654f;font-size:13px;line-height:1.85;margin:7px 0 10px}.usage-boundary.warn p{color:#795c37}.service-state{font-size:12px;color:#4a6654}.detail-actions{margin:20px 0 28px}.actual-preview{border-top:1px solid #dedfd6;padding-top:22px}.actual-preview p{color:#6e7b7b;font-size:12px;margin:6px 0 12px}.actual-preview img{width:100%;display:block;border:1px solid #dedfd6;border-radius:12px}.source-details{margin-top:24px;font-size:13px}.source-details summary{cursor:pointer;padding:12px 0;color:#50685c}.source-details p{font-size:12px;color:#69776a;line-height:1.8}
@media(min-width:541px){.tool-card{border-radius:17px}.preview{height:auto;aspect-ratio:16/9}.tool-content h3{font-size:18px}.tool-content p{font-size:14px;line-height:1.75;margin-top:9px;min-height:3.5em}.stage-badge{top:11px;left:11px;padding:5px 9px;font-size:11px}.open-tool{font-size:14px;min-height:36px}.detail-link{min-height:36px}.learning .page-heading{margin-top:0;margin-bottom:16px}.learning .page-heading h1{font-size:26px}.learning .learn-grade{margin-top:15px;gap:8px}.learning .learn-grade button{padding:7px 18px;font-size:13px}.learning .filter-bar{margin:12px 0}.learning .subjects{gap:7px;margin-bottom:17px}.learning .chip{padding:6px 11px;font-size:12px}}
@media(max-width:1200px){.tool-grid{gap:16px}}
@media(max-width:650px){.tool-content{padding:20px 19px 8px}.tool-content h3{font-size:19px}.tool-content p{font-size:14px;line-height:1.8;min-height:5.4em}.tool-foot{padding:7px 19px 20px}.open-tool{font-size:15px}.stage-badge{font-size:11px;top:12px;left:12px}.subject-heading{padding:17px 18px;gap:12px}.subject-heading h2{font-size:21px}.subject-heading p{display:none}.subject-mark{width:41px;height:41px;border-radius:12px}.subject-total{font-size:11px;padding:6px 10px}}
@media(max-width:540px){.tool-grid{gap:22px}.subject-section .tool-grid{grid-template-columns:1fr}.tool-card{border-radius:23px}.preview{height:auto}.tool-content{padding:22px 22px 8px}.tool-content h3,.subject-section .tool-content h3{font-size:22px}.tool-content p,.subject-section .tool-content p{font-size:15px;line-height:1.8;min-height:0}.tool-foot{padding:8px 22px 22px}.open-tool{font-size:16px}.stage-badge{font-size:12px;top:14px;left:14px}.subject-section{margin:27px 0 32px}.subject-heading{margin-bottom:18px}.subject-total{font-size:12px}.detail-top h2{font-size:20px}}
@media(max-width:540px){.tool-grid{gap:16px}.tool-card{border-radius:18px}.preview{aspect-ratio:16/9}.tool-content{padding:16px 18px 6px}.tool-content h3,.subject-section .tool-content h3{font-size:19px}.tool-content p,.subject-section .tool-content p{font-size:14px;line-height:1.75}.tool-foot{padding:5px 18px 15px}.open-tool{font-size:15px}.subject-heading{padding:12px 15px;margin-bottom:14px}.subject-heading h2{font-size:19px}.subject-section{margin:20px 0 26px}.subject-mark{width:35px;height:35px}}
