/* Event discovery uses the existing blue workspace palette. */
.discovery-source,.discovery-content{min-width:0}.discovery-source p,.discovery-content h2{overflow-wrap:anywhere}
.discovery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:-7px 0 24px;color:#526579;font-size:13px}.discovery-toolbar>span small{display:block;font-size:11px;color:#8798ab;margin-top:7px}.discovery-toolbar>div{display:flex;gap:10px}.discovery-sources{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.discovery-source{background:#fff;border:1px solid #dfe8f2;border-radius:12px;padding:18px 19px}.discovery-source>div{display:flex;justify-content:space-between;align-items:center;gap:8px}.discovery-source strong{font-size:14px;color:#24405a}.discovery-source>small{display:block;font-size:11px;color:#8292a6;margin-top:11px}.discovery-source p{font-size:11px;line-height:1.7;color:#7c8ea3;margin:8px 0 0}.source-state{font-size:10px;color:#8a99aa;white-space:nowrap}.source-state:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:currentColor;margin-right:5px;vertical-align:middle}.source-state.ok{color:#389575}.source-state.partial{color:#b88335}.source-state.error{color:#bd6460}.discovery-panel{overflow:hidden}.discovery-filters{display:flex;gap:26px;padding:0 23px;border-bottom:1px solid #e5edf5;overflow-x:auto}.discovery-filters button{background:none;border:0;border-bottom:2px solid transparent;white-space:nowrap;padding:19px 0;color:#8998a9;font-size:12px}.discovery-filters button.active{color:#009bdc;border-bottom-color:#009bdc;font-weight:700}.discovery-filters button span{font-size:10px;margin-left:8px}.discovery-search{display:flex;gap:12px;padding:20px 23px;background:#fff}.discovery-search>.search{flex:1;border:1px solid #dce6f1;min-width:0}.discovery-search select{width:150px}.discovery-results{display:grid;gap:16px;padding:0 23px 23px;background:#fff}.discovery-card{display:grid;grid-template-columns:195px minmax(0,1fr);border:1px solid #dfe8f2;border-radius:13px;overflow:hidden;background:#fff}.discovery-cover{display:flex;align-items:center;justify-content:center;background:#edf3f8;min-height:210px;overflow:hidden}.discovery-cover img{width:100%;height:100%;object-fit:cover;max-height:360px}.discovery-cover>svg{width:40px;height:40px;color:#92aec3}.discovery-content{padding:21px 24px;min-width:0}.discovery-tags{display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:10px;color:#8b98a8}.discovery-platform{padding:4px 7px;border-radius:4px;background:#edf4fa;color:#416c94;font-weight:600}.discovery-platform.platform-ticketplus{background:#edf5ec;color:#53863d}.discovery-platform.platform-ibon{background:#edf5fd;color:#387aab}.discovery-platform.platform-kktix{background:#f2effc;color:#7963aa}.discovery-platform.platform-tixcraft{background:#fff0f1;color:#b85b6a}.discovery-new{color:#1592bd}.discovery-content h2{font-size:17px;line-height:1.55;margin:11px 0 9px;color:#344b60;letter-spacing:0}.discovery-content h2 a{color:inherit;text-decoration:none}.discovery-event-meta{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:11px;color:#8a9bad}.discovery-event-meta span{display:flex;gap:6px;align-items:center}.discovery-event-meta svg{width:13px;height:13px}.discovery-sales{margin-top:17px;border-top:1px solid #edf2f7;padding-top:13px;display:grid;gap:12px}.discovery-sale{display:flex;gap:11px;align-items:flex-start;min-width:0}.sale-kind{font-size:10px;border-radius:4px;background:#eaf5fc;color:#2585b7;padding:5px 7px;white-space:nowrap;line-height:1.2}.sale-kind.presale{background:#f2effa;color:#8b72b7}.sale-kind.registration{background:#fdf5e7;color:#b18b41}.discovery-sale>div{min-width:0;flex:1}.discovery-sale strong{font-size:14px;font-weight:600;color:#47586b}.discovery-sale small{display:block;margin-top:4px;font-size:10px;color:#8797a9;line-height:1.6;overflow-wrap:anywhere}.discovery-sale details{font-size:10px;color:#92a2b4;max-width:35%;padding-top:4px}.discovery-sale summary{cursor:pointer;white-space:nowrap}.discovery-sale details p{line-height:1.8;overflow-wrap:anywhere;margin:8px 0}.discovery-card-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:19px}.discovery-card-foot>span{font-size:10px;color:#9ba9b8}.discovery-card-foot .btn{font-size:11px;padding:8px 11px;white-space:nowrap;text-decoration:none}.discovery-pending{font-size:12px;color:#9c8b6f;margin:1px 0 5px}.discovery-bottom-note{font-size:11px;line-height:1.8;color:#97a6b7;margin:15px 2px 5px}.discovery-progress,.discovery-notice{border:1px solid #dce9f4;background:#f4faff;padding:14px 18px;border-radius:10px;display:flex;align-items:center;gap:10px;font-size:12px;color:#567a97;margin:0 0 20px}.discovery-progress strong{font-size:12px;font-weight:500}.discovery-progress>span:not(.discovery-spinner){font-size:11px}.discovery-progress small{margin-left:auto;font-size:10px;color:#8b9eb0}.discovery-error{color:#a26759;border-color:#eeddd5;background:#fff9f4}.discovery-spinner{display:block;width:13px;height:13px;border:2px solid #d1e7f6;border-top-color:#159fd5;border-radius:50%;animation:event-spin 1s linear infinite}.discovery-empty svg{margin-bottom:12px}.discovery-empty strong{font-size:14px}.discovery-empty p{font-size:12px}@keyframes event-spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){.discovery-sources{grid-template-columns:repeat(2,minmax(0,1fr))}.discovery-card{grid-template-columns:155px minmax(0,1fr)}.discovery-content{padding:19px}.discovery-progress small{display:none}}
@media(max-width:760px){.discovery-toolbar{align-items:flex-start;font-size:11px;gap:10px}.discovery-toolbar>div{gap:6px}.discovery-toolbar .btn{padding:9px 10px;font-size:11px}.discovery-toolbar button[data-discovery=read]{display:none}.discovery-sources{gap:9px;margin-bottom:15px}.discovery-source{padding:13px}.discovery-source strong{font-size:12px}.discovery-source p{font-size:10px}.discovery-filters{gap:19px;padding:0 15px}.discovery-filters button{font-size:11px}.discovery-filters button span{margin-left:5px}.discovery-search{padding:15px;gap:8px}.discovery-search select{width:109px;font-size:11px;padding:9px 7px}.discovery-results{padding:0 15px 15px;gap:14px}.discovery-card{display:block}.discovery-cover{height:150px;min-height:0}.discovery-cover img{object-fit:contain;width:100%;height:150px}.discovery-content{padding:16px}.discovery-content h2{font-size:15px}.discovery-sale strong{font-size:13px}.discovery-sale details{max-width:25%;font-size:9px}.discovery-card-foot{align-items:flex-end}.discovery-card-foot>span{max-width:55%;line-height:1.7}.discovery-bottom-note{font-size:10px}.discovery-progress{padding:12px;font-size:11px}.discovery-progress strong{font-size:11px}.discovery-empty{padding:45px 10px}.discovery-toolbar>span small{font-size:10px}.mobile-nav{gap:0}.mobile-nav button{padding-left:5px;padding-right:5px;min-width:40px}}

/* Keep the whole poster visible; card height no longer crops the artwork. */
.discovery-card{grid-template-columns:320px minmax(0,1fr)}
.discovery-cover{position:relative;width:100%;padding:18px;min-height:230px;border:0;border-right:1px solid #e4ecf3;border-radius:0;cursor:zoom-in;background:#f1f5f9}
.discovery-cover img{display:block;width:100%;height:auto;max-height:400px;object-fit:contain}
.discovery-cover:disabled{cursor:default}
.discovery-cover:focus-visible{outline:3px solid #48b7e4;outline-offset:-4px}
.poster-zoom{position:absolute;right:10px;bottom:10px;display:flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid #dfe8f0;border-radius:6px;background:#fffffff0;color:#668298;font-size:10px;box-shadow:0 2px 8px #36536c08}
.poster-zoom svg{width:12px;height:12px}
.event-poster-dialog{padding:0;width:min(1120px,94vw);max-width:94vw;max-height:94dvh;border:1px solid #e0e8f0;border-radius:15px;background:#fff;overflow:auto}
.event-poster-dialog::backdrop{background:#183047a6;backdrop-filter:blur(3px)}
.event-poster-heading{display:flex;align-items:center;gap:16px;padding:16px 20px;border-bottom:1px solid #e5edf3}
.event-poster-heading h2{flex:1;min-width:0;margin:0;font-size:15px;line-height:1.6;color:#40556a;overflow-wrap:anywhere}
.event-poster-heading .icon-btn{flex-shrink:0;font-size:25px;width:36px;height:36px;color:#7d91a6}
.event-poster-stage{display:flex;align-items:center;justify-content:center;background:#f0f4f8;padding:18px}
.event-poster-stage img{display:block;max-width:100%;max-height:calc(94dvh - 180px);width:auto;height:auto;object-fit:contain}
.event-poster-actions{display:flex;justify-content:flex-end;padding:12px 20px;border-top:1px solid #e5edf3}
.event-poster-actions a{font-size:12px;text-decoration:none}
@media(max-width:1200px){.discovery-card{grid-template-columns:260px minmax(0,1fr)}.discovery-cover{padding:14px}}
@media(max-width:950px){.discovery-card{display:block}.discovery-cover{height:240px;min-height:0;border-right:0;border-bottom:1px solid #e4ecf3}.discovery-cover img{width:100%;height:100%;max-height:none;object-fit:contain}}
@media(max-width:760px){.discovery-cover{height:230px;padding:12px}.poster-zoom{font-size:9px;padding:5px 7px}.event-poster-heading{padding:12px 14px;gap:8px}.event-poster-heading h2{font-size:13px}.event-poster-stage{padding:10px}.event-poster-actions{padding:10px 14px}.event-poster-stage img{max-height:calc(94dvh - 190px)}}

/* Extend the artwork into the background while preserving the complete poster. */
.discovery-cover{isolation:isolate;padding:18px 12px;background:#28313a;border-right:0}
.discovery-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(145deg,#16233215,#0b172d40);z-index:-1;pointer-events:none}
.discovery-cover img.poster-backdrop{position:absolute;inset:-26px;width:calc(100% + 52px);height:calc(100% + 52px);max-height:none;object-fit:cover;filter:blur(22px) saturate(.8) brightness(.8);opacity:.9;z-index:-2;pointer-events:none}
.discovery-cover img.poster-image{position:relative;width:100%;height:auto;max-height:400px;object-fit:contain;border-radius:4px;box-shadow:0 10px 32px #10203038;z-index:0}
.poster-zoom{opacity:0;transform:translateY(3px);transition:opacity .15s,transform .15s;background:#ffffffeb;color:#566b7d;border:0;z-index:1}
.discovery-cover:hover .poster-zoom,.discovery-cover:focus-visible .poster-zoom{opacity:1;transform:none}
@media(min-width:1440px){.discovery-card{grid-template-columns:360px minmax(0,1fr)}}
@media(max-width:950px){.discovery-cover{padding:16px;min-height:0}.discovery-cover img.poster-image{width:auto;max-width:100%;height:auto;max-height:100%;object-fit:contain}}
@media(hover:none){.poster-zoom{opacity:1;transform:none;font-size:0;padding:7px;border-radius:50%;gap:0}}

#delete-btn[hidden]{display:none!important}
.discovery-card-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.discovery-card-actions button.btn{font-size:11px;padding:8px 11px;white-space:nowrap}.discovery-stage-field{margin:4px 0 18px;padding:13px 15px;background:#f3f8fc;border:1px solid #e0ebf4;border-radius:8px}.discovery-stage-field label{margin:0;color:#6c849b}.discovery-stage-field select{font-size:12px;color:#4d657b;max-width:100%}.discovery-stage-field p{font-size:12px;color:#8595a5;line-height:1.7;margin:0}
@media(max-width:760px){.discovery-card-foot{align-items:flex-start;flex-direction:column}.discovery-card-foot>span{max-width:100%}.discovery-card-actions{align-self:flex-end}.discovery-stage-field{padding:11px}.discovery-stage-field select{font-size:11px}}

.discovery-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.discovery-card-top .discovery-tags{flex:1;min-width:0;padding-top:4px}.discovery-card-top>.btn{flex-shrink:0;font-size:11px;padding:8px 11px;white-space:nowrap}
@media(max-width:760px){.discovery-card-top{gap:8px}.discovery-card-top>.btn{padding:7px 9px;font-size:10px}}

.discovery-search{align-items:center;flex-wrap:wrap}.discovery-search>.search{flex:1 1 240px}.discovery-sort-label{display:flex;align-items:center;gap:8px;margin:0;color:#8a9aad;font-size:11px;flex-shrink:0}.discovery-sort-label select{width:190px;margin:0;font-size:12px}
@media(max-width:760px){.discovery-search>.search{flex-basis:100%}.discovery-search>#event-source{flex:1;width:auto}.discovery-sort-label{flex:1;min-width:0}.discovery-sort-label>span{display:none}.discovery-sort-label select{width:100%;min-width:0;font-size:11px;padding:9px 7px}}

.discovery-toolbar{flex-wrap:wrap}.discovery-toolbar>div{margin-left:auto;align-items:center;flex-wrap:wrap;justify-content:flex-end}.discovery-scan-picker{display:flex;align-items:center;gap:8px;margin:0;color:#8799aa;font-size:11px}.discovery-scan-picker>span{white-space:nowrap}.discovery-scan-picker select{margin:0;width:145px;font-size:12px}
@media(max-width:760px){.discovery-toolbar>div{width:100%;justify-content:space-between;gap:8px}.discovery-scan-picker{flex:1;min-width:0;font-size:10px}.discovery-scan-picker select{flex:1;min-width:0;width:auto;font-size:11px}.discovery-toolbar [data-discovery=scan]{flex-shrink:0}}
