.theme-entry-action{display:flex;justify-content:flex-end;margin-bottom:12px}.theme-entry-action button,#themes-open-about{border:1px solid #dce5fc;background:#f3f6ff;color:#3563ff;font-size:12px;padding:10px 14px;border-radius:10px}
#catalog-dialog{margin:auto;padding:0;width:min(790px,calc(100% - 28px));max-height:88vh;border:1px solid #e5eaf3;border-radius:23px;background:#f7f8fd;color:#37435a;box-shadow:0 30px 100px #17254438;overflow:auto}#catalog-dialog::backdrop{background:#18263d88;backdrop-filter:blur(4px)}.theme-browser-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:22px 24px;background:#fff;border-bottom:1px solid #e9edf5;position:sticky;top:0;z-index:1}.theme-browser-header h2{font-size:20px;margin:0}.theme-browser-header p{font-size:11px;color:#97a1b4;margin-top:5px}.theme-browser-header button{font-size:12px;border:1px solid #e1e6f0;background:#fff;color:#75829b;padding:8px 11px}.theme-browser-actions{display:flex;gap:7px}.theme-browser-content{padding:19px 22px 24px}#catalog-status{font-size:12px;line-height:1.8;color:#8490a4;margin:0 0 16px}#catalog-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.theme-card{min-width:0;border:1px solid #e8edf5;background:#fff;border-radius:17px;overflow:hidden}.theme-preview{aspect-ratio:320/172;background:#000;overflow:hidden}.theme-preview img{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.theme-card-body{padding:16px}.theme-tag{font-size:10px;color:#7e93b5;line-height:1.6}.theme-card h3{font-size:16px;line-height:1.6;margin:7px 0 3px}.theme-meta{font-size:10px;color:#99a3b5;line-height:1.8}.theme-description{font-size:12px;color:#7d889c;line-height:1.8;margin-top:11px}.theme-tested{font-size:10px;color:#ac9b82;line-height:1.8;margin-top:10px}.theme-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:14px}.theme-actions button,.theme-actions a{font-size:11px;padding:8px 9px;border:1px solid #e1e7f2;border-radius:8px;background:#fff;color:#7b88a1;text-decoration:none}.theme-actions .theme-select{background:#3563ff;color:#fff;border-color:#3563ff}.theme-actions button:disabled{opacity:.45}.theme-confirmation{border:1px solid #e0e7fa;background:#fff;border-radius:16px;padding:18px;margin-top:18px}.theme-confirmation h3{font-size:15px}.theme-confirmation code{display:block;overflow-wrap:anywhere;font:10px/1.8 Consolas,monospace;color:#929db0;margin-top:9px}.theme-confirmation label{display:flex;gap:10px;align-items:flex-start;font-size:12px;line-height:1.9;color:#8190a6;margin-top:14px}.theme-confirmation input{margin-top:5px;flex-shrink:0}#catalog-apply{background:#3563ff;color:#fff;font-size:12px;margin-top:15px}#catalog-dialog button:focus-visible,#catalog-dialog a:focus-visible,#catalog-dialog input:focus-visible{outline:2px solid #3563ff;outline-offset:3px}
@media(max-width:560px){#catalog-list{grid-template-columns:1fr}.theme-browser-header{padding:18px}.theme-browser-content{padding:16px}.theme-browser-header h2{font-size:18px}}
.theme-local-help{border:1px solid #dfe6f7;background:#fff;border-radius:15px;padding:18px;color:#7e8ba3;font-size:12px;line-height:1.9;margin-bottom:16px}.theme-local-help h3{font-size:15px;color:#43516b;margin-bottom:9px}.theme-local-help code{color:#3563ff;overflow-wrap:anywhere}.theme-local-help a{color:#3563ff}.theme-local-help p+p{margin-top:8px}#catalog-error-details{font-size:11px;color:#a28170;margin:0 0 16px}#catalog-error-details summary{cursor:pointer}#catalog-error{font:11px/1.8 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;padding:12px;border-radius:10px;margin-top:8px}
