iesjb-tournament-export{display:block;min-width:0;margin:14px 0}
.te-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:14px;background:#141414;border:1px solid #303030;border-radius:9px}
.te-toolbar label{display:flex;flex-direction:column;gap:6px;min-width:180px;flex:1;max-width:350px;font-size:11px;color:#aaa}
.te-toolbar select{width:100%;height:38px;padding:0 10px;color:#eee;background:#1b1b1b;border:1px solid #3c3c3c;border-radius:6px;font:inherit;font-size:12px;color-scheme:dark}
.te-toolbar .te-export-theme{flex:0 1 150px;min-width:120px}
.te-buttons{display:flex;flex-wrap:wrap;gap:8px}.te-buttons button{gap:7px;min-height:38px;font-size:11px;white-space:nowrap}
.te-toolbar p{flex-basis:100%;margin:0;color:#a7b9d0;font-size:11px}.te-toolbar p:empty{display:none}
.tournament-card iesjb-tournament-export .te-toolbar{padding:0;border:0;background:transparent}.te-toolbar button:disabled{opacity:.55;cursor:wait}
.tournament-card-footer{flex-wrap:wrap}.tournament-card-footer>iesjb-tournament-export{flex:0 0 100%;order:3;margin:8px 0 0}.tournament-card-footer .te-buttons{width:100%}.tournament-card-footer .te-buttons button{flex:1}
.te-preview-open{overflow:hidden!important}
.te-preview{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#080808;color:#eee;overflow-y:auto;color-scheme:dark}
.te-preview::backdrop{background:#000c}
.te-preview-inner{max-width:1140px;padding:24px;margin:0 auto}
.te-preview header{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:22px}
.te-preview h2{margin:0 0 7px;font-size:22px}.te-preview header p{font-size:12px;color:#999;margin:0}
.te-download-all{margin-bottom:22px;gap:8px}
.te-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px;align-items:start}
.te-gallery figure{margin:0;min-width:0;border:1px solid #303030;border-radius:10px;overflow:hidden;background:#151515}
.te-gallery img{display:block;width:100%;height:auto}
.te-gallery figcaption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-top:1px solid #303030;font-size:11px;color:#aaa}
.te-gallery figcaption button{gap:6px}.te-preview-error{font-size:12px;color:#ffb3b3}
@media(max-width:600px){.te-preview-inner{padding:18px 12px}.te-preview h2{font-size:19px}.te-toolbar{padding:12px}.te-buttons{width:100%}.te-buttons button{flex:1;white-space:normal}.te-gallery{grid-template-columns:1fr}}
