.pokemon-record-dialog{width:min(880px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;background:var(--surface);color:var(--ink);border:2px solid var(--accent);overflow:auto}.pokemon-record-dialog::backdrop{background:#000a}.record-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.record-dialog-heading h2{margin:0;overflow-wrap:anywhere}.record-dialog-heading>button{flex:none;min-width:44px}.record-preview{display:grid;place-items:center;margin-block:12px 20px}.record-preview img{object-fit:contain}.pokemon-storage-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-block:18px}.storage-slot{min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:15px 10px!important}.storage-slot>img{object-fit:contain}.storage-slot strong{overflow-wrap:anywhere;line-height:1.5}.storage-slot .game-label{justify-content:center;flex-wrap:wrap}.import-pokemon-row{padding:18px;margin-block:16px;border:1px solid var(--line);border-radius:8px}.import-pokemon-row h3{overflow-wrap:anywhere}.import-pokemon-row>img{object-fit:contain;vertical-align:middle}.import-pokemon-row label{display:grid;gap:8px;margin-block:12px}.page-size-choice{display:inline-flex;align-items:center;gap:12px;max-width:100%;margin-block:12px}.page-size-choice select{width:auto;min-width:84px}.collection-entry-actions{margin-bottom:20px}.record-dialog-body form>label{display:grid;gap:8px;margin-block:16px}
@media(max-width:760px){
 .mobile-page-picker{display:block!important;padding:10px 12px;margin-bottom:18px}.mobile-page-picker>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;min-height:36px}.current-mobile-page{font-size:12px;line-height:1.5;text-align:right;overflow-wrap:anywhere}.mobile-page-picker>label{display:grid;gap:8px;margin-block:12px}.mobile-page-picker:not([open])>label,.mobile-page-picker:not([open])>.install-app{display:none}.mobile-page-picker select{width:100%}.pokemon-storage-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.storage-slot{font-size:12px}.storage-slot strong{font-size:12px}.storage-slot .mini-sprite{max-width:100%;height:auto}.pokemon-record-dialog{padding:16px;width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.catch-editor-fields,.catch-history-filters{grid-template-columns:minmax(0,1fr)!important}.catch-editor-fields label,.catch-history-filters label{min-width:0}.catch-editor-fields input,.catch-editor-fields select,.catch-editor-fields textarea{width:100%;min-width:0;max-width:100%}h1,h2,h3,strong,small,label,summary{overflow-wrap:break-word}h1{line-height:1.5;font-size:clamp(19px,5vw,28px)}.toolbar button,.toolbar .button{white-space:normal;line-height:1.5;text-align:center;min-height:44px}.paging{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px}.paging>span{text-align:center}.profile-heading{flex-wrap:wrap;align-items:center}.profile-heading>div{min-width:0;flex:1 1 160px}.facts{grid-template-columns:repeat(2,minmax(0,1fr))}.facts>div{min-width:0}.facts strong{line-height:1.5}.data-table{max-width:100%;overflow:auto}.collection-entry-actions{display:grid;grid-template-columns:1fr}.type-icons{justify-content:center}.trainer-lookup input{min-width:0}.top-controls{flex-wrap:wrap}.page-size-choice{display:flex;flex-wrap:wrap}.pokemon-storage-grid .ball-display{font-size:10px}
}

.card-page-controls{width:100%;grid-column:1/-1;margin-block:20px}.card-page-controls>.paging{margin-block:8px}.pokemon-record-dialog .ball-choice{max-width:100%}.pokemon-record-dialog .ball-options{max-height:240px;overflow:auto}.pokemon-record-dialog .specimen-sheet{margin-top:16px}
