body{margin:0;background:#102b2e;color:#f4e8c9}.borrowed-header{display:flex;gap:1.5rem;flex-wrap:wrap;align-items:center;padding:1rem 4%;border-bottom:1px solid #6e8078}.borrowed-header a{color:#f5df9b}.borrowed-main{max-width:1220px;margin:auto;padding:1.5rem}.borrowed-main h1{font-size:clamp(1.5rem,3vw,2.5rem)}.borrowed-setup,.borrowed-filters{display:flex;gap:.8rem;align-items:end;flex-wrap:wrap;margin:1rem 0}.borrowed-setup label,.borrowed-filters label{display:grid;gap:.4rem}.borrowed-setup select,.borrowed-filters select,.borrowed-filters input{font:inherit;padding:.6rem;max-width:100%}#deck-status{font-weight:bold}#borrowed-error{color:#ffccad;min-height:1.3em}.borrowed-library{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:1rem}.borrowed-slot{min-width:0}.borrowed-card{width:100%;height:auto!important;aspect-ratio:5/7;position:relative;display:flex!important;flex-direction:column;gap:.35rem;padding:.6rem;border:2px solid #a89969;border-radius:10px;background:#f0e2b5;color:#203030;text-align:left;overflow:hidden}.borrowed-card .borrowed-art{height:39%;display:grid;place-items:center;background:#dbd9c7;font-size:.8rem}.borrowed-card .borrowed-name{font-size:1rem}.borrowed-card .borrowed-text{font-size:.73rem;line-height:1.35;overflow:hidden}.borrowed-card .borrowed-kind{font-size:.7rem}.borrowed-card .runtime-surface{position:absolute;inset:0}.borrowed-card .runtime-surface img{width:100%;height:100%;object-fit:contain}.borrowed-card.runtime-print>:not(.runtime-surface){visibility:hidden}.borrowed-count{display:flex;justify-content:space-between;align-items:center;margin-top:.4rem;gap:.4rem}.borrowed-count button{min-height:38px;padding:.3rem .7rem}.borrowed-count span{font-size:.8rem}.borrowed-card:focus-visible,.borrowed-count button:focus-visible{outline:3px solid #6ed6fc;outline-offset:3px}.borrowed-detail-face{max-width:300px;margin:1rem auto;aspect-ratio:5/7}.borrowed-detail-face .borrowed-card{height:100%!important}.borrowed-detail-face .borrowed-text{font-size:1rem}.borrowed-detail-text{max-width:36rem;line-height:1.7}.borrowed-setup .primary:disabled{opacity:.5}#borrowed-detail,#restart-borrowed{max-width:min(95vw,650px);max-height:92vh;overflow:auto}#free-battle-root[hidden],#borrowed-editor[hidden]{display:none!important}.normal-placeholder{font:600 .75rem/1.4 sans-serif;color:#3e514b;background:#e7e0c5;display:grid;place-items:center;min-height:2rem;padding:.3rem}.borrowed-detail-face .normal-placeholder{font-size:1rem}
/* Keep the reading list near the controls when its cards use the 300px print. */
.borrowed-main{gap:12px}
.borrowed-main .borrowed-setup,.borrowed-main .borrowed-filters{margin:.5rem 0}
#borrowed-error:empty{display:none}
