dialog.tp-memory{width:min(920px,94vw);max-height:90vh;border:0;border-radius:24px;padding:24px;color:#243047;background:#f5f8ff;box-sizing:border-box}dialog.tp-memory::backdrop{background:#17213bba}.tp-memory-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.tp-memory button{font:inherit;cursor:pointer}.tp-memory-action{border:0;border-radius:14px;background:#4338ca;color:white;padding:12px 16px;font-weight:800}.tp-memory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}.tp-memory-card{height:140px;border:3px solid #c7d2fe;border-radius:16px;background:white;display:flex;align-items:center;justify-content:center;padding:8px;font-weight:800;font-size:19px;overflow:hidden}.tp-memory-card img{width:100%;height:100%;object-fit:contain}.tp-memory-card.covered{background:#4338ca;color:white;font-size:38px}.tp-memory-card.paired{border-color:#16a34a;background:#dcfce7}.tp-memory-card:focus-visible{outline:4px solid #fbbf24;outline-offset:3px}@media(max-width:600px){.tp-memory-grid{gap:8px}.tp-memory-card{height:110px;font-size:15px}dialog.tp-memory{padding:14px}}@media(max-width:400px){.tp-memory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}