/* EventSabi v5.7 Homepage Studio: public enhancements + scoped administrator UI */
/* The fixed gradient keeps the uploaded photo readable, replacing only the artwork portion. */
.esm-home .es57-hero .esm-hero-art{background-image:linear-gradient(90deg,rgba(4,15,45,.91) 0%,rgba(6,26,61,.80) 42%,rgba(9,31,63,.44) 100%),var(--es57-hero-image);background-position:center center;background-size:cover;background-repeat:no-repeat}
@media(max-width:700px){.esm-home .es57-hero .esm-hero-art{background-image:linear-gradient(90deg,rgba(3,16,46,.86),rgba(8,31,64,.68)),var(--es57-hero-image);background-position:54% center}}
.es57-admin{max-width:1380px;margin:26px auto 70px;padding:0 18px;color:#102644;font-family:inherit}
.es57-admin *{box-sizing:border-box}
.es57-admin-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px;flex-wrap:wrap}
.es57-kicker{font-size:.78rem!important;letter-spacing:.15em;color:#f86d22!important;font-weight:800;margin:0 0 6px}
.es57-admin h1{font-size:clamp(1.7rem,3.4vw,2.55rem);line-height:1.15;margin:.1em 0 .3em;color:#0b2856}
.es57-admin h2{font-size:1.22rem;margin:0 0 9px;color:#102b5b}
.es57-admin p{line-height:1.55;color:#5e6b80}
.es57-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 24px}
.es57-summary>div{border:1px solid #e6eaf2;border-radius:16px;background:#fff;padding:18px 20px;box-shadow:0 8px 23px rgba(20,42,78,.04)}
.es57-summary strong{display:block;font-size:1.4rem;color:#0a3d99}.es57-summary span{display:block;font-size:.84rem;color:#5d6f88;margin-top:3px}
.es57-cards{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,1fr);gap:20px;align-items:start}
.es57-panel{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:24px;box-shadow:0 14px 35px rgba(19,44,80,.05);min-width:0}
.es57-panel p{margin-top:6px}
.es57-hero-preview{width:100%;display:block;max-height:300px;object-fit:cover;aspect-ratio:16/7;border-radius:13px;margin:20px 0;border:1px solid #d9e2f0}
.es57-inline-form{display:grid;gap:10px}.es57-inline-form label{font-weight:700;font-size:.89rem;color:#143360}.es57-inline-form small{font-weight:400;color:#667}
.es57-inline-form input[type=file],.es57-inline-form input[type=text],.es57-inline-form input:not([type]){width:100%;min-width:0;border:1px solid #cbd5e1;border-radius:10px;padding:12px;background:#f8fbff;font:inherit}
.es57-btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;background:linear-gradient(110deg,#0b469e,#143d80);color:#fff!important;text-decoration:none;border:0;border-radius:11px;padding:12px 19px;font-size:.93rem;font-weight:750;cursor:pointer;box-shadow:0 7px 19px rgba(11,70,158,.15);transition:transform .2s ease,box-shadow .2s ease}
.es57-btn:hover{transform:translateY(-1px);box-shadow:0 9px 23px rgba(11,70,158,.23)}
.es57-btn-outline{background:#fff;color:#133c83!important;border:1px solid #cad8eb;box-shadow:none}
.es57-reset{margin-top:14px}.es57-reset button{border:0;background:none;padding:5px 0;font:inherit;color:#345f9a;text-decoration:underline;cursor:pointer}
.es57-tile-list{display:grid;gap:13px}
.es57-tile{display:flex;align-items:center;gap:13px;text-decoration:none!important;background:#fff;color:#14345f!important;padding:19px 16px;border:1px solid #e4eaf2;border-radius:15px;transition:border-color .2s ease,transform .2s ease;box-shadow:0 7px 16px rgba(19,44,80,.035)}
.es57-tile:hover{border-color:#80a8ef;transform:translateY(-2px)}
.es57-tile-icon{display:grid;place-items:center;background:#e8f0ff;color:#1352b1;border-radius:11px;min-width:42px;height:42px;font-size:1.15rem}.es57-tile>span:nth-child(2){flex:1;min-width:0}.es57-tile strong{display:block;margin-bottom:4px}.es57-tile small{color:#697a90;line-height:1.4;display:block}
.es57-note{border:1px solid #e6dcbf;background:#fffbf1;border-radius:12px;padding:15px 18px;margin-top:24px;color:#72541c!important;font-size:.9rem}
.es57-brand-list{display:grid;gap:10px;margin:17px 0 22px}
.es57-brand-row{display:grid;grid-template-columns:110px minmax(0,1fr) 75px 70px;align-items:center;gap:11px;padding:10px;border:1px solid #e6edf6;border-radius:11px}
.es57-brand-row img{width:105px;max-height:63px;object-fit:contain;border-radius:6px;background:#fff}
.es57-brand-row label{display:grid;gap:4px;font-size:.72rem;color:#57708d;font-weight:700}
.es57-brand-row input:not([type=checkbox]){width:100%;min-width:0;border:1px solid #cbd8e8;border-radius:7px;padding:9px 8px;font:inherit;font-size:.9rem;color:#102b4e}
.es57-brand-toggle{display:flex!important;align-items:center;flex-direction:row;gap:6px!important;font-size:.85rem!important;white-space:nowrap}
.es57-brand-toggle input{width:18px;height:18px;accent-color:#0e4fa8}
.es57-studio-toolbar{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:900px){.es57-cards{grid-template-columns:1fr}.es57-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.es57-admin{padding:0 12px}.es57-panel{padding:17px}.es57-summary{grid-template-columns:1fr 1fr}.es57-summary>div:first-child{grid-column:1/-1}.es57-brand-row{grid-template-columns:74px minmax(0,1fr) 65px}.es57-brand-row img{width:70px}.es57-brand-toggle{grid-column:2/-1}}
@media(prefers-reduced-motion:reduce){.es57-btn,.es57-tile{transition:none}}
