
/* PASAPORTE ARTISTICO - INTERFAZ COMUN */

#shade #modalBody .aap-interface-root {
    --aap-accent:#31594b;
    --aap-border:#dce5df;
    color:#26352e;
    line-height:1.55;
}

#shade #modalBody .aap-interface-root .btn {
    border-radius:9px;
    min-height:40px;
    font-weight:600;
    transition:background .15s,box-shadow .15s;
}

#shade #modalBody .aap-interface-root .btn:not(:disabled):hover {
    box-shadow:0 2px 6px #00000012;
}

#shade #modalBody .aap-interface-root .btn.outline {
    border-color:#cdd9d1;
}

#shade #modalBody .aap-interface-root input:not([type=checkbox]):not([type=radio]),
#shade #modalBody .aap-interface-root select,
#shade #modalBody .aap-interface-root textarea {
    border-radius:8px;
    border-color:#cdd9d1;
}

#shade #modalBody .aap-interface-root :is(input,select,textarea):focus {
    outline:2px solid #87aa9860;
    outline-offset:1px;
}

#shade #modalBody .aap-interface-root .studio-task-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}

#shade #modalBody .aap-interface-root .studio-task {
    text-align:left;
    border:1px solid #dce5df;
    border-radius:12px;
    padding:17px;
    min-height:105px;
    background:#fff;
    box-shadow:0 2px 5px #00000005;
    transition:border-color .15s,background .15s;
}

#shade #modalBody .aap-interface-root .studio-task:hover {
    border-color:#759987;
    background:#f6faf7;
}

#shade .aap-interface-root .studio-task-icon {
    color:#31594b;
}

#shade .aap-interface-root .aap-common-hidden {
    display:none!important;
}

#shade.aap-interface-active #modalFooter#modalFooter {
    display:flex!important;
    padding:0!important;
    flex-shrink:0;
    background:#fff;
    border-top:1px solid #dce5df;
}

#shade.aap-interface-active #modalFooter > :not(#aapCommonBar) {
    display:none!important;
}

#aapCommonBar {
    display:flex;
    align-items:center;
    gap:9px;
    width:100%;
    padding:12px 18px;
    box-sizing:border-box;
    background:#fff;
}

#aapCommonBar button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:42px;
    padding:8px 14px;
    font:inherit;
    font-size:13px;
    font-weight:600;
    border:1px solid #d2ded5;
    border-radius:9px;
    background:#fff;
    color:#31594b;
    cursor:pointer;
}

#aapCommonBar button:hover {
    background:#edf5ef;
}

#aapCommonBar button[aria-current=page] {
    background:#31594b;
    color:#fff;
    border-color:#31594b;
}

#aapCommonBar svg {
    width:17px;
    height:17px;
    flex-shrink:0;
}

#aapCommonBar .aap-bar-help {
    margin-left:auto;
}

.aap-help-intro {
    padding:20px;
    border:1px solid #dce5df;
    background:#f5f8f6;
    border-radius:12px;
    margin-bottom:18px;
}

.aap-help-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.aap-help-grid details {
    border:1px solid #dce5df;
    border-radius:10px;
    padding:15px;
    background:#fff;
}

.aap-help-grid summary {
    cursor:pointer;
    font-weight:700;
    color:#31594b;
}

.aap-help-grid details p {
    margin:10px 0;
    font-size:14px;
}

.aap-help-grid details .btn {
    margin-top:8px;
}

@media(max-width:850px) {
    #shade #modalBody .aap-interface-root .studio-task-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:600px) {
    #shade #modalBody .aap-interface-root .studio-task-grid,
    .aap-help-grid {
        grid-template-columns:1fr;
    }

    #aapCommonBar {
        gap:5px;
        padding:9px 7px;
        padding-bottom:max(9px,env(safe-area-inset-bottom));
    }

    #aapCommonBar button {
        flex:1;
        font-size:11px;
        padding:8px 5px;
        gap:5px;
    }

    #aapCommonBar .aap-bar-help {
        margin-left:0;
    }

    #aapCommonBar svg {
        width:15px;
        height:15px;
    }
}


/* H5 - Refinamiento visual */

#shade.aap-interface-active .aap-header-back {
    display:none!important;
}

#shade.aap-interface-active #modalBody {
    background:#f3f5f4!important;
}

#shade #modalBody .aap-interface-root {
    font-size:14px;
    color:#23372e;
}

#shade #modalBody .aap-interface-root
.studio-task-grid {
    gap:16px!important;
}

#shade #modalBody .aap-interface-root
.studio-task {
    min-height:110px!important;
    padding:20px!important;
    border-radius:14px!important;
    border:1px solid #d5e0d9!important;
    background:#fff!important;
    box-shadow:0 3px 9px #193b2610!important;
    align-items:center;
}

#shade #modalBody .aap-interface-root
.studio-task:hover {
    background:#f5faf7!important;
    border-color:#729985!important;
}

#shade .aap-interface-root .studio-task-icon {
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    border-radius:11px!important;
    background:#e9f1eb!important;
    display:flex!important;
    align-items:center;
    justify-content:center;
}

#shade .aap-interface-root .studio-task-icon svg {
    width:25px!important;
    height:25px!important;
}

#shade .aap-interface-root .studio-task b {
    font-size:15px!important;
    color:#20382c;
}

#shade .aap-interface-root .studio-task small {
    font-size:12px!important;
    line-height:1.55;
    color:#65756b;
}

#shade .aap-interface-root h2 {
    font-size:23px;
    letter-spacing:-.4px;
}

#shade .aap-interface-root h3 {
    font-size:17px;
    color:#294638;
}

#shade .aap-interface-root select {
    min-height:44px;
    background-color:#fff;
}

#shade .aap-interface-root label {
    font-weight:600;
}

#shade .aap-interface-root .btn {
    min-height:42px;
}

#shade.aap-interface-active #modalFooter {
    box-shadow:0 -4px 18px #253d2e0c;
}

#aapCommonBar {
    padding:13px 20px;
    gap:10px;
}

#aapCommonBar button {
    min-height:44px;
    padding:10px 16px;
    border-radius:9px;
}

#aapCommonBar [data-aap-nav=passport] {
    background:#31594b;
    color:#fff;
    border-color:#31594b;
}

#aapCommonBar .aap-bar-help {
    margin-left:0;
}

#aapCommonBar .aap-bar-actions {
    display:flex;
    gap:8px;
    margin-left:auto;
}

#aapCommonBar button:disabled {
    opacity:.5;
    cursor:not-allowed;
}

.aap-help-grid details {
    padding:20px;
    box-shadow:0 2px 6px #193b2608;
}

.aap-help-grid details[open] {
    border-color:#8ba999;
}

.aap-help-grid summary {
    font-size:15px;
}

@media(max-width:600px) {
    #aapCommonBar {
        flex-wrap:wrap;
        gap:6px;
        padding:9px;
    }

    #aapCommonBar button {
        min-height:42px;
        font-size:11px;
        padding:7px;
    }

    #aapCommonBar .aap-bar-actions:not(:empty) {
        width:100%;
    }

    #shade #modalBody .aap-interface-root
    .studio-task {
        min-height:88px!important;
        padding:14px!important;
    }
}



/* H6 - Sistema visual definitivo */

#aapCommonBar.aap-bar-home [data-aap-nav=passport] {
    display:none!important;
}

#aapCommonBar [data-aap-nav=help][aria-current=page] {
    background:#e9f1eb;
    border-color:#82a392;
    color:#31594b;
}

#shade .aap-interface-root .aap-white-panel {
    background:#fff!important;
    border:1px solid #dce5df!important;
    border-radius:12px!important;
    box-shadow:0 2px 6px #193b2606;
}

#shade .aap-interface-root
:is([class*="metric"],[class*="stat-card"])
:not([class*="grid"]):not([class*="metrics"]) {
    border-radius:12px;
}

#shade .aap-interface-root
:is([class*="metrics"],[class*="metric-grid"]) > div {
    background:#fff!important;
    border-radius:12px!important;
    border-color:#dce5df!important;
    box-shadow:0 2px 5px #193b2606;
}

#shade .aap-interface-root
:is([class*="metrics"],[class*="metric-grid"])
:is(strong,b) {
    font-size:26px;
    color:#31594b;
}

.aap-help-intro {
    background:#fff!important;
    padding:24px!important;
}

.aap-help-kicker {
    font-size:11px;
    font-weight:700;
    letter-spacing:1.4px;
    color:#648372;
}

.aap-help-intro h2 {
    margin:10px 0!important;
}

#aapHelpSearch {
    margin-top:12px;
    width:100%;
    max-width:640px;
    min-height:46px;
    background:#f7f9f7;
    padding:12px 15px;
}

.aap-help-phases {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:start;
    gap:16px;
}

.aap-help-phase {
    background:white;
    border:1px solid #dce5df;
    border-radius:13px;
    overflow:hidden;
    padding:16px;
}

.aap-help-phase header {
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:12px;
}

.aap-help-phase header h3 {
    margin:0 0 4px!important;
}

.aap-help-phase header p {
    margin:0;
    font-size:12px;
    color:#64786b;
}

.aap-help-number {
    display:flex;
    flex-shrink:0;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    border-radius:10px;
    background:#e9f1eb;
    font-size:17px;
    font-weight:700;
    color:#31594b;
}

.aap-help-chapter {
    border-top:1px solid #e6ece8;
    padding:13px 3px;
}

.aap-help-chapter summary {
    cursor:pointer;
    font-weight:600;
    color:#294638;
}

.aap-help-chapter p {
    font-size:14px;
    line-height:1.65;
}

.aap-help-chapter[open] {
    padding-bottom:18px;
}

.aap-help-phase[hidden],
.aap-help-chapter[hidden],
#aapHelpEmpty[hidden] {
    display:none!important;
}

@media(max-width:750px) {
    .aap-help-phases {
        grid-template-columns:1fr;
    }

    .aap-help-intro {
        padding:17px!important;
    }
}



/* H7 - Navegacion sin redundancias */

#aapCommonBar.aap-bar-help-page [data-aap-nav=help] {
    display:none!important;
}

.aap-help-phases {
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
}

.aap-help-phase {
    padding:0!important;
    border-radius:12px!important;
}

.aap-help-phase-heading {
    display:flex;
    align-items:center;
    gap:16px;
    padding:18px 20px;
    cursor:pointer;
    list-style:none;
}

.aap-help-phase-heading::-webkit-details-marker {
    display:none;
}

.aap-help-phase-heading::after {
    content:'';
    width:9px;
    height:9px;
    border-right:2px solid #31594b;
    border-bottom:2px solid #31594b;
    transform:rotate(45deg);
    margin-left:auto;
    flex-shrink:0;
}

.aap-help-phase[open] > .aap-help-phase-heading::after {
    transform:rotate(225deg);
}

.aap-help-phase-heading:hover {
    background:#f6faf7;
}

.aap-help-phase-heading h3 {
    margin:0 0 4px!important;
    font-size:17px!important;
}

.aap-help-phase-heading p {
    margin:0;
    font-size:13px;
    color:#64786b;
}

.aap-help-phase .aap-help-chapter {
    margin:0 20px;
    padding:15px 4px;
}

.aap-help-phase .aap-help-chapter:last-child {
    margin-bottom:12px;
}

#aapHelpSearch {
    max-width:none!important;
    width:100%!important;
    box-sizing:border-box;
}

#aapHelpCount {
    margin:10px 0 0!important;
    font-size:12px;
    color:#64786b;
}

@media(max-width:600px) {
    .aap-help-phase-heading {
        padding:14px;
        gap:10px;
    }

    .aap-help-phase-heading h3 {
        font-size:15px!important;
    }

    .aap-help-phase-heading p {
        font-size:11px;
    }
}



/* H81 - Acciones comunes y cabeceras */

#aapCommonBar [data-aap-kind=save] {
    background:#31594b;
    color:#fff;
    border-color:#31594b;
}

#aapCommonBar [data-aap-kind=save]:not(:disabled):hover {
    background:#244638;
}

#aapCommonBar [data-aap-kind=cancel] {
    background:#fff;
    color:#59665f;
}

#aapCommonBar button:disabled {
    opacity:.45;
    cursor:not-allowed;
}

#aapCommonBar .aap-bar-actions {
    align-items:center;
    flex-wrap:wrap;
    justify-content:flex-end;
}

#aapCommonBar .aap-bar-actions:empty {
    display:none;
}

.aap-screen-kicker {
    display:none;
}

#shade.aap-interface-active
.aap-screen-kicker:not([hidden]) {
    display:block;
    font-size:10px;
    font-weight:700;
    letter-spacing:1.3px;
    color:#648372;
    margin-bottom:5px;
}

#aapHelpCount {
    background:transparent!important;
    border:0!important;
    padding:0!important;
    box-shadow:none!important;
}

.aap-help-chapter summary:focus-visible {
    outline:2px solid #87aa98;
    outline-offset:4px;
    border-radius:3px;
}

@media(max-width:750px) {
    #aapCommonBar {
        flex-wrap:wrap;
    }

    #aapCommonBar .aap-bar-actions:not(:empty) {
        width:100%;
        justify-content:flex-end;
    }
}



/* H9 - Uniformidad de premios */

#shade .aap-interface-root .aap-prize-metric {
    background:#fff!important;
    border:1px solid #dce5df!important;
    border-radius:12px!important;
    box-shadow:0 2px 6px #193b2608;
}

#shade .aap-interface-root
form.aap-white-panel {
    padding:20px!important;
}

#shade .aap-interface-root
.aap-prize-photo img {
    max-height:190px!important;
    max-width:100%;
    width:auto;
    object-fit:contain;
}

#shade .aap-interface-root
.aap-prize-photo {
    padding:16px!important;
}



/* H10 - Confirmaciones y movil */

.aap-discard-dialog {
    box-sizing:border-box;
    width:min(440px,calc(100vw - 32px));
    max-height:calc(100dvh - 40px);
    overflow:auto;
    padding:25px;
    border:1px solid #dce5df;
    border-radius:17px;
    background:#fff;
    color:#26382e;
    box-shadow:0 20px 70px #00000035;
    font:inherit;
}

.aap-discard-dialog::backdrop {
    background:#14251fc0;
}

.aap-discard-icon {
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff2db;
    color:#946619;
    border-radius:12px;
}

.aap-discard-icon svg {
    width:26px;
    height:26px;
}

.aap-discard-dialog h2 {
    font-size:21px;
    margin:17px 0 10px;
}

.aap-discard-dialog p {
    font-size:14px;
    line-height:1.65;
    margin:0 0 20px;
}

.aap-discard-actions {
    display:flex;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:10px;
    padding-top:16px;
    border-top:1px solid #e1e8e3;
}

.aap-discard-actions button {
    min-height:44px;
    padding:10px 15px;
    border-radius:9px;
    font:inherit;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
}

.aap-discard-actions [data-discard] {
    background:#fff;
    color:#a13b36;
    border:1px solid #dfc5c2;
}

.aap-discard-actions [data-continue] {
    background:#31594b;
    color:#fff;
    border:1px solid #31594b;
}

@media(max-width:750px) {

    #shade.aap-interface-active {
        padding:0!important;
    }

    #shade.aap-interface-active > .modal {
        position:fixed!important;
        inset:0!important;
        margin:0!important;
        width:100%!important;
        max-width:100%!important;
        height:100dvh!important;
        max-height:100dvh!important;
        border-radius:0!important;
        transform:none!important;
        display:flex!important;
        flex-direction:column!important;
        overflow:hidden!important;
    }

    #shade.aap-interface-active #adminDragHandle {
        flex-shrink:0;
        padding:12px 14px!important;
    }

    #shade.aap-interface-active #modalBody {
        flex:1 1 auto!important;
        min-height:0!important;
        overflow-y:auto!important;
        overscroll-behavior:contain;
        padding:14px!important;
    }

    #shade.aap-interface-active #modalFooter {
        flex-shrink:0!important;
    }

    #aapCommonBar {
        padding:9px!important;
        padding-bottom:max(
            9px,env(safe-area-inset-bottom)
        )!important;
    }

    #aapCommonBar button {
        min-height:44px;
    }

    #aapCommonBar [data-aap-nav] {
        flex:1 1 0;
    }
}



/* H10 - Refinamiento visual de navegación */

#aapCommonBar {
    gap:12px;
    padding:13px 20px;
    background:#fff;
}

#aapCommonBar button {
    min-height:46px;
    padding:11px 19px;
    border-radius:11px;
    font-size:13px;
    font-weight:650;
    box-shadow:0 2px 6px #193b260b;
    transition:background .18s,border-color .18s,
               box-shadow .18s,transform .18s;
}

#aapCommonBar button:hover {
    box-shadow:0 4px 10px #193b2618;
    transform:translateY(-1px);
}

#aapCommonBar [data-aap-nav=passport] {
    background:#31594b!important;
    color:#fff!important;
    border-color:#31594b!important;
}

#aapCommonBar [data-aap-nav=passport]:hover {
    background:#264b3e!important;
    border-color:#264b3e!important;
}

#aapCommonBar [data-aap-nav=studio] {
    background:#f7faf8;
    color:#31594b;
    border:1px solid #cbd9d0;
}

#aapCommonBar [data-aap-nav=studio]:hover {
    background:#e9f1eb;
    border-color:#8eaa99;
}

@media(max-width:600px) {
    #aapCommonBar {
        gap:7px;
        padding:9px;
    }

    #aapCommonBar button {
        min-height:44px;
        padding:9px 10px;
        font-size:12px;
    }
}

