.math-album-open,.math-album-close,.math-album-back,.math-album-pagination button{font:700 1rem/1.5 system-ui,"Microsoft JhengHei",sans-serif;border:1px solid #3d7560;border-radius:999px;padding:.6rem 1rem;background:#fffefa;color:#244e3c;cursor:pointer;min-height:44px}
.math-album-open:focus-visible,.math-album-dialog button:focus-visible,.math-album-dialog select:focus-visible{outline:3px solid #b66b21;outline-offset:3px}.math-album-open{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;flex-wrap:wrap}.math-album-count{padding:.1rem .45rem;border-radius:30px;background:#e9f0d9;font-size:.9rem}
.math-album-strip,.math-album-reward{box-sizing:border-box;display:flex;gap:1rem;align-items:center;justify-content:space-between;border:1px solid #c7d8bd;border-radius:16px;background:#f4f8e9;color:#24463f;padding:.85rem 1rem;margin:.8rem 0;font-family:system-ui,"Microsoft JhengHei",sans-serif}.math-album-strip p,.math-album-reward p{margin:.3rem 0;font-size:1rem;line-height:1.65}.math-album-strip strong{font-size:1rem}.math-album-reward{background:#fff8dc;border-color:#d4b56a;justify-content:flex-start}.math-album-reward>img{width:88px;height:110px;object-fit:cover;border-radius:12px;flex:none}.math-album-reward>div{flex:1;min-width:0}.math-album-reward strong{font-size:1.15rem}.math-album-reward[hidden],.math-album-dialog [hidden]{display:none!important}
.math-album-dialog{box-sizing:border-box;width:min(1120px,calc(100vw - 2rem));max-height:90vh;max-height:90dvh;overflow:auto;padding:0;border:1px solid #b6ceb4;border-radius:22px;background:#fafcf5;color:#24463f;font:1rem/1.6 system-ui,"Microsoft JhengHei",sans-serif;box-shadow:0 24px 80px #18362d55}.math-album-dialog::backdrop{background:#102e29aa}.math-album-dialog>*{box-sizing:border-box}.math-album-header{position:sticky;top:0;z-index:2;background:#fafcf5;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.3rem;border-bottom:1px solid #d1dfc9}.math-album-header h2{margin:0;font-size:clamp(1.3rem,3vw,1.8rem)}.math-album-close{flex:none}.math-album-intro{padding:1rem 1.3rem .5rem}.math-album-owner{font-weight:750;font-size:1.05rem;margin:.1rem 0}.math-album-intro>p{margin:.35rem 0}.math-album-intro progress{display:block;width:100%;height:14px;accent-color:#36775b}.math-album-note{font-size:.95rem;color:#4c6556;line-height:1.7}.math-album-browse{padding:.5rem 1.3rem 1.3rem}.math-album-tools{display:flex;gap:1rem;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:1rem}.math-album-tools label{display:flex;gap:.6rem;align-items:center}.math-album-tools select{font:inherit;min-height:44px;border:1px solid #809a82;border-radius:9px;background:#fff;padding:.35rem .8rem}.math-album-tools p{margin:0;font-size:.95rem}.math-album-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1rem}.math-album-card{position:relative;box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;gap:.35rem;min-width:0;margin:0;padding:.55rem;border:1px solid #c8d7c0;border-radius:15px;background:#fffefa;color:#24463f;text-align:left;font:inherit;overflow:hidden}.math-album-card.is-owned{cursor:pointer}.math-album-card.is-owned:hover{border-color:#477d5a;background:#f0f6e6}.math-album-card img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:9px}.math-album-card strong{font-size:1rem;overflow-wrap:anywhere}.math-album-number{font-size:.9rem;color:#596f60;font-weight:750;font-variant-numeric:tabular-nums}.math-album-card-state{font-size:.875rem;color:#5b6d5e}.math-album-card.is-locked{background:#eef1e7;border-style:dashed;color:#536650}.math-album-locked-art{display:grid;place-items:center;width:100%;aspect-ratio:4/5;border-radius:9px;background:radial-gradient(ellipse at center,#e2e9d7,#edf1e7);color:#a2b496;font-size:3rem}.math-album-pagination{display:flex;justify-content:space-between;gap:1rem;margin-top:1.25rem}.math-album-pagination button:disabled{opacity:.5;cursor:default}.math-album-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:2rem;padding:1.3rem}.math-album-detail>.math-album-back{grid-column:1/-1;justify-self:start}.math-album-detail>img{display:block;width:100%;height:auto;max-height:55vh;object-fit:contain;border-radius:14px}.math-album-detail h3{font-size:1.6rem;margin:.3rem 0}.math-album-detail p{line-height:1.8}
@media(max-width:850px){.math-album-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem}}@media(max-width:600px){.math-album-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.math-album-strip{align-items:flex-start;flex-wrap:wrap}.math-album-reward{gap:.75rem;flex-wrap:wrap}.math-album-reward>img{width:72px;height:90px}.math-album-reward>.math-album-open{margin-left:auto}.math-album-header,.math-album-intro,.math-album-browse{padding-left:.9rem;padding-right:.9rem}.math-album-dialog{width:calc(100vw - 1rem);border-radius:15px}.math-album-detail{grid-template-columns:minmax(0,1fr);gap:1rem}.math-album-detail>img{max-height:48vh}.math-album-tools{gap:.6rem}.math-album-card{padding:.45rem}}
@media print{.math-album-open,.math-album-strip,.math-album-reward,.math-album-dialog{display:none!important}}

@media(max-width:650px){.math-companion-controls{flex-wrap:wrap}}

.math-album-open,.math-album-close,.math-album-back,.math-album-dialog .math-album-pagination button{background:#fffefa!important;color:#244e3c!important}.math-album-tools label{flex:none}.math-album-tools label>span{white-space:nowrap}
