/* Keep pack contents and the next action visible; reserve disclosure for conditions. */
body[data-page="packs"] #results .pack-scan-card{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(300px,1.6fr) minmax(110px,.45fr);gap:12px 18px;padding:16px;border:1px solid #365368;border-radius:12px;background:#102333;align-items:start}
body[data-page="packs"] .pack-scan-card .item-main{min-width:0;align-items:center}
body[data-page="packs"] .pack-scan-card .open-pack{font-size:15px;line-height:1.4;text-align:left;color:#eef6fa}
body[data-page="packs"] .pack-scan-card .result-copy{min-width:0;display:flex;flex-direction:column;gap:8px}
body[data-page="packs"] .pack-scan-card .preview-label{color:#a9c0d0;font-size:11px;font-weight:650;letter-spacing:.03em;margin:0}
body[data-page="packs"] .pack-scan-card .price{font-size:16px;font-variant-numeric:tabular-nums;color:#f4dc9f}
body[data-page="packs"] .pack-scan-card .pack-action{align-self:flex-start;display:inline-flex;align-items:center;min-height:36px;padding:6px 11px;border:1px solid #43788f;border-radius:7px;background:#193e50;color:#d8f3ff;font-size:12px;font-weight:650;text-decoration:none;margin:2px 0 0}
body[data-page="packs"] .pack-scan-card .pack-action:hover{background:#245369;border-color:#75b7d0}
.pack-visible-contents{display:grid;gap:6px;list-style:none!important;margin:0!important;padding:0!important;min-width:0}
.pack-visible-contents li{display:grid!important;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:8px;margin:0!important;padding:0!important;color:#e0ebf3;font-size:12px;line-height:1.35}
.pack-visible-contents .item-art{width:26px!important;height:26px!important;min-width:26px!important;overflow:hidden;border-radius:5px;display:flex;align-items:center;justify-content:center;background:#1c3549}
.pack-visible-contents .item-art>img{max-width:24px!important;max-height:24px!important}
.pack-visible-contents .item-art .sprite-fit{transform:scale(.57);flex-shrink:0}
.pack-visible-contents .icon-fallback{display:none}
.pack-visible-contents .art-missing .icon-fallback{display:block}
.pack-visible-contents strong{font-size:13px;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums;color:#f5e6bd}
.pack-content-name{overflow-wrap:anywhere}
.pack-contents-note{font-size:12px;color:#c4d6e2;margin:0}
.pack-support{grid-column:1/-1;border-top:1px solid #2b4558;padding-top:7px}
.pack-support>summary{font-size:12px;color:#b7cede;cursor:pointer;min-height:28px;align-content:center;list-style:inside}
.pack-support[open]>summary{margin-bottom:8px;color:#e7f4fd}
body[data-page="packs"] .pack-scan-card .chain-card-total{margin-top:6px;padding-top:6px;border-top:1px solid #365368}
body[data-page="chains"] .chain-overview-table{width:100%;table-layout:fixed;min-width:0}
body[data-page="chains"] .chain-overview-table th:first-child{width:64px}
body[data-page="chains"] .chain-overview-table th:last-child{width:29%}
body[data-page="chains"] .chain-overview-table td{vertical-align:top;padding:12px}
body[data-page="chains"] .chain-overview-table .pack-visible-contents{margin:10px 0!important}
body[data-page="chains"] .chain-overview-table td>a:first-child{display:inline-block;color:#f4dc9f;text-decoration:none;font-variant-numeric:tabular-nums}
.chain-contents-detail{display:inline-flex;align-items:center;min-height:32px;font-size:11px;color:#9eddf3!important;text-decoration:underline!important;text-underline-offset:3px}
.chain-counted-total{border-top:1px solid #365368;margin-top:6px;padding-top:6px}
.pack-contents-warning{display:block;font-size:11px;color:#f3d394;margin:5px 0}
@media(max-width:700px){
 body[data-page="packs"] #results .pack-scan-card{grid-template-columns:minmax(0,1fr) auto;padding:12px;gap:10px}
 body[data-page="packs"] .pack-scan-card .item-main{grid-column:1;grid-row:1}
 body[data-page="packs"] .pack-scan-card .result-copy{grid-column:1/-1;grid-row:2}
 body[data-page="packs"] .pack-scan-card .open-pack{font-size:14px}
 body[data-page="packs"] .pack-scan-card .pack-action{min-height:40px;width:100%;justify-content:center;box-sizing:border-box}
 body[data-page="chains"] .chain-overview-table th:first-child{width:40px}
 body[data-page="chains"] .chain-overview-table th:last-child{width:28%}
 body[data-page="chains"] .chain-overview-table :is(td,th){padding:9px 5px;font-size:11px}
 body[data-page="chains"] .chain-overview-table .pack-visible-contents li{grid-template-columns:minmax(0,1fr) auto;gap:4px;font-size:11px}
 body[data-page="chains"] .chain-overview-table .pack-visible-contents .item-art{display:none}
 body[data-page="chains"] .chain-overview-table .pack-visible-contents strong{font-size:11px}
}
.chain-full-reference{margin:16px 0;border:1px solid #365368;border-radius:10px;background:#102333}
.chain-full-reference>summary{padding:12px 14px;cursor:pointer;color:#c7e5f4;font-size:13px;font-weight:650;list-style:inside}
.chain-full-reference[open]>summary{border-bottom:1px solid #365368}
.chain-full-reference>.chain-tier{margin:12px}
.pack-scan-card :is(a,button,summary):focus-visible,.chain-full-reference>summary:focus-visible{outline:2px solid #90d9f3;outline-offset:3px}
body[data-page="chains"] #chain-overview .chain-overview-table td:nth-child(2){text-align:left}
body[data-page="chains"] #chain-overview .pack-content-name{text-align:left}
body[data-page="chains"] #chain-overview .chain-contents-detail{float:right;min-height:26px;margin-top:-3px}
body[data-page="chains"] #chain-overview .chain-counted-total{clear:both}
body[data-page="chains"] #chain-overview .chain-overview-table .pack-visible-contents{margin:7px 0!important}
body[data-page="packs"] #results .pack-scan-card .chain-card-total{display:grid;gap:3px;margin-top:4px;padding-top:5px;font-size:11px}
body[data-page="packs"] #results .pack-scan-card .chain-card-total strong{font-size:14px;line-height:1.4}
body[data-page="packs"] #results .pack-scan-card .chain-card-basis{font-size:10px}
body[data-page="packs"] #results .pack-scan-card .pack-place{font-size:11px;color:#abc3d3;margin-top:4px}
body[data-page="packs"] #results .pack-scan-card .open-pack{background:none;border:0;padding:0;min-height:0;box-shadow:none}
body[data-page="chains"] #chain-overview .chain-overview-table thead th:nth-child(2){text-align:left}
body[data-page="chains"] #chain-overview .chain-overview-table tbody tr.selected{background:#183444}
body[data-page="chains"] #chain-overview .chain-overview-table tbody tr.selected:nth-child(even){background:#142e3f}
body[data-page="chains"] #chain-overview .chain-overview-table tbody tr:has(button[aria-pressed="true"]){background:#21463f;box-shadow:inset 3px 0 #89c8ad}
body[data-page="packs"] #results .pack-scan-costs{display:grid;gap:8px;min-width:0;color:#b6ccd9;text-align:right;font-size:11px;line-height:1.35;border-left:1px solid #365368;padding-left:12px}
body[data-page="packs"] #results .pack-scan-start{display:grid;gap:3px}
body[data-page="packs"] #results .pack-scan-costs .price{font-size:15px;font-weight:650;font-variant-numeric:tabular-nums;color:#e7d6a1}
body[data-page="packs"] #results .pack-scan-costs .chain-card-total{margin:0;padding:0;border:0;display:grid;gap:3px}
body[data-page="packs"] #results .pack-scan-costs .chain-card-total strong{font-size:14px;color:#e5f4ee;font-variant-numeric:tabular-nums}
body[data-page="packs"] #results .pack-scan-costs .chain-card-basis{font-size:10px}
.pack-scan-terms{display:flex;flex-wrap:wrap;gap:3px 8px;font-size:10px;color:#b6ccd9}
@media(max-width:700px){
 body[data-page="packs"] #results article.pack-scan-card{display:flex!important;flex-direction:column;gap:10px}
 body[data-page="packs"] #results .pack-scan-card>.item-main{order:1;width:100%}
 body[data-page="packs"] #results .pack-scan-card>.pack-scan-costs{order:2;width:100%;box-sizing:border-box;display:grid;grid-template-columns:1fr 1fr;text-align:left;padding:8px 0 0;border-left:0;border-top:1px solid #365368;gap:4px 12px}
 body[data-page="packs"] #results .pack-scan-terms{grid-column:1/-1}
 body[data-page="packs"] #results .pack-scan-card>.result-copy{order:3;width:100%;box-sizing:border-box;padding:0;border:0}
 body[data-page="packs"] #results .pack-scan-card>.pack-support{order:4;width:100%}
 body[data-page="chains"] #chain-overview .chain-overview-table th:first-child{width:52px}
 body[data-page="chains"] #chain-overview .chain-overview-table [data-plan-through]{min-width:40px;width:40px;padding:0}
}
