.set-section {
    margin-top: 18px;
    border-top: 1px solid #eef1f5;
    padding-top: 18px;
}

.set-section > summary {
    cursor: pointer;
    list-style: none;
    color: #101828;
    font-size: 15px;
    font-weight: 850;
}

.set-section > summary::-webkit-details-marker {
    display: none;
}

.set-section > summary::after {
    content: "+";
    float: right;
    color: #98a2b3;
}

.set-section[open] > summary::after {
    content: "−";
}

.set-section-body {
    display: grid;
    gap: 14px;
    margin-top: 15px;
}

.battle-field {
    position: relative;
}

.battle-search-results {
    position: absolute;
    z-index: 60;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: none;
    max-height: 260px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #dfe4ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(16, 24, 40, .14);
}

.battle-search-results[data-open="true"] {
    display: grid;
    gap: 3px;
}

.battle-search-option {
    width: 100%;
    appearance: none;
    border: 0;
    border-radius: 8px;
    background: transparent;
    padding: 10px;
    text-align: left;
    cursor: pointer;
}

.battle-search-option:hover,
.battle-search-option:focus-visible {
    background: #f3f6ff;
}

.battle-search-option strong {
    display: block;
    color: #101828;
    font-size: 14px;
}

.battle-search-option small {
    display: block;
    margin-top: 3px;
    color: #98a2b3;
    font-size: 11px;
}

.move-grid {
    display: grid;
    gap: 12px;
}

.stat-table {
    display: grid;
    gap: 8px;
}

.stat-row {
    display: grid;
    grid-template-columns: 54px 1fr 1fr;
    gap: 8px;
    align-items: center;
}

.stat-row strong {
    color: #475467;
    font-size: 12px;
    text-transform: uppercase;
}

.stat-row input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    padding: 10px;
    font: inherit;
}

.ev-meter {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: #667085;
    font-size: 12px;
    font-weight: 750;
}

.ev-meter strong[data-over="true"] {
    color: #b42318;
}

.select-field select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d0d5dd;
    border-radius: 11px;
    background: #fff;
    padding: 12px 13px;
    color: #101828;
    font: inherit;
}

.set-validation-note {
    color: #7b8494;
    font-size: 12px;
    line-height: 1.5;
}

.set-validation-note strong {
    color: #b54708;
}

@media (max-width: 760px) {
    .set-section-body {
        gap: 13px;
    }

    .stat-row {
        grid-template-columns: 48px 1fr 1fr;
    }
}

/* M1.3 UX emphasis repair */
.set-section {
    border: 1px solid #d7e8df;
    border-radius: 14px;
    padding: 0;
    overflow: visible;
    background: #fbfefc;
}

.set-section + .set-section {
    margin-top: 14px;
}

.set-section > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    padding: 13px 15px;
    border-radius: 13px;
    background: #f0faf5;
    color: #116b4a;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .01em;
}

.set-section > summary::after {
    content: "＋";
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #dff4e8;
    color: #0c7a52;
    font-size: 20px;
    line-height: 1;
    font-weight: 900;
}

.set-section[open] > summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: #e8f7ef;
}

.set-section[open] > summary::after {
    content: "−";
    background: #0f9f6e;
    color: #fff;
}

.set-section-body {
    margin-top: 0;
    padding: 15px;
    border-top: 1px solid #d7e8df;
    background: #fff;
}

/* EV total emphasis */
.ev-meter {
    align-items: center;
    margin-bottom: 12px;
    padding: 11px 13px;
    border: 1px solid #b9e2cf;
    border-radius: 11px;
    background: #eefaf4;
}

.ev-meter span {
    color: #116b4a;
    font-weight: 850;
}

.ev-meter strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #0f9f6e;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
}

.ev-meter strong[data-over="true"] {
    background: #b42318;
    color: #fff;
}

@media (max-width: 760px) {
    .set-section > summary {
        min-height: 52px;
        font-size: 16px;
    }

    .set-section > summary::after {
        width: 30px;
        height: 30px;
        font-size: 21px;
    }

    .ev-meter {
        padding: 12px 13px;
    }

    .ev-meter strong {
        min-width: 96px;
        font-size: 14px;
    }
}

/* M1_3_EV_STATUS_COMPLETION_START */

/*
 * Preserve the already accepted accordion styling.
 * Only the EV meter gains explicit neutral / complete / error states.
 */

.ev-meter[data-status="neutral"] {
    border-color: #d0d5dd;
    background: #f8fafc;
    color: #475467;
}

.ev-meter[data-status="neutral"] strong {
    background: #e4e7ec;
    color: #344054;
}

.ev-meter[data-status="neutral"] strong::before {
    content: none;
}

.ev-meter[data-status="complete"] {
    border-color: #b9e4d2;
    background: #eefaf5;
    color: #126b50;
}

.ev-meter[data-status="complete"] strong {
    background: #15966f;
    color: #fff;
}

.ev-meter[data-status="complete"] strong::before {
    content: "✓";
    margin-right: 6px;
    font-size: 12px;
}

.ev-meter[data-status="error"] {
    border-color: #fecdca;
    background: #fef3f2;
    color: #b42318;
}

.ev-meter[data-status="error"] strong {
    background: #b42318;
    color: #fff;
}

.ev-meter[data-status="error"] strong::before {
    content: "!";
    margin-right: 6px;
    font-size: 12px;
}

/* M1_3_EV_STATUS_COMPLETION_END */
