/* Selection changes contents inside a fixed assembly bench, never its geometry. */
body #deck #top-shards{min-height:0;display:flex;padding:0;gap:0}
.shard-workbench{display:grid;grid-template-columns:240px 180px minmax(0,1fr) 300px;gap:24px;align-items:center;width:min(1180px,100%);min-width:0;box-sizing:border-box;padding:10px 0}
.shard-stock{display:grid;grid-template-rows:30px 150px 52px 20px 36px;height:288px;align-items:center;justify-items:center;box-sizing:border-box;width:100%;color:#c7cee2;min-width:0;text-align:center;font:400 15px/1.4 var(--font-ui)}
.shard-stock>strong{font:500 20px/1.35 var(--font-display);color:#e3d3f0}
.shard-stock-art{height:150px;width:100%;object-fit:contain;filter:drop-shadow(0 6px 10px #0005)}
#shard-stock-count{font-variant-numeric:tabular-nums;font-size:22px;white-space:nowrap}
#shard-stock-count b{font-size:36px;font-weight:600;color:#e5d0ff}
#shard-stock-note{font-size:14px;align-self:center}
.shard-stock .wk-shard-progress{width:90%;margin:0;height:8px;border:1px solid #8c77b444;box-sizing:border-box}
.shard-flow{height:162px;display:grid;grid-template-rows:70px 30px 28px 34px;text-align:center;align-items:center;color:#c0cbda;font:400 14px/1.35 var(--font-ui)}
.shard-flow>img{width:100%;height:70px;object-fit:contain;filter:drop-shadow(0 4px 8px #b395d83a)}
.shard-flow>strong{font-weight:500;color:#e0c6f5}
.shard-flow>small{display:block;font-size:12px;line-height:1.35;color:#bfcde0}
body #deck #top-shards .sv-cardwrap{width:100%;height:100%;min-width:0;display:flex;align-items:center;justify-content:center;container-type:size}
body #deck #top-shards #sv-card{width:min(100%,calc(100cqh*5/7));position:relative;flex:none;outline-offset:4px}
body #deck #top-shards .ritual-shell{width:100%;padding:0;background:none}
body #deck #top-shards .ucard{width:100%;aspect-ratio:5/7;display:flex;flex-direction:column;min-height:0}
body #deck #top-shards .ucard .art{flex:1;height:auto!important;min-height:0}
body #deck #top-shards .bempty .art{display:flex;align-items:center;justify-content:center;opacity:1;margin:0}
body #deck #top-shards .bempty .lvbar{display:none}
.shard-empty{display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center;padding:12%;box-sizing:border-box}
body #deck #top-shards .shard-empty img{position:static;width:60%;height:auto;object-fit:contain}
.shard-empty strong{font:500 clamp(12px,1.1vw,20px)/1.3 var(--font-display);color:#e5d1f6}
.shard-empty span{font:400 clamp(11px,.8vw,15px)/1.4 var(--font-ui);color:#bacbd8}
body #deck #top-shards .wk-shards{width:100%;height:150px;display:grid;grid-template-rows:112px 30px;gap:8px;align-self:center;color:#bdcddd;font:400 13px/1.35 var(--font-ui)}
#wk-shard-hint{display:block;min-height:30px;text-align:center;color:#e6c290;font-size:12px;line-height:15px}
.shard-spend{grid-column:1/-1;text-align:center;font-size:13px;font-weight:400;color:#dfcde9}
body #deck #wk-mint{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 7px;width:100%;height:112px;min-height:0;margin:0;padding:14px 16px;box-sizing:border-box;border:1px solid #bd9ddeaa;border-top-color:#e5c7ff;border-radius:4px;background:linear-gradient(#73528d,#4a345f);color:#faeaff;box-shadow:inset 0 1px #f5dcff33,0 4px 12px #0004;font:600 16px/1.3 var(--font-ui)}
#wk-mint .wk-action-label{grid-column:1/-1;text-align:center}
.shard-cost-label{text-align:left;font-size:12px;font-weight:400;color:#decbe8}
.shard-cost-value{text-align:right;font-size:16px;font-variant-numeric:tabular-nums}
body #deck #wk-mint:not(:disabled):hover{filter:brightness(1.12)}
body #deck #shardrows{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));align-content:start;gap:14px;max-width:none;width:100%;box-sizing:border-box;margin:0}
body #deck #shardrows .shardrow{display:grid;grid-template-columns:82px minmax(0,1fr);gap:14px;align-items:center;box-sizing:border-box;height:144px;margin:0;padding:12px;border:1px solid #899aae44;border-left:3px solid var(--shard-rarity);border-radius:5px;background:linear-gradient(120deg,#24374d,#192435);min-width:0;transition:background .15s,border-color .15s}
body #deck #shardrows .shardrow.sel{border-color:#c3a1de;background:linear-gradient(120deg,#35364d,#20283c);box-shadow:inset 0 0 0 1px #c5a0e42a}
body #deck #shardrows .shardrow:hover{background:#304158}
.shard-portrait{position:relative;overflow:hidden;width:82px;height:114px;border:1px solid var(--shard-rarity);border-radius:3px;background:#172534;box-sizing:border-box}
.shard-portrait .glyph{font-size:42px;display:grid;place-items:center;height:100%}
.shard-portrait:has(img) .glyph{display:none}
body #deck #shardrows .sinfo{min-width:0;font:400 14px/1.4 var(--font-ui)}
body #deck #shardrows .sname{font:500 17px/1.25 var(--font-display);color:#ebdbf4;min-height:42px;display:flex;align-items:center}
.shard-rarity{color:var(--shard-rarity);font-size:12px;line-height:18px}
body #deck #shardrows .sbar{height:7px;margin:8px 0;border:1px solid #aa95c633;border-radius:3px;background:#111b2a;overflow:hidden}
body #deck #shardrows .sbar i{display:block;height:100%;background:linear-gradient(90deg,#7968a1,#c7a6e9)}
body #deck #shardrows .snum{display:flex;gap:6px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:12px;line-height:18px;color:#aebecc;font-variant-numeric:tabular-nums}
body #deck #shardrows .snum b{font-size:15px;color:#dbc5ee}
body.pc #deck #top-shards .shard-workbench{height:100%;width:min(1180px,100%,calc((100cqh - 20px)*5/7 + 792px))}
@container(max-height:350px){
 body.pc #deck #top-shards .shard-workbench{grid-template-columns:190px 140px minmax(0,1fr) 260px;gap:16px;width:min(100%,calc((100cqh - 20px)*5/7 + 638px))}
 body.pc #deck #top-shards .shard-stock{height:204px;grid-template-rows:24px 95px 41px 16px 28px;font-size:13px}
 body.pc #deck #top-shards .shard-stock>strong{font-size:16px}
 body.pc #deck #top-shards .shard-stock-art{height:95px}
 body.pc #deck #top-shards #shard-stock-count{font-size:18px}
 body.pc #deck #top-shards #shard-stock-count b{font-size:28px}
 body.pc #deck #top-shards #shard-stock-note{font-size:13px}
 body.pc #deck #top-shards .shard-flow{height:132px;grid-template-rows:44px 26px 24px 38px;font-size:12px}
 body.pc #deck #top-shards .shard-flow>img{height:44px}
 body.pc #deck #top-shards .shard-flow>small{display:block;font-size:12px;line-height:1.35;color:#bfcde0}
 body.pc #deck #top-shards .wk-shards{height:136px;grid-template-rows:98px 30px}
 body.pc #deck #wk-mint{height:98px;padding:10px 12px;font-size:15px}

}
@container(max-height:240px){
 body.pc #deck #top-shards .shard-workbench{padding:8px 0}
 body.pc #deck #top-shards .shard-stock{height:168px;grid-template-rows:24px 63px 38px 15px 28px}
 body.pc #deck #top-shards .shard-stock-art{height:63px}

}
@media(max-width:999px){
 body #deck #top-shards{height:auto!important;min-height:0;padding:12px 8px;display:block}
 body #deck #top-shards .shard-workbench{width:100%;height:auto;padding:0;gap:8px;grid-template-columns:minmax(0,1fr) 52px minmax(0,1fr);grid-template-rows:192px 140px}
 body #deck #top-shards .shard-stock{height:176px;grid-template-rows:30px 70px 36px 16px 24px;font-size:12px}
 body #deck #top-shards .shard-stock>strong{font-size:13px}
 body #deck #top-shards .shard-stock-art{height:70px}
 body #deck #top-shards #shard-stock-count{font-size:16px}
 body #deck #top-shards #shard-stock-count b{font-size:26px}
 body #deck #top-shards #shard-stock-note{font-size:11px}
 body #deck #top-shards .shard-flow{height:70px;grid-template-rows:36px 34px}
 body #deck #top-shards .shard-flow>img{height:36px}
 body #deck #top-shards .shard-flow strong{font-size:11px}
 body #deck #top-shards .shard-flow span{display:none}
 body #deck #top-shards #sv-card{width:min(100%,125px)}
 body #deck #top-shards .wk-shards{grid-column:1/-1;grid-row:2;height:136px;max-width:300px;justify-self:center;grid-template-rows:98px 30px}
 body #deck #wk-mint{height:98px;padding:10px 12px;font-size:15px}
 body #deck #top-shards .shard-flow small{display:none}
 body #deck #shardrows{grid-template-columns:repeat(auto-fill,minmax(265px,1fr));padding:12px 8px;gap:10px}
 body #deck #shardrows .shardrow{grid-template-columns:70px minmax(0,1fr);height:128px;gap:12px;padding:10px}
 .shard-portrait{width:70px;height:98px}
}
