.exile-dialog{width:min(900px,calc(100vw - 32px));height:min(720px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #b9b9b3;border-radius:12px;color:#282824;background:#f9f9f6;box-sizing:border-box;font:inherit;overflow:hidden}
.exile-dialog[open]{display:flex;flex-direction:column}.exile-dialog::backdrop{background:rgb(20 20 18 / 55%)}
.exile-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #d3d3ce;gap:12px;flex:none}.exile-dialog h2{margin:0;font-size:18px}.exile-dialog h3{font-size:16px;margin:10px 0}
.exile-dialog button{font:inherit}.exile-tabs{display:flex;gap:8px;padding:10px 16px 0;flex:none}.exile-tabs button{flex:1}.exile-tabs [aria-pressed=true]{background:#2b2b28;color:#fff;border-color:#2b2b28}
.exile-hint{font-size:12px;color:#686861;margin:8px 16px 12px;flex:none}.exile-body{display:flex;min-height:0;flex:1;overflow:hidden}.exile-list{flex:1;min-width:0;overflow:auto;overscroll-behavior:contain;padding:0 12px 16px;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px;align-content:start;scrollbar-gutter:stable}
.exile-list{grid-auto-rows:max-content}.exile-entry{display:flex;align-items:center;gap:10px;text-align:left;padding:8px;border:1px solid #d4d4cd;background:#f2f2ee;color:inherit;border-radius:8px;min-width:0;min-height:110px;height:auto;cursor:pointer}.exile-entry:hover{background:#e9e9e3}.exile-entry:focus-visible{outline:2px solid #363632;outline-offset:-2px}
.exile-card-art{flex:none;width:65px;aspect-ratio:62/87;position:relative;overflow:hidden;border-radius:4px;background:#ddd}.exile-card-art>img,.exile-large-art>img{width:100%;height:100%;object-fit:contain;display:block;filter:none}.exile-card-art .public-card-face,.exile-large-art .public-card-face{width:100%;height:100%}
.exile-entry-text{display:grid;gap:7px;min-width:0}.exile-entry-text strong{font-size:14px;overflow-wrap:anywhere}.exile-entry-text span{font-size:12px}.exile-entry-text small{font-size:11px;color:#686861}.exile-art-fallback{display:grid;place-items:center;height:100%;padding:4px;box-sizing:border-box;color:#333;font-size:14px}
.exile-detail{width:42%;flex:none;min-width:0;overflow:auto;overscroll-behavior:contain;padding:0 16px 20px;border-left:1px solid #d4d4cd;box-sizing:border-box}.exile-detail[hidden]{display:none}.exile-large-art{width:min(100%,270px);aspect-ratio:62/87;margin:auto;position:relative;overflow:hidden;border-radius:6px}.exile-provenance,.exile-rules{white-space:pre-line;font-size:13px;line-height:1.65;overflow-wrap:anywhere}.exile-empty{color:#686861;padding:20px 8px;font-size:14px}.exile-detail-back{font-size:12px!important;margin-top:4px}.exile-mobile-launch{display:none}.exile-launch{display:block;margin-top:6px}
@media(max-width:900px),(max-width:1180px) and (max-height:600px){.exile-mobile-launch{display:inline-block;font-size:12px!important;padding:5px 9px!important;white-space:nowrap}.exile-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.exile-dialog>header{padding:8px 12px}.exile-tabs{padding:8px 12px 0}.exile-hint{margin:6px 12px 8px}.exile-list{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}}
@media(max-width:600px) and (orientation:portrait){.exile-body:has(.exile-detail:not([hidden])) .exile-list{display:none}.exile-detail{width:100%;border:0}.exile-dialog .exile-card-art{width:58px}.exile-list{grid-template-columns:1fr}}
@media(max-height:500px) and (orientation:landscape){.exile-hint{margin:4px 12px}.exile-dialog>header h2{font-size:16px}.exile-detail{width:48%}.exile-large-art{width:150px;float:left;margin:0 12px 8px 0}.exile-provenance,.exile-rules{font-size:12px}.exile-detail-back{display:block}}
