/* Estilo iOS: tarjetas chicas, ventanas desde abajo, menos ruido. */
/* Artistas: grilla de tarjetas */
#content .ar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin-top:14px}
#content .ar-tile{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:3px;min-width:0;-webkit-tap-highlight-color:transparent}
#content .ar-ph{position:relative;display:grid;place-items:center;aspect-ratio:1;border-radius:18px;overflow:hidden;background:linear-gradient(145deg,#2b2c38,#5a1426);color:#fff;margin-bottom:6px;box-shadow:0 8px 22px -14px rgba(37,38,50,.55);transition:transform .35s cubic-bezier(.16,1,.3,1)}
#content .ar-ph img{width:100%;height:100%;object-fit:cover}
#content .ar-ph b{font-size:30px;font-weight:800;letter-spacing:-.03em}
#content .ar-in{position:absolute;right:8px;top:8px;width:24px;height:24px;border-radius:50%;background:#1ea86a;color:#fff;display:grid;place-items:center;box-shadow:0 2px 6px rgba(0,0,0,.25)}
#content .ar-in svg{width:14px;height:14px}
#content .ar-tile strong{font-size:15px;font-weight:700;line-height:1.2;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#content .ar-st{font-size:12px;font-weight:600;color:#8a8c99;display:flex;align-items:center;gap:5px}
#content .ar-st::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--idle,#b9bac4)}
#content .ar-st.is-en_conversacion::before{background:#f2b705}#content .ar-st.is-disponible::before{background:#1ea86a}#content .ar-st.is-no_disponible::before{background:#ff0043}
#content .ar-tile:active .ar-ph{transform:scale(.96)}
@media (hover:hover){#content .ar-tile:hover .ar-ph{transform:translateY(-3px)}}
/* Ventana desde abajo */
dialog.sheet{border:0;padding:20px 22px calc(26px + env(safe-area-inset-bottom));width:min(560px,100%);max-height:88vh;overflow:auto;border-radius:26px;background:#fff;color:var(--ink);box-shadow:0 30px 80px -20px rgba(0,0,0,.45);transition:transform .32s cubic-bezier(.16,1,.3,1)}
dialog.sheet::backdrop{background:rgba(20,20,28,.38);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
@media (max-width:700px){dialog.sheet{margin:auto 0 0;width:100%;max-width:none;border-radius:26px 26px 0 0}}
dialog.sheet[open]{animation:sh-up .46s cubic-bezier(.16,1,.3,1)}
dialog.sheet.is-closing{transform:translateY(105%)!important;transition:transform .24s cubic-bezier(.4,0,1,1)}
@keyframes sh-up{from{transform:translateY(60px);opacity:0}to{transform:none;opacity:1}}
.sh-grab{width:38px;height:5px;border-radius:9px;background:#d6d6dc;margin:-6px auto 14px}
.sh-close{all:unset;position:absolute;right:16px;top:14px;width:32px;height:32px;border-radius:50%;background:#f2f2f5;display:grid;place-items:center;font-size:20px;color:#5d5f6b;cursor:pointer}
.sh-hero{width:120px;height:120px;border-radius:24px;overflow:hidden;margin:4px auto 14px;display:grid;place-items:center;background:linear-gradient(145deg,#2b2c38,#5a1426);color:#fff;box-shadow:0 16px 36px -18px rgba(37,38,50,.6)}
.sh-hero img{width:100%;height:100%;object-fit:cover}.sh-hero b{font-size:40px;font-weight:800}
.sh-title{text-align:center;margin:0;font-size:24px;font-weight:800;letter-spacing:-.03em}
.sh-tags{display:flex;justify-content:center;gap:6px;margin:8px 0 18px}
.sh-facts{margin:0;display:grid;gap:2px;background:#f6f6f8;border-radius:16px;padding:6px 16px}
.sh-facts>div{padding:10px 0;border-bottom:1px solid rgba(37,38,50,.07)}.sh-facts>div:last-child{border:0}
.sh-facts dt{font-size:12px;font-weight:600;color:#8a8c99;margin-bottom:2px}.sh-facts dd{margin:0;font-size:15px;line-height:1.4;white-space:pre-line}
.sh-actions{display:grid;gap:10px;margin-top:18px}
.sh-actions button{width:100%;height:50px;border-radius:14px;font-size:16px;font-weight:700}
.sh-secondary{background:#f2f2f5!important;color:var(--ink)!important;border:0!important}
html[data-theme=dark] dialog.sheet{background:#1f2029}html[data-theme=dark] .sh-facts,html[data-theme=dark] .sh-close,html[data-theme=dark] .sh-secondary{background:rgba(255,255,255,.07)!important}
/* Celular: todo más simple y compacto */
@media (max-width:700px){
 #content .page-heading{align-items:center;margin:4px 0 12px}
 #content .page-heading h1{font-size:32px;letter-spacing:-.035em}
 #content input[type=search]{height:40px;border-radius:12px;background:#f0f0f3;border:0;padding:0 14px;font-size:16px}
 #content .filter-chips{gap:6px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:10px -20px 0;padding:0 20px 4px}
 #content .filter-chips::-webkit-scrollbar{display:none}
 #content .filter-chips button{height:32px;padding:0 13px;font-size:13px;border-radius:999px;flex:none;box-shadow:none!important}
 #content .ar-grid{grid-template-columns:1fr 1fr;gap:16px 12px}
 /* Calendario de tareas más compacto */
 #content .month-card{padding:12px!important}
 #content .calendar-head button{width:36px;height:36px;border-radius:50%;padding:0}
 #content .month-grid .month-day{min-height:40px;padding:2px}
 #content .month-grid .weekday{font-size:11px}
 /* Redes: calendario en celdas bajas */
 #content .sc-day{min-height:54px}
 #content .sc-head h2{font-size:20px}
 #content .sc-head .round-edit{width:34px;height:34px;min-width:34px;min-height:34px}
}
@media (max-width:700px){
 #content .filter-chips{padding-left:20px!important;padding-right:20px!important;scroll-padding-left:20px}
 #content .filter-chips button{height:34px!important;min-height:34px!important;padding:0 14px!important;font-size:13.5px!important}
}
@media (max-width:700px){
 /* Selector de festival: una línea chica en vez de una tarjeta grande */
 .festival-context #festival-picker>summary{min-height:0!important;padding:8px 14px!important;border-radius:999px!important;box-shadow:none!important;background:#f2f2f5!important;border:0!important;font-size:14px}
 .festival-context{margin-bottom:6px!important}
 html[data-theme=dark] .festival-context #festival-picker>summary{background:rgba(255,255,255,.07)!important}
}
@media (max-width:700px){.festival-context,.festival-context #festival-picker{background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important}.festival-context #festival-picker>summary{width:fit-content;gap:10px}}
/* Sin desborde de costado mientras entra una pantalla */
#content{overflow-x:clip}
dialog.sheet.no-anim{animation:none!important}
@media (max-width:700px){
 /* Inicio: solo lo esencial; el resto con «Ver más» */
 html:not(.home-more) #content #hh-stats>:is(.db-chart,.db-cal,.db-spend,.db-lineup,.db-today,.db-hero,.documents-card){display:none!important}
 #content .hm-more-btn{grid-column:1/-1;all:unset;box-sizing:border-box;grid-column:1/-1;width:100%;text-align:center;padding:14px;border-radius:14px;background:#f2f2f5;font-weight:700;font-size:15px;color:#252632;cursor:pointer}
 /* Festival: lista corta estilo iOS; cada sección abre en ventana */
 #content .sec-hidden{display:none!important}
 #content .sec-list{background:#fff;border-radius:18px;box-shadow:0 1px 0 rgba(37,38,50,.05),0 6px 20px -14px rgba(37,38,50,.3);overflow:hidden;margin-bottom:16px}
 #content .sec-row{all:unset;box-sizing:border-box;display:grid;grid-template-columns:1fr auto 14px;align-items:center;gap:10px;width:100%;padding:15px 16px;border-bottom:1px solid rgba(37,38,50,.07);cursor:pointer}
 #content .sec-row:last-child{border-bottom:0}
 #content .sec-row strong{font-size:16px;font-weight:600;color:#252632}
 #content .sec-row span{font-size:14px;color:#8a8c99;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:140px;text-align:right}
 #content .sec-row i{font-style:normal;font-size:22px;color:#c4c4cc;line-height:1}
 #content .sec-row:active{background:#f4f4f7}
 #content dialog.sec-sheet .sec-body>section.card{box-shadow:none!important;border:0!important;padding:0!important;margin:0!important;background:transparent!important}
 html[data-theme=dark] #content .sec-list{background:#252632}html[data-theme=dark] #content .sec-row strong{color:#f3f3f7}
 /* Tareas y piezas: un renglón limpio; tocar la fila la abre */
 #content .ag-row .task-more,#content .soc-row .soc-notes,#content .ag-row .ag-actions .round-edit,#content .soc-row .ag-actions :is(.round-edit,.pill-button){display:none!important}
 #content .ag-row{cursor:pointer}
 #content .social-next .soc-row .soc-notes{display:block!important}
}
@media (max-width:700px){
 html:not(.home-more) #content .db-next .hm-list li:nth-child(n+3),html:not(.home-more) #content .social-home .hm-list li:nth-child(n+3){display:none}
 html:not(.home-more) #content .db-next .hm-more{display:none}
}
/* Formularios: «Más opciones» plegado */
#editor details.more-opts{margin-top:6px;border-top:1px solid rgba(37,38,50,.08);padding-top:4px}
#editor details.more-opts>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:14px 2px;font-weight:700;font-size:15px;color:#ff0043}
#editor details.more-opts>summary::-webkit-details-marker{display:none}
#editor details.more-opts>summary::after{content:'›';font-size:22px;line-height:1;transform:rotate(90deg);transition:transform .3s cubic-bezier(.16,1,.3,1)}
#editor details.more-opts[open]>summary::after{transform:rotate(-90deg)}
#editor details.more-opts[open]>:not(summary){animation:fervor-rise .32s cubic-bezier(.16,1,.3,1) both}
@media (max-width:700px){
 /* Formulario en el celu: hoja desde abajo, campos cómodos */
 #editor{width:100%!important;max-width:none!important;margin:auto 0 0!important;border-radius:26px 26px 0 0!important;max-height:92vh}
 #editor input:not([type=checkbox]):not([type=radio]),#editor select,#editor textarea{font-size:16px;border-radius:12px;min-height:46px}
 #editor .form-actions{position:sticky;bottom:calc(-1 * env(safe-area-inset-bottom));background:inherit;padding-top:10px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
}
@media (max-width:700px){
 #editor select{background-color:#f4f4f7!important;border:0!important;border-radius:12px!important;min-height:46px}
 #editor label{font-weight:600}
 html[data-theme=dark] #editor select{background-color:rgba(255,255,255,.07)!important}
 html[data-theme=dark] #content .hm-more-btn{background:rgba(255,255,255,.08);color:#f3f3f7}
 html[data-theme=dark] #content .sec-row span{color:#9a9bab}
 html[data-theme=dark] #content .ar-tile strong{color:#f3f3f7}
}
@media (max-width:700px){#content .sec-row strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}#content .sec-row span{max-width:120px}}
@media (max-width:700px){
 /* Selector de festival: todo en una línea y centrado verticalmente */
 .festival-context #festival-picker>summary{display:inline-flex!important;align-items:center!important;gap:10px!important;line-height:1!important;height:36px;box-sizing:border-box}
 .festival-context #festival-picker>summary strong{font-size:14px;line-height:1;margin:0;display:block}
 .festival-context #festival-picker>summary .festival-change{display:inline-flex;align-items:center;gap:4px;font-size:13px;line-height:1;margin:0;padding:0 0 0 10px;border-left:1px solid rgba(37,38,50,.15);height:16px;color:#6b6d7a}
 .festival-context #festival-picker>summary .festival-change span{display:inline-block;transform:translateY(-2px)}
 #content .page-heading h1{line-height:1}
}
/* Tirar para actualizar: sin el rebote nativo que lo trababa */
html,body{overscroll-behavior-y:none}
@media (max-width:700px){
 .festival-context{margin-bottom:12px!important}
 /* Lista de Festival estilo Ajustes: ícono de color, nombre y dato */
 #content .sec-row{grid-template-columns:30px 1fr auto 14px!important;gap:12px!important;padding:12px 16px!important}
 #content .sec-ic{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;color:#fff}
 #content .sec-ic svg{width:17px;height:17px;stroke:#fff}
 #content .sec-row.is-lead{padding:18px 16px!important;grid-template-columns:44px 1fr 14px!important;grid-template-areas:"ic t chev" "ic v chev";row-gap:4px!important}
 #content .sec-row.is-lead .sec-ic{grid-area:ic;width:44px;height:44px;border-radius:12px}
 #content .sec-row.is-lead .sec-ic svg{width:24px;height:24px}
 #content .sec-row.is-lead strong{grid-area:t;font-size:13px;color:#8a8c99;font-weight:600}
 #content .sec-row.is-lead span{grid-area:v;font-size:26px;font-weight:800;letter-spacing:-.03em;color:#34c759;max-width:none!important;text-align:left}
 #content .sec-row.is-lead.is-neg span{color:#ff3b30}
 #content .sec-row.is-lead i{grid-area:chev}
}
@media (max-width:700px){
 /* Festival: tarjetas visuales en dos columnas (verde lo positivo, rojo lo negativo) */
 #content .sec-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
 #content .sec-tile{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:3px;min-width:0;padding:14px;border-radius:18px;background:#fff;box-shadow:0 1px 0 rgba(37,38,50,.04),0 8px 22px -16px rgba(37,38,50,.35);transition:transform .3s cubic-bezier(.16,1,.3,1)}
 #content .sec-tile:active{transform:scale(.97)}
 #content .sec-tile .sec-ic{width:32px;height:32px;border-radius:9px;margin-bottom:8px}
 #content .sec-tile small{font-size:12.5px;font-weight:600;color:#8a8c99;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #content .sec-tile b{font-size:21px;font-weight:800;letter-spacing:-.03em;color:#252632;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #content .sec-tile span{font-size:12px;color:#a2a3ad}
 #content .sec-tile.is-pos b{color:#1ea86a}#content .sec-tile.is-neg b{color:#ff3b30}
 html[data-theme=dark] #content .sec-tile{background:#252632}html[data-theme=dark] #content .sec-tile b{color:#f3f3f7}
}
/* Artistas: en la compu, las tarjetas completas de antes; en el celu, las tarjetas chicas con ficha */
@media (min-width:701px){#content .phone-only{display:none!important}}
@media (max-width:700px){#content .desk-only{display:none!important}}
