.page-header { text-align: center; padding: 40px 0 20px; }
        .page-title { font-size: 2.2rem; font-weight: 900; color: #fff; margin-bottom: 8px; }

        .dps-grid { display: grid; grid-template-columns: 420px 1fr; gap: 24px; max-width: 1400px; margin: 0 auto; }
        @media (max-width: 1000px) { .dps-grid { grid-template-columns: 1fr; } }

        .sidebar { display: flex; flex-direction: column; gap: 20px; }
        .card { background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 10px 30px rgba(109,40,217,0.1); border: 1px solid #e5e7eb; }
        .section-title { font-size: 1.1rem; font-weight: 800; color: #6d28d9; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }

        /* 필터 탭 시스템 */
        .filter-section { margin-bottom: 20px; }
        .filter-label { font-size: 13px; font-weight: 800; color: #4b5563; margin-bottom: 8px; display: block; }
        .type-tabs { display: flex; gap: 4px; margin-bottom: 8px; background: #f3f4f6; padding: 4px; border-radius: 12px; flex-wrap: wrap; }
        .tab-btn { 
            flex: 1; min-width: 50px; padding: 8px 4px; border-radius: 8px; border: none; background: none; 
            font-size: 12px; font-weight: 800; color: #6b7280; cursor: pointer; transition: all 0.2s;
        }
        .tab-btn.active { background: #fff; color: #6d28d9; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

        .unit-scroll-area { max-height: 500px; overflow-y: auto; padding-right: 8px; }
        .unit-scroll-area::-webkit-scrollbar { width: 6px; }
        .unit-scroll-area::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 10px; }

        .unit-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
        .unit-item { 
            background: #fff; border: 2px solid #f3f4f6; border-radius: 16px; padding: 12px 8px; 
            text-align: center; cursor: pointer; transition: all 0.2s; position: relative;
        }
        .unit-item:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
        .unit-item.active { border-color: #6d28d9; background: #f5f3ff; }

        /* 등급별 테두리 및 배경 */
        .unit-item[data-grade="normal"].active { border-color: #9ca3af; }
        .unit-item[data-grade="rare"].active { border-color: #3b82f6; }
        .unit-item[data-grade="hero"].active { border-color: #a855f7; }
        .unit-item[data-grade="legend"].active { border-color: #eab308; }
        .unit-item[data-grade="mythic"].active { border-color: #ef4444; }

        .unit-img-wrapper { 
            width: 60px; height: 60px; margin: 0 auto 8px; border-radius: 14px; overflow: hidden; 
            background: #fdfdfd; border: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: center;
            box-sizing: border-box;
        }
        .unit-img {
            width: 92%;
            height: 92%;
            object-fit: contain;
            transform: scale(var(--hero-image-scale, 1));
            transform-origin: center;
            transition: transform .18s ease;
        }

        .unit-name { font-size: 11px; font-weight: 850; color: #1f2937; margin-bottom: 4px; }

        .grade-tag { font-size: 9px; padding: 2px 6px; border-radius: 4px; font-weight: 900; text-transform: uppercase; }
        .grade-normal { background: #f3f4f6; color: #6b7280; }
        .grade-rare { background: #eff6ff; color: #3b82f6; }
        .grade-hero { background: #f5f3ff; color: #8b5cf6; }
        .grade-legend { background: #fffbeb; color: #d97706; }
        .grade-mythic { background: #fef2f2; color: #ef4444; }
        .grade-immortal { background: #fff7ed; color: #f97316; box-shadow: 0 0 10px rgba(249, 115, 22, 0.3); border: 1px solid rgba(249, 115, 22, 0.4); }

        /* 프리미엄 불멸 오로라 효과 */
        @keyframes immortal-aura {
            0% { box-shadow: 0 0 30px rgba(249, 115, 22, 0.4), inset 0 0 20px rgba(251, 146, 60, 0.2); }
            50% { box-shadow: 0 0 60px rgba(249, 115, 22, 0.6), inset 0 0 40px rgba(251, 146, 60, 0.4); }
            100% { box-shadow: 0 0 30px rgba(249, 115, 22, 0.4), inset 0 0 20px rgba(251, 146, 60, 0.2); }
        }
        .dps-hero.immortal-mode {
            background: linear-gradient(135deg, #f97316, #fb923c);
            animation: immortal-aura 3s infinite ease-in-out;
        }
        .dps-hero.immortal-mode .hero-portrait-large {
            border-color: rgba(255, 255, 255, 0.5);
            box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
        }

        /* 불멸 유닛 아이템 special glow */
        .unit-item[data-grade="immortal"] { border-color: #fed7aa; background: linear-gradient(135deg, #fff7ed, #fff); }
        .unit-item[data-grade="immortal"].active { border-color: #f97316; background: #fff7ed; box-shadow: 0 4px 14px rgba(249,115,22,0.25); }

        /* 결과 대시보드 */
        .dps-hero { 
            background: linear-gradient(135deg, #6d28d9, #4f46e5); color: #fff; padding: 45px 32px; border-radius: 28px; text-align: center;
            box-shadow: 0 15px 40px rgba(109,40,217,0.3); position: relative; overflow: hidden;
            display: flex; flex-direction: column; align-items: center; gap: 15px;
        }
        .hero-portrait-large { 
            width: 100px; height: 100px; border-radius: 24px; border: 5px solid rgba(255,255,255,0.2); 
            background: #fff; overflow: hidden; box-shadow: 0 12px 24px rgba(0,0,0,0.15); 
            box-sizing: border-box; display: grid; place-items: center;
        }
        #res-hero-img {
            max-width: 92%;
            max-height: 92%;
            object-fit: contain;
            transform: scale(var(--hero-image-scale, 1));
            transform-origin: center;
            transition: transform .18s ease;
        }
        .dps-val { font-size: 4.5rem; font-weight: 950; letter-spacing: -3px; line-height: 1; }

        .grade-badge-large { 
            position: absolute; top: 20px; right: 20px; font-size: 12px; font-weight: 900; 
            padding: 4px 12px; border-radius: 20px; background: rgba(255,255,255,0.2); backdrop-filter: blur(5px);
        }
        .dps-hero .grade-badge-large {
            background: #fff; color: #475569; backdrop-filter: none;
            box-shadow: 0 2px 8px rgba(30, 15, 70, .16);
        }
        .dps-hero .grade-badge-large.grade-rare { color: #1d4ed8; }
        .dps-hero .grade-badge-large.grade-hero { color: #6d28d9; }
        .dps-hero .grade-badge-large.grade-legend { color: #92400e; }
        .dps-hero .grade-badge-large.grade-mythic { color: #b91c1c; }
        .dps-hero .grade-badge-large.grade-immortal { color: #9a3412; }

        .breakdown-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-top: 24px; }
        .br-card { background: #f9fafb; padding: 20px; border-radius: 20px; border: 1px solid #f3f4f6; }
        .br-label { font-size: 11px; font-weight: 800; color: #9ca3af; margin-bottom: 6px; }
        .br-val { font-size: 1.3rem; font-weight: 900; color: #1f2937; }

        .control-group { margin-bottom: 18px; }
        .control-label { display: flex; justify-content: space-between; font-weight: 800; color: #374151; margin-bottom: 8px; font-size: 0.9rem; }
        .control-label span { color: #6d28d9; }

        .chart-bar-bg { background: #f3f4f6; height: 14px; border-radius: 99px; overflow: hidden; margin-top: 10px; }
        .chart-bar-fill { height: 100%; border-radius: 99px; transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1); }


/* 최신 영웅 목록 / 검색 UX */
.dps-reference-note {
    margin-top: 4px;
    font-size: 11px;
    opacity: .88;
}
.unit-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -4px 0 18px;
}
.unit-search {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dbe3ef;
    border-radius: 11px;
    background: #f8fafc;
    color: #111827;
    font: inherit;
    font-size: 13px;
    outline: none;
}
.unit-search:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139,92,246,.11);
    background: #fff;
}
.unit-count {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}
.unit-item {
    appearance: none;
    font-family: inherit;
    color: inherit;
}
.unit-item.pending {
    border-style: dashed;
    background: #fafafa;
}
.unit-item.pending:hover {
    border-color: #f59e0b;
}
.immortal-border {
    border: 2px solid #f97316;
}
.image-pending-badge {
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(15,23,42,.8);
    color: #fff;
    font-size: 7px;
    font-weight: 800;
    white-space: nowrap;
}
.unit-img-wrapper {
    position: relative;
}
.calc-pending-tag {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 4px auto 0;
    padding: 2px 5px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 8px;
    font-weight: 900;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}
.unit-empty {
    grid-column: 1 / -1;
    padding: 28px 12px;
    color: #94a3b8;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}
.result-hero-meta {
    display: grid;
    gap: 4px;
    justify-items: center;
}
.result-hero-name {
    font-size: 1.35rem;
    font-weight: 950;
    letter-spacing: -.02em;
}
.result-data-status {
    padding: 4px 9px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    font-size: 10px;
    font-weight: 800;
    opacity: .95;
}
.result-data-status.pending {
    background: rgba(15,23,42,.25);
}
.dps-hero.pending-mode {
    background: linear-gradient(135deg, #475569, #64748b);
    box-shadow: 0 15px 40px rgba(71,85,105,.22);
}
.dps-hero.pending-mode .dps-val {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -.04em;
}
.model-note,
.immortal-note {
    display: block;
    margin-top: 9px;
    color: #94a3b8;
}
.immortal-note {
    color: #f97316;
}
.skin-option-btn {
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 8px;
    background: rgba(0,0,0,.24);
    color: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}
.skin-option-btn:hover,
.skin-option-btn.active {
    background: rgba(255,255,255,.18);
    border-color: #fff;
}

@media (max-width: 1000px) {
    .dps-grid {
        grid-template-columns: 1fr;
    }
    .unit-scroll-area {
        max-height: 420px;
    }
}

@media (max-width: 640px) {
    .page-header {
        padding: 24px 0 14px;
    }
    .page-title {
        font-size: 1.75rem;
    }
    .card {
        padding: 16px;
        border-radius: 16px;
    }
    .unit-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
    }
    .unit-item {
        min-width: 0;
        padding: 8px 4px;
        border-radius: 12px;
    }
    .unit-img-wrapper {
        width: 52px;
        height: 52px;
        border-radius: 11px;
    }
    .unit-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 10px;
    }
    .type-tabs {
        gap: 3px;
    }
    .tab-btn {
        min-width: 44px;
        padding: 8px 3px;
        font-size: 11px;
    }
    .dps-hero {
        padding: 58px 18px 34px;
        border-radius: 22px;
    }
    .dps-val {
        font-size: clamp(2.8rem, 15vw, 4rem);
        letter-spacing: -2px;
    }
    .breakdown-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .br-card {
        padding: 14px 8px;
        border-radius: 14px;
        text-align: center;
    }
    .br-val {
        font-size: 1rem;
    }
}

@media (max-width: 410px) {
    .unit-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .unit-search-row {
        align-items: stretch;
        flex-direction: column;
    }
}


/* Cross-verified DPS controls ------------------------------------------------ */
body.app-page .control-help {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.45;
}

body.app-page .dps-relic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 14px;
}

body.app-page .dps-advanced-settings {
    margin-top: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    overflow: hidden;
}

body.app-page .dps-advanced-settings > summary {
    padding: 12px 14px;
    color: #475569;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
    user-select: none;
}

body.app-page .dps-advanced-settings[open] > summary {
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    color: #6d28d9;
}

body.app-page .dps-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    padding: 14px;
}

body.app-page .dps-number-field {
    display: grid;
    gap: 5px;
    min-width: 0;
}

body.app-page .dps-number-field > span {
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
}

body.app-page .dps-number-field input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 16px;
    font-weight: 650;
    outline: none;
}

body.app-page .dps-number-field input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .11);
}

body.app-page .dps-number-field small {
    color: #94a3b8;
    font-size: 9px;
    line-height: 1.4;
}

body.app-page .core-model-note {
    margin-top: 14px;
    padding: 12px 13px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    color: #475569;
    font-size: 11px;
    line-height: 1.6;
}

body.app-page .core-model-note strong {
    display: block;
    margin-bottom: 2px;
    color: #1d4ed8;
    font-weight: 900;
}

body.app-page .core-inline-detail {
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 640px) {
    body.app-page .dps-relic-grid,
    body.app-page .dps-input-grid {
        grid-template-columns: 1fr;
    }

    body.app-page .dps-input-grid {
        gap: 12px;
        padding: 12px;
    }

    body.app-page .breakdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

body.app-page .dps-variant-select {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 15px;
    font-weight: 750;
    outline: none;
}

body.app-page .dps-variant-select:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .11);
}

body.app-page .dps-special-range {
    width: 100%;
    min-height: 28px;
    margin: 0;
    padding: 0;
    accent-color: #7c3aed;
    cursor: pointer;
}

body.app-page .dps-special-control .control-label > span:last-child {
    min-width: 52px;
    text-align: right;
    color: #6d28d9;
    font-weight: 900;
}

/* Advanced combat adjustment ------------------------------------------------ */
body.app-page .dps-combat-settings {
    border-color: #c7d2fe;
    background: #f8faff;
}

body.app-page .dps-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 14px 14px;
}

body.app-page .dps-toggle-field {
    display: grid;
    grid-template-columns: auto minmax(76px, 1fr) 86px auto;
    gap: 7px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid #dbe4f0;
    border-radius: 11px;
    background: #fff;
    color: #475569;
    font-size: 10px;
    font-weight: 800;
}

body.app-page .dps-toggle-field > input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #4f46e5;
}

body.app-page .dps-toggle-field > input[type="number"] {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    box-sizing: border-box;
    padding: 7px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    color: #0f172a;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
}

body.app-page .dps-toggle-field em {
    color: #94a3b8;
    font-size: 9px;
    font-style: normal;
    font-weight: 650;
    white-space: nowrap;
}

body.app-page .dps-combat-help {
    margin: 0;
    padding: 0 14px 14px;
    color: #64748b;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.55;
}

body.app-page .advanced-combat-card {
    border: 1px solid #c7d2fe;
    background: linear-gradient(145deg, #fff, #f5f3ff);
}

body.app-page .advanced-combat-primary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 14px;
    align-items: baseline;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #312e81;
    color: #fff;
}

body.app-page .advanced-combat-primary > span {
    font-size: 11px;
    font-weight: 800;
    opacity: .78;
}

body.app-page .advanced-combat-primary > strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    font-size: clamp(1.65rem, 4vw, 2.5rem);
    font-weight: 950;
    letter-spacing: -.045em;
}

body.app-page .advanced-combat-primary > small {
    color: #c4b5fd;
    font-size: 10px;
    font-weight: 750;
}

body.app-page .advanced-combat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

body.app-page .advanced-combat-grid > div {
    min-width: 0;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #fff;
}

body.app-page .advanced-combat-grid span {
    display: block;
    color: #64748b;
    font-size: 9px;
    font-weight: 750;
}

body.app-page .advanced-combat-grid strong {
    display: block;
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: #312e81;
    font-size: 13px;
    font-weight: 900;
}

body.app-page .advanced-combat-summary {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.55;
}

@media (max-width: 640px) {
    body.app-page .dps-toggle-grid,
    body.app-page .advanced-combat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.app-page .dps-toggle-field {
        grid-template-columns: auto 1fr 74px;
    }

    body.app-page .dps-toggle-field em {
        display: none;
    }
}

body.app-page .advanced-enemy-preset {
    margin: 0 14px 14px;
    padding: 12px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: linear-gradient(145deg, #eff6ff, #f8fafc);
}

body.app-page .advanced-enemy-preset-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 9px;
}

body.app-page .advanced-enemy-preset-head strong {
    color: #1e3a8a;
    font-size: 11px;
    font-weight: 900;
}

body.app-page .advanced-enemy-preset-head span,
body.app-page .advanced-enemy-preset-status {
    color: #64748b;
    font-size: 9px;
    font-weight: 650;
    line-height: 1.45;
}

body.app-page .advanced-enemy-preset-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

body.app-page .advanced-enemy-preset-grid label > span {
    display: block;
    margin-bottom: 4px;
    color: #475569;
    font-size: 9px;
    font-weight: 800;
}

body.app-page .advanced-enemy-preset-grid select {
    width: 100%;
    min-height: 38px;
    box-sizing: border-box;
    padding: 7px 9px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 11px;
    font-weight: 750;
}

body.app-page .advanced-enemy-preset-grid select:disabled {
    background: #f1f5f9;
    color: #94a3b8;
}

body.app-page .advanced-enemy-preset-status {
    margin-top: 8px;
}

@media (max-width: 520px) {
    body.app-page .advanced-enemy-preset-grid {
        grid-template-columns: 1fr;
    }
    body.app-page .advanced-enemy-preset-head {
        display: block;
    }
    body.app-page .advanced-enemy-preset-head span {
        display: block;
        margin-top: 3px;
    }
}



/* DPS 기여율: 검증된 피해원을 한 막대에 누적하여 시각화 (Batch 169). */
.dps-contribution {
    min-width: 0;
    padding: 2px 0 0;
}
.dps-contribution-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    margin-bottom: 13px;
    color: #334155;
    font-size: 14px;
}
.dps-contribution-heading strong {
    font-weight: 800;
}
.dps-contribution-status {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}
.dps-contribution-chart {
    display: flex;
    overflow: hidden;
    width: 100%;
    height: 17px;
    border-radius: 999px;
    background: #e2e8f0;
}
.dps-contribution-chart:not(.is-unverified) {
    gap: 0;
}
.dps-contribution-chart.is-unverified {
    background: repeating-linear-gradient(120deg, #e2e8f0 0, #e2e8f0 11px, #f1f5f9 11px, #f1f5f9 22px);
}
.dps-contribution-segment {
    flex: 0 0 auto;
    height: 100%;
    min-width: 0;
    transition: width .25s ease;
}
.dps-contribution-segment + .dps-contribution-segment {
    box-shadow: inset 1px 0 rgba(255,255,255,.8);
}
.dps-contribution-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 10px;
    margin-top: 15px;
}
.dps-contribution-legend-item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #334155;
}
.dps-contribution-dot {
    display: inline-block;
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}
.dps-contribution-label {
    min-width: 0;
    overflow-wrap: anywhere;
}
.dps-contribution-number {
    margin-left: auto;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: #0f172a;
    font-weight: 800;
}
.dps-contribution-unverified {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}
.dps-contribution-footnote {
    margin: 13px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}
@media (max-width: 520px) {
    .dps-contribution-legend {
        column-gap: 12px;
        row-gap: 9px;
    }
    .dps-contribution-legend-item {
        font-size: 12px;
        gap: 6px;
    }
    .dps-contribution-number {
        font-size: 11.5px;
    }
}
@media (max-width: 350px) {
    .dps-contribution-legend {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (prefers-reduced-motion: reduce) {
    .dps-contribution-segment { transition: none; }
}

/* Batch 174: boss-first target preset is visible above advanced settings. */
body.app-page .advanced-enemy-quick-picker {
    margin: 12px 0 18px;
    padding: 14px;
    border-color: #cbd5e1;
}
body.app-page .advanced-enemy-quick-picker .advanced-enemy-preset-head strong {
    font-size: 13px;
}
body.app-page .advanced-enemy-quick-picker .advanced-enemy-preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}
body.app-page .advanced-enemy-quick-picker .advanced-enemy-preset-grid select {
    min-height: 42px;
    font-size: 12px;
}
body.app-page .advanced-enemy-current-status {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #fff;
    border: 1px solid #dbeafe;
    color: #1e40af;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
@media (max-width: 520px) {
    body.app-page .advanced-enemy-quick-picker .advanced-enemy-preset-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    body.app-page .advanced-enemy-quick-picker .advanced-enemy-preset-grid select {
        min-width: 0;
        font-size: 11px;
        padding: 7px 6px;
    }
}
@media (max-width: 360px) {
    body.app-page .advanced-enemy-quick-picker .advanced-enemy-preset-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* Batch 175: live boss-HP-dependent Overclocked Rocket Chu DPS curve. */
body.app-page .overclock-hp-dps-panel {
    margin: 12px 14px;
    padding: 15px;
    background: #f7f9ff;
    border: 1px solid #d8e4fb;
    border-radius: 12px;
    color: #334155;
}
body.app-page .overclock-hp-dps-heading {
    display:flex;
    flex-wrap:wrap;
    align-items:baseline;
    justify-content:space-between;
    gap:8px;
    margin-bottom: 8px;
}
body.app-page .overclock-hp-dps-heading strong { font-size: 13px; color:#1e3a8a; }
body.app-page .overclock-hp-dps-heading span,
body.app-page .overclock-hp-dps-panel > small { font-size:10px; color:#64748b;line-height:1.5; }
body.app-page .overclock-hp-dps-chart {
    min-height:150px;
    overflow:hidden;
    border-radius: 9px;
    background:white;
}
body.app-page .overclock-hp-dps-chart svg { width:100%;height:auto;display:block; }
body.app-page .overclock-hp-dps-stats {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    margin:10px 0;
}
body.app-page .overclock-hp-dps-stats > div {
    min-width:0;
    padding:9px;
    border-radius:8px;
    background:#fff;
    border:1px solid #e2e8f0;
}
body.app-page .overclock-hp-dps-stats small {
    display:block;
    font-size:10px;
    color:#64748b;
}
body.app-page .overclock-hp-dps-stats strong {
    display:block;
    font-size:13px;
    overflow-wrap:anywhere;
    font-variant-numeric:tabular-nums;
    color:#1e3a8a;
}
@media (max-width:520px) {
    body.app-page .overclock-hp-dps-panel {padding:11px;margin:10px 8px;}
    body.app-page .overclock-hp-dps-stats {grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;}
    body.app-page .overclock-hp-dps-stats > div {padding:7px 5px;}
    body.app-page .overclock-hp-dps-stats strong {font-size:11px;}
}

body.app-page .dps-core-context {
    display:block;
    margin-top:7px;
    opacity:.88;
    font-size:11px;
    line-height:1.5;
}
body.app-page .dps-core-context[hidden] {display:none;}

body.app-page .advanced-enemy-atlas-link {
    color:#5b21b6;
    font-size:11px;
    font-weight:850;
    text-decoration:none;
    white-space:nowrap;
}
body.app-page .advanced-enemy-atlas-link:hover {
    text-decoration:underline;
}

/* Mobile viewport stability: Roka's long scenario/skill labels must not
   enlarge the intrinsic grid width and trigger browser page-scale zoom. */
body.app-page .dps-grid,
body.app-page .dps-grid > *,
body.app-page .sidebar,
body.app-page .dps-grid .card,
body.app-page .dps-grid .control-group,
body.app-page .dps-grid .model-note,
body.app-page .dps-core-context {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
body.app-page .dps-grid .control-label > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}
body.app-page .dps-grid .control-label {
    gap: 10px;
}
body.app-page .dps-grid .dps-variant-select {
    min-width: 0;
    max-width: 100%;
}
body.app-page .dps-grid .model-note,
body.app-page .dps-grid .dps-core-context,
body.app-page .dps-grid .dps-contribution-footnote,
body.app-page .dps-grid .dps-contribution-status {
    overflow-wrap: anywhere;
    word-break: normal;
}
@media (max-width: 1000px) {
    body.app-page .dps-grid {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 640px) {
    body.app-page .dps-hero .dps-val {
        max-width: 100%;
        font-size: clamp(1.85rem, 10vw, 3.4rem);
        overflow-wrap: anywhere;
        line-height: 1.1;
    }
    body.app-page .dps-grid .dps-special-control .control-label > span:last-child {
        flex: 0 0 auto;
    }
}

/* Hidden must win over the picker display rules for non-HP-scaling heroes. */
body.app-page #advanced-enemy-quick-picker[hidden] { display: none !important; }

/* 2026-10-09 DPS usability pass: scope all changes to this page. */
body.app-page .page-wrapper > .container {
    box-sizing: border-box;
    width: min(calc(100% - 32px), 1200px);
    max-width: 1200px;
}
body.app-page .page-wrapper .page-header .page-title {
    color: var(--ui-heading);
    -webkit-text-fill-color: var(--ui-heading);
    text-shadow: none;
    font-size: clamp(1.85rem, 3.8vw, 2.6rem);
    line-height: 1.22;
    overflow-wrap: anywhere;
}
body.app-page .page-wrapper .page-header > p {
    max-width: 650px;
    margin-inline: auto;
    line-height: 1.55;
    font-size: clamp(.82rem, 1.5vw, .98rem);
}
body.app-page .page-wrapper .page-header .page-subtitle {
    color: var(--ui-muted);
}
body.app-page .page-wrapper .data-status {
    margin-block: 10px 14px;
    padding: 13px 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
body.app-page .page-wrapper .data-status.community {
    background: #fffaf2;
    border-color: #fed7aa;
}
body.app-page .dps-method-details {
    min-width: 0;
}
body.app-page .dps-method-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    cursor: pointer;
    list-style: none;
}
body.app-page .dps-method-details > summary::-webkit-details-marker { display: none; }
body.app-page .dps-method-details > summary::marker { content: ""; }
body.app-page .dps-method-summary {
    display: grid;
    gap: 2px;
    flex: 1 1 220px;
    min-width: 0;
}
body.app-page .dps-method-summary > strong {
    font-size: 13px;
    color: #854d0e;
    line-height: 1.4;
}
body.app-page .dps-method-summary > span {
    color: #92521b;
    font-size: 11px;
    line-height: 1.4;
}
body.app-page .dps-method-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #fdba74;
    border-radius: 999px;
    padding: 6px 10px;
    background: #fff;
    color: #9a3412;
    font-size: 11px;
    font-weight: 850;
}
body.app-page .dps-method-chevron {
    display: inline-block;
    transition: transform .18s ease;
    font-size: 17px;
    line-height: .8;
}
body.app-page .dps-method-details[open] .dps-method-chevron { transform: rotate(180deg); }
body.app-page .dps-method-body {
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid #fed7aa;
    color: #7c2d12;
    font-size: 12px;
    line-height: 1.7;
}
body.app-page .dps-method-body p + p { margin-top: 7px; }
body.app-page .dps-method-body .dps-reference-note { margin-top: 10px; line-height: 1.6; }
body.app-page .dps-grid {
    grid-template-columns: minmax(330px, 410px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
body.app-page .dps-grid .card {
    min-width: 0;
    padding: 22px;
    border-radius: 19px;
    box-shadow: 0 5px 22px rgba(32, 24, 72, .07);
}
body.app-page .dps-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
}
body.app-page .dps-section-heading .section-title {
    min-width: 0;
    margin-bottom: 0;
}
body.app-page .dps-jump-link { display: none; }
body.app-page .dps-results-nav { display: none; }
body.app-page .type-tabs#grade-filter,
body.app-page .type-tabs#type-filter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 5px;
    padding: 5px;
    border-radius: 13px;
}
body.app-page .type-tabs .tab-btn {
    min-width: 0;
    min-height: 36px;
    padding: 7px 3px;
    border-radius: 9px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 850;
}
body.app-page .type-tabs .tab-btn.active {
    color: #5b21b6;
    background: #fff;
    box-shadow: 0 2px 7px rgba(76,29,149,.11);
}
body.app-page .unit-scroll-area {
    scrollbar-gutter: stable;
    padding-right: 4px;
    border-radius: 12px;
}
body.app-page .unit-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
body.app-page .unit-item {
    min-width: 0;
    padding: 10px 5px;
}
body.app-page .unit-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.3;
    overflow-wrap: anywhere;
    font-size: 11px;
}
body.app-page .unit-count { font-size: 11px; }
body.app-page .dps-grid .control-label {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 3px 8px;
    line-height: 1.45;
    font-size: 12px;
}
body.app-page .dps-special-control .control-label > span:last-child {
    flex: 0 1 auto;
    max-width: 100%;
    text-align: right;
    overflow-wrap: anywhere;
}
body.app-page .control-help,
body.app-page .dps-number-field small,
body.app-page .dps-combat-help {
    color: #64748b;
    font-size: 11px;
    line-height: 1.55;
}
body.app-page .dps-advanced-settings > summary {
    min-height: 42px;
    display: flex;
    align-items: center;
    list-style: none;
}
body.app-page .dps-advanced-settings > summary::-webkit-details-marker { display: none; }
body.app-page .dps-advanced-settings > summary::marker { content: ""; }
body.app-page .dps-advanced-settings > summary:after {
    content: "⌄";
    font-size: 19px;
    line-height: 1;
    margin-left: auto;
    color: #6d28d9;
}
body.app-page .dps-advanced-settings[open] > summary:after { transform: rotate(180deg); }
body.app-page .dps-toggle-field {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 86px) auto;
    font-size: 11px;
    line-height: 1.45;
}
body.app-page .dps-special-control > .dps-toggle-field {
    grid-template-columns: auto minmax(0, 1fr);
}
body.app-page .dps-hero {
    min-width: 0;
    padding: 35px 22px 30px;
    gap: 11px;
    border-radius: 22px;
}
body.app-page .dps-hero .dps-val {
    max-width: 100%;
    min-width: 0;
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    letter-spacing: -.05em;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
body.app-page .dps-hero .result-data-status {
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.4;
    text-wrap: pretty;
}
body.app-page .dps-dual-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: min(100%, 590px);
    margin-inline: auto;
    font-variant-numeric: tabular-nums;
    letter-spacing: normal;
}
body.app-page .dps-dual-values > span {
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 13px 11px;
    border: 1px solid rgba(255,255,255,.27);
    border-radius: 14px;
    background: rgba(255,255,255,.1);
}
body.app-page .dps-dual-values small {
    font-size: 12px;
    font-weight: 750;
    color: #e9d5ff;
}
body.app-page .dps-dual-values strong {
    font-size: clamp(1.35rem, 2.3vw, 2.05rem);
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}
body.app-page .advanced-combat-primary {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
}
body.app-page .advanced-combat-primary > strong {
    min-width: 0;
    max-width: 100%;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
    text-align: right;
}
body.app-page .dps-contribution-legend-item {
    line-height: 1.4;
}
body.app-page .dps-grid :is(.tab-btn, .unit-item, a, summary, input, select):focus-visible {
    outline: 3px solid #a78bfa;
    outline-offset: 2px;
}
body.app-page .dps-grid [hidden] { display: none !important; }
@media (hover: hover) {
    body.app-page .type-tabs .tab-btn:not(.active):hover { background: rgba(255,255,255,.75); }
}
@media (max-width: 1000px) {
    body.app-page .dps-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
    body.app-page .dps-results-nav {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 10px;
    }
    body.app-page .dps-jump-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        min-height: 35px;
        padding: 7px 10px;
        border: 1px solid #ddd6fe;
        border-radius: 10px;
        background: #f5f3ff;
        color: #5b21b6;
        font-size: 11px;
        font-weight: 850;
        text-decoration: none;
        white-space: nowrap;
    }
    body.app-page .dps-jump-link:active { background: #ede9fe; }
    body.app-page #dps-settings,
    body.app-page #dps-results,
    body.app-page #unit-search {
        scroll-margin-top: 85px;
    }
}
@media (max-width: 760px) {
    body.app-page .page-wrapper > .container {
        width: calc(100% - 20px);
    }
    body.app-page .page-wrapper .page-header .page-title {
        font-size: clamp(1.52rem, 6.6vw, 2rem);
        line-height: 1.22;
        word-break: keep-all;
    }
    body.app-page .dps-grid .card { padding: 16px; border-radius: 16px; }
    body.app-page .unit-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
    body.app-page .dps-dual-values { grid-template-columns: minmax(0, 1fr); }
    body.app-page .dps-dual-values > span { padding: 9px 12px; }
    body.app-page .dps-dual-values strong { font-size: clamp(1.4rem, 7vw, 2rem); }
    body.app-page .dps-hero .dps-val { font-size: clamp(1.95rem, 9vw, 3rem); }
    body.app-page .dps-hero .dps-dual-values { font-size: inherit; }
    body.app-page .dps-method-details > summary { align-items: flex-start; }
    body.app-page .dps-method-toggle { padding: 5px 9px; }
    body.app-page .advanced-combat-primary {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }
    body.app-page .advanced-combat-primary > strong {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        text-align: left;
        font-size: clamp(1.65rem, 7vw, 2.3rem);
    }
}
@media (max-width: 375px) {
    body.app-page .dps-section-heading .section-title { font-size: 1rem; }
    body.app-page .dps-jump-link { padding: 6px 8px; font-size: 10px; }
    body.app-page .dps-method-summary { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    body.app-page .dps-hero.immortal-mode { animation: none; }
    body.app-page .unit-item,
    body.app-page .dps-method-chevron { transition: none; }
}

/* DPS: damage types and overlapping combat-utility roles. */
body.app-page .dps-filter-note {
    display: inline;
    margin-left: 5px;
    font-size: 10px;
    font-weight: 650;
    color: #64748b;
}
body.app-page .type-tabs#role-filter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    border-radius: 13px;
}
body.app-page .type-tabs#role-filter .tab-btn {
    min-height: 36px;
    min-width: 0;
    padding: 7px 3px;
    font-size: 11px;
}
body.app-page .dps-role-filter-section {
    margin-bottom: 15px;
}
body.app-page .dps-unit-role-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-top: 4px;
}
body.app-page .dps-unit-role-tags:empty {
    display: none;
}
body.app-page .dps-unit-role-tag {
    display: inline-block;
    max-width: 100%;
    border: 1px solid #ddd6fe;
    border-radius: 5px;
    background: #faf5ff;
    padding: 2px 5px;
    color: #6d28d9;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
body.app-page .dps-result-role-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: 1px;
}
body.app-page .dps-result-role-tag {
    display: inline-block;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    background: rgba(255,255,255,.17);
    padding: 4px 9px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
}
@media (max-width: 410px) {
    body.app-page .dps-unit-role-tag {
        font-size: 8px;
        padding: 2px 4px;
    }
    body.app-page .dps-filter-note {
        display: block;
        margin: 3px 0 0;
    }
}

/* 영웅별 스킬 카드 — 파워나갔다 참고 도감 아이콘 / 2.0.13 계산과 독립 */
body.app-page .dps-skill-guide {
    margin-top: 16px;
    border: 1px solid #dfd5f8;
    background: linear-gradient(145deg, #fcfaff 0%, #ffffff 45%);
}
body.app-page .dps-skill-guide-heading {
    display:flex; align-items:flex-start; justify-content:space-between;
    flex-wrap:wrap; gap:10px 16px; margin-bottom:16px;
}
body.app-page .dps-skill-guide-heading h3 { margin:0 0 5px; color:#312e81; }
body.app-page .dps-skill-guide-subtitle {
    display:block; font-size:12px; line-height:1.5;
    color:#64748b; font-weight:750;
}
body.app-page .dps-skill-guide-source {
    display:inline-flex; align-items:center; justify-content:center;
    padding:8px 11px; min-height:38px; background:#f5f3ff;
    border:1px solid #ddd6fe; color:#6d28d9;
    font-size:12px; font-weight:800; border-radius:9px; text-decoration:none;
}
body.app-page .dps-skill-guide-source:hover { background:#ede9fe; }
body.app-page .dps-skill-guide-cards {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}
body.app-page .dps-skill-guide-card {
    min-width:0; display:flex; align-items:flex-start; gap:12px;
    padding:13px; border:1px solid #e2e8f0; border-radius:12px;
    background:#fff; box-shadow:0 2px 7px rgba(64,46,91,.035);
}
body.app-page .dps-skill-guide-icon-frame {
    display:flex; align-items:center; justify-content:center;
    flex:0 0 64px; width:64px; height:64px;
    border:1px solid #e5e7eb; border-radius:12px;
    background:#f8fafc; overflow:hidden;
}
body.app-page .dps-skill-guide-icon {
    display:block; width:100%; height:100%;
    object-fit:contain; aspect-ratio:1;
}
body.app-page .dps-skill-guide-fallback {
    display:flex; align-items:center; justify-content:center;
    font-size:27px; color:#a78bfa;
}
body.app-page .dps-skill-guide-content { min-width:0; flex:1; }
body.app-page .dps-skill-guide-card-title {
    display:flex; align-items:center; gap:6px;
    flex-wrap:wrap; line-height:1.5;
}
body.app-page .dps-skill-guide-card-title strong {
    font-size:13px; color:#1e293b; font-weight:900; overflow-wrap:anywhere;
}
body.app-page .dps-skill-kind {
    display:inline-block; padding:2px 6px; border-radius:6px;
    font-size:10px; font-weight:850; white-space:nowrap;
    background:#dbeafe; color:#1d4ed8;
}
body.app-page .dps-skill-kind.passive { background:#e0f2fe; color:#075985; }
body.app-page .dps-skill-kind.ultimate { background:#fae8ff; color:#86198f; }
body.app-page .dps-skill-guide-unlock {
    display:inline-block; padding:2px 6px; border-radius:6px;
    color:#9a3412; background:#ffedd5;
    font-size:10px; font-weight:750; white-space:nowrap;
}
body.app-page .dps-skill-guide-content p {
    margin:7px 0 0; font-size:12px; line-height:1.65;
    color:#475569; overflow-wrap:anywhere;
}
body.app-page .dps-skill-guide-resource {
    display:inline-block; margin-top:7px; font-size:10px; color:#64748b;
}
body.app-page .dps-skill-guide-levels {
    margin-top:13px; border:1px solid #ddd6fe; border-radius:10px;
    padding:9px 12px; color:#475569; background:#fafaff;
}
body.app-page .dps-skill-guide-levels summary {
    font-size:12px; font-weight:800; cursor:pointer; color:#5b21b6;
}
body.app-page .dps-skill-guide-level-list {
    display:flex; gap:7px; flex-wrap:wrap; margin-top:11px;
}
body.app-page .dps-skill-guide-level-chip {
    font-size:11px; line-height:1.4; font-weight:750;
    border-radius:7px; padding:6px 9px;
}
body.app-page .dps-skill-guide-level-chip.locked { background:#f1f5f9; color:#94a3b8; }
body.app-page .dps-skill-guide-level-chip.unlocked { background:#dcfce7; color:#166534; }
body.app-page .dps-skill-guide-caveat {
    padding:11px 12px; margin:14px 0 0;
    border:1px solid #e2e8f0; border-radius:10px;
    background:#f8fafc; color:#64748b; line-height:1.75;
    font-size:11px; overflow-wrap:anywhere;
}
body.app-page .dps-skill-guide-caveat a { color:#6d28d9; font-weight:750; }
body.app-page .dps-skill-empty {
    padding:12px; margin:0; color:#64748b;
    font-size:12px; grid-column:1/-1;
}
body.app-page .dps-skill-guide-source:focus-visible,
body.app-page .dps-skill-guide-levels summary:focus-visible {
    outline:3px solid #a78bfa; outline-offset:3px;
}
@media (max-width:960px) {
    body.app-page .dps-skill-guide-cards { grid-template-columns:1fr; }
}
@media (max-width:520px) {
    body.app-page .dps-skill-guide-card { gap:10px; padding:10px; }
    body.app-page .dps-skill-guide-icon-frame {
        flex-basis:54px; width:54px; height:54px; border-radius:10px;
    }
    body.app-page .dps-skill-guide-card-title strong { font-size:12px; }
    body.app-page .dps-skill-guide-content p { font-size:11px; }
    body.app-page .dps-skill-guide-heading { gap:8px; }
    body.app-page .dps-skill-guide-source { font-size:11px; min-height:35px; }
}

/* Verified v2.0.14 server resource badge; native combat assumptions retain their own source versions. */
body.app-page .dps-current-version{
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;
  margin:12px 0 0;padding:10px 13px;
  width:fit-content;max-width:100%;
  border:1px solid var(--ui-border);
  border-radius:10px;background:var(--ui-surface);
  color:var(--ui-muted);font-size:12px;line-height:1.6;
}
body.app-page .dps-current-version strong{
  color:var(--ui-heading);font-size:12px;font-weight:900;white-space:normal;
}
body.app-page .dps-current-version span{color:var(--ui-muted);font-size:11px;}
@media(max-width:520px){
  body.app-page .dps-current-version{gap:4px;margin-top:9px;padding:9px 10px}
}

/* 2026-10-09: Keep the method-toggle anchor stable when <details> opens.
   Previously .data-status-text had intrinsic auto width: its closed summary
   occupied ~425px while expanded content stretched it to >1100px. */
body.app-page .page-wrapper .data-status.community > .data-status-text {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}
body.app-page .dps-method-details {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
body.app-page .dps-method-details > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    justify-content: stretch;
    column-gap: 14px;
    row-gap: 7px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
body.app-page .dps-method-summary {
    min-width: 0;
    width: 100%;
}
body.app-page .dps-method-toggle {
    justify-self: end;
    flex: none;
    box-sizing: border-box;
    white-space: nowrap;
}
@media(max-width: 550px) {
    body.app-page .dps-method-details > summary {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }
    body.app-page .dps-method-toggle {
        justify-self: end;
    }
}


/* Watt: compact, accessible manual mode-switch delay editor. */
body.app-page #watt-swap-pause-control[hidden] { display: none !important; }
body.app-page .watt-pause-control {
    min-width: 0;
    padding: 14px 15px 12px;
    border: 1px solid #ddd6fe;
    border-radius: 14px;
    background: linear-gradient(155deg, #faf8ff 0%, #fff 80%);
}
body.app-page .watt-pause-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
body.app-page .watt-pause-heading-copy { min-width: 0; }
body.app-page .watt-pause-title {
    display: block;
    color: #312e81;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.45;
}
body.app-page .watt-pause-subtitle {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
}
body.app-page .watt-pause-value {
    flex: 0 0 auto;
    min-width: 64px;
    box-sizing: border-box;
    padding: 7px 10px;
    border: 1px solid #ddd6fe;
    border-radius: 9px;
    background: #f3efff;
    color: #5b21b6;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
body.app-page .watt-pause-main-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    align-items: center;
    gap: 12px;
}
body.app-page .watt-pause-range {
    width: 100%;
    min-width: 0;
    height: 36px;
    margin: 0;
    padding: 0;
    accent-color: #7c3aed;
    cursor: pointer;
    touch-action: pan-y;
}
body.app-page .watt-pause-exact-label {
    display: grid;
    gap: 2px;
    min-width: 0;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}
body.app-page .watt-pause-exact-field {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
}
body.app-page .watt-pause-exact-field:focus-within {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
body.app-page .watt-pause-exact-field input {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    padding: 4px 3px 4px 8px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    text-align: right;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
body.app-page .watt-pause-exact-field > span {
    padding: 0 8px 0 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}
body.app-page .watt-pause-presets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}
body.app-page .watt-pause-preset {
    box-sizing: border-box;
    min-height: 33px;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
body.app-page .watt-pause-preset:hover { background: #f8f5ff; border-color: #a78bfa; }
body.app-page .watt-pause-preset[aria-pressed="true"] {
    border-color: #7c3aed;
    background: #ede9fe;
    color: #5b21b6;
}
body.app-page .watt-pause-preset:focus-visible,
body.app-page .watt-pause-range:focus-visible {
    outline: 3px solid rgba(124,58,237,.4);
    outline-offset: 2px;
}
body.app-page .watt-pause-feedback {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
body.app-page .watt-pause-details {
    margin-top: 5px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}
body.app-page .watt-pause-details summary {
    width: fit-content;
    color: #6d28d9;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}
body.app-page .watt-pause-details p {
    margin: 6px 0 2px;
}
@media (max-width: 390px) {
    body.app-page .watt-pause-control { padding: 12px; }
    body.app-page .watt-pause-main-controls { grid-template-columns: minmax(0, 1fr) 76px; gap: 8px; }
    body.app-page .watt-pause-preset { flex: 1 0 auto; padding: 6px 7px; }
}
@media (prefers-reduced-motion: reduce) {
    body.app-page .watt-pause-preset { transition: none; }
}


/* Watt: card-based mode selector with original select as source of truth. */
body.app-page #watt-mode-control.watt-mode-control,
body.app-page #watt-energy-control.watt-energy-control {
    box-sizing: border-box;
    min-width: 0;
    border: 1px solid #ddd6fe;
    border-radius: 14px;
    background: linear-gradient(155deg, #faf8ff, #fff 82%);
    padding: 14px;
}
body.app-page .watt-mode-control { position: relative; }
body.app-page .watt-mode-heading,
body.app-page .watt-energy-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px 8px;
    min-width: 0;
}
body.app-page .watt-mode-heading > strong,
body.app-page .watt-energy-heading > label {
    font-size: 13px;
    font-weight: 850;
    line-height: 1.4;
    color: #312e81;
}
body.app-page .watt-mode-manual {
    padding: 4px 8px;
    border-radius: 999px;
    background: #ede9fe;
    color: #6d28d9;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}
body.app-page .watt-mode-intro {
    margin: 5px 0 10px;
    font-size: 11px;
    line-height: 1.5;
    color: #64748b;
}
body.app-page .watt-mode-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
body.app-page .watt-mode-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}
body.app-page .watt-mode-option {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    gap: 5px;
    min-width: 0;
    min-height: 73px;
    padding: 11px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 11px;
    background: #fff;
    color: #334155;
    font: inherit;
    text-align: left;
    line-height: 1.35;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
body.app-page .watt-mode-option-title {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.3;
    white-space: nowrap;
}
body.app-page .watt-mode-option small {
    color: #64748b;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.45;
    text-wrap: balance;
}
body.app-page .watt-mode-option[aria-pressed="true"] {
    border-color: #7c3aed;
    background: #f3efff;
    box-shadow: inset 0 0 0 1px rgba(124,58,237,.18);
    color: #5b21b6;
}
body.app-page .watt-mode-option[data-watt-mode="release"][aria-pressed="true"] {
    border-color: #ea580c;
    background: #fff7ed;
    box-shadow: inset 0 0 0 1px rgba(234,88,12,.13);
    color: #9a3412;
}
body.app-page .watt-mode-option:focus-visible {
    outline: 3px solid #a78bfa;
    outline-offset: 2px;
}
body.app-page .watt-mode-status {
    margin-top: 10px;
    padding: 10px 11px;
    border-left: 3px solid #8b5cf6;
    border-radius: 0 9px 9px 0;
    background: #f8f7ff;
}
body.app-page .watt-mode-control:has(.watt-mode-option[data-watt-mode="release"][aria-pressed="true"]) .watt-mode-status {
    border-left-color: #f97316;
    background: #fff8ee;
}
body.app-page .watt-mode-status strong {
    font-size: 11px;
    font-weight: 850;
    color: #312e81;
}
body.app-page .watt-mode-status p,
body.app-page .watt-energy-context {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
body.app-page .watt-mode-details,
body.app-page .watt-energy-details {
    margin-top: 9px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.55;
}
body.app-page .watt-mode-details summary,
body.app-page .watt-energy-details summary {
    width: fit-content;
    color: #6d28d9;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}
body.app-page .watt-mode-details p,
body.app-page .watt-energy-details p { margin: 6px 0 2px; }
body.app-page .watt-energy-heading #watt-energy-value {
    color: #6d28d9;
    font-size: 11px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}
body.app-page .watt-energy-input-wrap {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 145px;
    max-width: 100%;
    height: 40px;
    margin-top: 9px;
    padding: 0 11px;
    gap: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
}
body.app-page .watt-energy-input-wrap:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139,92,246,.12);
}
body.app-page .watt-energy-input-wrap input {
    min-width: 0;
    flex: 1 1 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 5px 1px;
    margin: 0;
    outline: none;
    border: 0;
    background: transparent;
    color: #0f172a;
    font: inherit;
    font-size: 15px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}
body.app-page .watt-energy-input-wrap > span {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
}
@media (max-width: 390px) {
    body.app-page #watt-mode-control.watt-mode-control,
    body.app-page #watt-energy-control.watt-energy-control { padding: 12px; }
    body.app-page .watt-mode-options { gap: 6px; }
    body.app-page .watt-mode-option { padding: 10px 8px; min-height: 70px; }
    body.app-page .watt-mode-option-title { font-size: 11px; gap: 3px; }
    body.app-page .watt-mode-option small { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    body.app-page .watt-mode-option { transition: none; }
}

/* Emily fairy: one active temporary buff. UI-only; the original select is still
   the persisted computational source of truth, unchanged for DPS_ENGINE. */
body.app-page #emily-current-fairy-control.dps-emily-fairy-panel{
    min-width:0;margin-top:10px;padding:14px;
    border:1px solid #ddd6fe;border-radius:15px;
    background:linear-gradient(150deg,#fbfaff 0%,#fff 63%);
}
body.app-page #emily-current-fairy-control[hidden]{display:none!important}
body.app-page .dps-emily-fairy-head{
    display:flex;align-items:flex-start;justify-content:space-between;
    gap:9px 12px;flex-wrap:wrap;min-width:0;margin-bottom:12px;
}
body.app-page .dps-emily-fairy-eyebrow{
    display:block;font-size:10px;font-weight:850;letter-spacing:.065em;
    color:#7c3aed;line-height:1.4;
}
body.app-page .dps-emily-fairy-head h3{
    font-size:14px;line-height:1.4;letter-spacing:-.02em;
    color:#312e81;font-weight:900;margin:4px 0;
}
body.app-page .dps-emily-fairy-head p{
    margin:0;color:#64748b;font-size:11px;line-height:1.5;
}
body.app-page .dps-emily-fairy-badge{
    align-self:flex-start;max-width:100%;padding:5px 8px;
    border:1px solid #ddd6fe;border-radius:7px;
    background:#f5f3ff;color:#6d28d9;
    font-size:10px;font-weight:850;line-height:1.45;
}
body.app-page .dps-emily-fairy-grid{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;min-width:0;
}
body.app-page .dps-emily-fairy-option{
    display:grid;grid-template-columns:30px minmax(0,1fr);
    align-items:center;column-gap:8px;row-gap:3px;
    position:relative;min-width:0;min-height:68px;
    padding:10px 9px;border-radius:11px;
    background:#fff;border:1px solid #e2e8f0;
    color:#334155;font:inherit;text-align:left;cursor:pointer;
    transition:border-color .14s ease,background .14s ease,box-shadow .14s ease;
}
body.app-page .dps-emily-fairy-option:hover{
    border-color:#c4b5fd;background:#faf5ff;
}
body.app-page .dps-emily-fairy-option.is-selected{
    border-color:#8b5cf6;background:#f5f3ff;
    box-shadow:inset 0 0 0 1px #8b5cf6;
}
body.app-page .dps-emily-fairy-option-icon{
    display:grid;place-items:center;
    width:30px;height:30px;border-radius:9px;
    background:#f1f5f9;color:#6d28d9;
    font-size:19px;font-weight:850;line-height:1;
}
body.app-page .dps-emily-fairy-option.is-selected .dps-emily-fairy-option-icon{
    background:#ede9fe;color:#5b21b6;
}
body.app-page .dps-emily-fairy-option-text{
    display:flex;flex-direction:column;align-items:flex-start;
    gap:3px;min-width:0;padding-right:5px;
}
body.app-page .dps-emily-fairy-option-text strong{
    font-size:12px;font-weight:900;line-height:1.35;
    color:#1e293b;overflow-wrap:anywhere;
}
body.app-page .dps-emily-fairy-option-text small{
    font-size:10px;font-weight:750;line-height:1.4;
    color:#64748b;overflow-wrap:anywhere;
}
body.app-page .dps-emily-fairy-option.is-selected .dps-emily-fairy-option-text strong{
    color:#5b21b6;
}
body.app-page .dps-emily-fairy-option-check{
    display:none;position:absolute;top:5px;right:6px;
    color:#7c3aed;font-size:10px;font-weight:900;
}
body.app-page .dps-emily-fairy-option.is-selected .dps-emily-fairy-option-check{
    display:block;
}
body.app-page .dps-emily-fairy-option:focus-visible{
    outline:3px solid #8b5cf6;outline-offset:2px;
}
body.app-page .dps-emily-fairy-current{
    display:grid;gap:4px;min-width:0;margin-top:11px;
    padding:12px 13px;border:1px solid #ddd6fe;border-radius:11px;
    background:#f8f7ff;
}
body.app-page .dps-emily-fairy-current>span{
    font-size:10px;font-weight:850;color:#7c3aed;
}
body.app-page .dps-emily-fairy-current strong{
    font-size:13px;font-weight:900;color:#312e81;
    line-height:1.4;overflow-wrap:anywhere;
}
body.app-page .dps-emily-fairy-current p{
    margin:0;font-size:11px;line-height:1.7;color:#475569;
    overflow-wrap:anywhere;
}
body.app-page .dps-emily-fairy-evidence{
    min-width:0;margin-top:11px;border:1px solid #e2e8f0;
    border-radius:10px;background:#fff;overflow:hidden;
}
body.app-page .dps-emily-fairy-evidence>summary{
    display:flex;align-items:center;gap:8px;
    list-style:none;min-height:42px;padding:10px 12px;
    color:#64748b;font-size:11px;font-weight:850;
    cursor:pointer;user-select:none;
}
body.app-page .dps-emily-fairy-evidence>summary::-webkit-details-marker{display:none}
body.app-page .dps-emily-fairy-evidence>summary span{
    margin-left:auto;font-size:16px;color:#7c3aed;line-height:1;
}
body.app-page .dps-emily-fairy-evidence[open]>summary{
    background:#faf8ff;border-bottom:1px solid #e2e8f0;color:#5b21b6;
}
body.app-page .dps-emily-fairy-evidence[open]>summary span{
    transform:rotate(180deg);
}
body.app-page .dps-emily-fairy-evidence>summary:focus-visible{
    outline:3px solid #a78bfa;outline-offset:-3px;
}
body.app-page .dps-emily-fairy-evidence-body{
    padding:11px 12px;overflow-wrap:anywhere;
}
body.app-page .dps-emily-fairy-evidence-body p{
    margin:0 0 9px;color:#64748b;font-size:11px;line-height:1.7;
}
body.app-page .dps-emily-fairy-evidence-body p:last-child{margin-bottom:0}
@media(max-width:600px){
    body.app-page #emily-current-fairy-control.dps-emily-fairy-panel{
        padding:11px;
    }
    body.app-page .dps-emily-fairy-grid{gap:7px}
    body.app-page .dps-emily-fairy-option{
        grid-template-columns:26px minmax(0,1fr);min-height:66px;
        padding:8px 7px;column-gap:7px;
    }
    body.app-page .dps-emily-fairy-option-icon{
        width:26px;height:26px;font-size:17px;
    }
    body.app-page .dps-emily-fairy-option-text strong{font-size:11px}
}
@media(max-width:360px){
    body.app-page .dps-emily-fairy-grid{grid-template-columns:1fr}
    body.app-page .dps-emily-fairy-option{
        min-height:48px;grid-template-columns:30px minmax(0,1fr);
    }
    body.app-page .dps-emily-fairy-option-text{
        flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:3px 7px;
    }
}
@media(prefers-reduced-motion:reduce){
    body.app-page .dps-emily-fairy-option{transition:none}
}

/* Vayne (mythic) movement controls: visual editors only. Engine is unchanged. */
body.app-page .dps-grid .vayne-motion-control {
    min-width:0;
    margin-bottom:12px;
    padding:15px;
    scroll-margin-top:94px;
    border:1px solid #e0d7fc;
    border-radius:15px;
    background:linear-gradient(150deg,#fcfbff,#fff 65%);
}
body.app-page .vayne-motion-control .vayne-motion-heading {
    display:flex; flex-wrap:wrap; gap:6px 9px;
    align-items:center; justify-content:space-between; margin-bottom:6px;
}
body.app-page .vayne-motion-kicker {
    color:#312e81; font-size:13px; font-weight:900; line-height:1.35;
    overflow-wrap:anywhere;
}
body.app-page .vayne-motion-tag {
    color:#6d28d9; padding:4px 7px;
    border:1px solid #e3d9fc; border-radius:999px;
    background:#f5f3ff; font-size:10px; font-weight:850;
}
body.app-page .vayne-motion-intro {
    margin:2px 0 13px; color:#64748b; font-size:11px; line-height:1.55;
}
body.app-page .vayne-motion-intro strong { color:#475569; }
body.app-page .vayne-motion-label-row {
    display:flex; align-items:baseline; justify-content:space-between;
    gap:8px; margin-bottom:8px;
}
body.app-page .vayne-motion-label-row label {
    color:#475569; font-size:12px; font-weight:800;
}
body.app-page .vayne-motion-label-row>strong {
    flex:0 0 auto; color:#6d28d9; font-size:13px; font-weight:900;
    font-variant-numeric:tabular-nums;
}
body.app-page .vayne-motion-input-row {
    display:flex; align-items:center; gap:11px;
    min-width:0; width:100%;
}
body.app-page .vayne-motion-input-row .vayne-motion-slider {
    flex:1 1 auto; min-width:0; width:100%; height:34px;
    margin:0; padding:0; cursor:pointer; accent-color:#7c3aed;
}
body.app-page .vayne-motion-number {
    flex:0 0 108px; display:flex; align-items:center;
    gap:3px; box-sizing:border-box; min-width:0; height:43px;
    padding:0 6px 0 10px;
    border:1px solid #cbd5e1; border-radius:10px;
    background:#fff;
}
body.app-page .vayne-motion-number:focus-within {
    border-color:#8b5cf6; box-shadow:0 0 0 3px rgba(139,92,246,.12);
}
body.app-page .vayne-motion-number input {
    flex:1 1 auto; min-width:0; width:100%; height:100%; box-sizing:border-box;
    margin:0; padding:4px 0; border:0!important; outline:0!important;
    box-shadow:none!important; background:transparent!important;
    color:#1f2937; font-family:inherit; font-size:15px; font-weight:900;
    font-variant-numeric:tabular-nums;
}
body.app-page .vayne-motion-number>span {
    flex:0 0 auto; color:#64748b; font-size:10px; font-weight:850;
}
body.app-page .vayne-motion-scale {
    display:flex; justify-content:space-between; width:calc(100% - 119px);
    padding:0 1px; color:#94a3b8; font-size:10px; font-weight:700;
    font-variant-numeric:tabular-nums;
}
body.app-page .vayne-motion-presets {
    display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px; margin-top:12px;
}
body.app-page .vayne-motion-presets button {
    min-width:0; min-height:36px;
    padding:7px 4px; border:1px solid #e2e8f0; border-radius:9px;
    background:#fff; color:#475569;
    font-family:inherit; font-size:11px; font-weight:850;
    font-variant-numeric:tabular-nums; cursor:pointer;
    transition:border-color .15s ease,background .15s ease;
}
body.app-page .vayne-motion-presets button:hover { border-color:#a78bfa; background:#faf7ff; }
body.app-page .vayne-motion-presets button[aria-pressed="true"] {
    border-color:#8b5cf6; background:#ede9fe;
    color:#5b21b6; box-shadow:inset 0 0 0 1px rgba(139,92,246,.15);
}
body.app-page .vayne-motion-hint {
    margin:12px 0 0; color:#64748b; font-size:10px; line-height:1.6;
    overflow-wrap:anywhere; word-break:keep-all;
}
body.app-page .vayne-motion-summary {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px; margin-top:14px;
}
body.app-page .vayne-motion-summary>div {
    display:flex; flex-direction:column; gap:5px;
    min-width:0; padding:11px 10px;
    border:1px solid #e4dcfb; border-radius:10px;
    background:#f7f5ff;
}
body.app-page .vayne-motion-summary>div>span {
    color:#64748b; font-size:10px; font-weight:800;
}
body.app-page .vayne-motion-summary>div>strong {
    color:#4c1d95; font-size:17px; font-weight:900;
    font-variant-numeric:tabular-nums; overflow-wrap:anywhere;
}
body.app-page .vayne-motion-summary>p {
    grid-column:1/-1; margin:1px 2px 0;
    color:#64748b; font-size:10px; line-height:1.6;
    overflow-wrap:anywhere; word-break:keep-all;
}
body.app-page .vayne-motion-details { margin-top:12px; font-size:11px; }
body.app-page .vayne-motion-details>summary {
    color:#6d28d9; font-size:11px; font-weight:800; cursor:pointer;
    width:fit-content; padding:5px 0;
}
body.app-page .vayne-motion-details>p {
    margin:6px 0 0; color:#64748b; font-size:10px; line-height:1.65;
    overflow-wrap:anywhere; word-break:keep-all;
}
body.app-page .vayne-motion-control button:focus-visible,
body.app-page .vayne-motion-control input[type="range"]:focus-visible,
body.app-page .vayne-motion-details>summary:focus-visible {
    outline:3px solid #a78bfa; outline-offset:2px;
}
@media(max-width:390px) {
    body.app-page .dps-grid .vayne-motion-control { padding:12px; }
    body.app-page .vayne-motion-input-row { gap:7px; }
    body.app-page .vayne-motion-number { flex-basis:101px; }
    body.app-page .vayne-motion-scale { width:calc(100% - 108px); }
    body.app-page .vayne-motion-presets { gap:5px; }
    body.app-page .vayne-motion-presets button { font-size:10px; }
    body.app-page .vayne-motion-summary>div>strong { font-size:15px; }
}
@media(prefers-reduced-motion:reduce) {
    body.app-page .vayne-motion-presets button { transition:none; }
}

/* Vayne: movement-timed DPS becomes the primary result only after a
   nonzero completed-moves input; attack-state per-hit comparisons remain. */
body.app-page .vayne-motion-summary .vayne-motion-dps-result {
    grid-column:1/-1; display:flex; flex-direction:column; gap:5px;
    border-color:#b7a0f2; background:#ede9fe;
}
body.app-page .vayne-motion-summary .vayne-motion-dps-result[hidden] { display:none!important; }
body.app-page .vayne-motion-dps-result>span {
    display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 10px;
    color:#4c1d95; font-size:12px; font-weight:900;
}
body.app-page .vayne-motion-dps-result>span small {
    color:#64748b; font-size:10px; font-weight:700;
}
body.app-page .vayne-motion-summary .vayne-motion-dps-result>strong {
    color:#5b21b6; font-size:clamp(21px,5vw,27px);
    font-variant-numeric:tabular-nums; overflow-wrap:anywhere;
}
body.app-page .vayne-motion-dps-result>small {
    color:#64748b; font-size:10px; line-height:1.5; word-break:keep-all;
}
body.app-page .dps-hero .vayne-avg-result {
    display:flex; flex-direction:column; align-items:center;
    gap:8px; min-width:0; max-width:100%;
}
body.app-page .dps-hero .vayne-avg-main {
    max-width:100%; color:#fff; line-height:1.05;
    font-size:clamp(1.9rem,5.5vw,3.3rem); font-weight:950;
    font-variant-numeric:tabular-nums; letter-spacing:-.05em;
    overflow-wrap:anywhere;
}
body.app-page .dps-hero .vayne-avg-unit {
    color:#ede9fe; font-size:11px; font-weight:750;
    line-height:1.55; letter-spacing:normal; word-break:keep-all;
}
body.app-page .dps-hero .vayne-avg-compare {
    width:100%; max-width:560px; margin-top:8px;
    padding-top:15px; border-top:1px solid rgba(255,255,255,.25);
    font-size:11px; font-weight:750; letter-spacing:normal;
}
body.app-page .dps-hero .vayne-avg-compare>span {
    display:block; margin-bottom:8px; color:#ede9fe;
}
body.app-page .dps-hero .vayne-avg-compare .dps-dual-values {
    width:100%; font-size:initial;
}
body.app-page .dps-hero .vayne-avg-compare .dps-dual-values strong {
    font-size:clamp(1.1rem,2.1vw,1.65rem);
}
body.app-page .dps-hero .vayne-avg-compare .dps-dual-values small { font-size:11px; }
@media(max-width:390px) {
    body.app-page .dps-hero .vayne-avg-compare .dps-dual-values {
        grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px;
    }
    body.app-page .dps-hero .vayne-avg-compare .dps-dual-values>span { padding:9px 6px; }
    body.app-page .dps-hero .vayne-avg-compare .dps-dual-values strong { font-size:1.12rem; }
}

/* Source-safe APK 2.0.14 skin image cropping. 165 different alpha bounding boxes.
   Image pixels/files never changed; JS supplies per-image fitting/centering. */
#skin-selector-container[hidden] { display:none!important; }
#skin-selector-container .skin-option-btn{
    display:inline-flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:6px;
    min-width:76px;
    max-width:132px;
    min-height:88px;
    padding:8px 8px 10px;
    text-align:center;
    white-space:normal;
    overflow-wrap:anywhere;
}
#skin-selector-container .skin-option-btn[data-skin-id="base"] {
    min-height:88px;
}
#skin-selector-container .skin-option-btn .skin-thumb {
    width:54px;
    height:54px;
    flex:0 0 54px;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
    border-radius:10px;
    background:rgba(255,255,255,.12);
}
#skin-selector-container .skin-option-btn .skin-thumb img {
    display:block;
    width:100%;
    height:100%;
    flex:0 0 100%;
    object-fit:contain;
    max-width:none;
    max-height:none;
    transform:translate(var(--skin-shift-x,0%), var(--skin-shift-y,0%))
              scale(var(--skin-zoom,1));
    transform-origin:center;
    transition:transform .18s ease;
    border-radius:0;
    background:transparent;
}
#skin-selector-container .skin-option-btn>span:not(.skin-thumb) {
    font-size:10px;
    line-height:1.45;
}
#skin-selector-container .skin-option-btn:focus-visible{
    outline:2px solid #d8b4fe;
    outline-offset:3px;
}
#skin-selector-source-note.apk-skin-source-note {
    display:block;
    flex:0 0 100%;
    width:100%;
    font-size:10px;
    color:#ede9fe;
    line-height:1.7;
    text-align:center;
    margin-top:3px;
}
/* Keep the source note below the scrollable buttons instead of
   letting its 100%-width flex item create a second row. */
#skin-selector-source-note[hidden] { display:none!important; }
#skin-selector-source-note.apk-skin-source-note { width:100%; max-width:100%; }

/* Mobile: keep the skin BUTTONS on one horizontal row. More than three
   skins are reachable by swiping left/right, without page-wide overflow.
   Override the old HTML inline flex-wrap/justify-content rules. */
@media (max-width:767px) {
    body.app-page #skin-selector-container:not([hidden]) {
        display:flex!important;
        flex-flow:row nowrap!important;
        justify-content:flex-start!important;
        align-items:stretch;
        align-self:stretch;
        box-sizing:border-box;
        width:100%;
        max-width:100%;
        min-width:0;
        flex:0 0 auto;
        overflow-x:auto;
        overflow-y:hidden;
        scroll-snap-type:x proximity;
        scroll-padding-inline:5px;
        overscroll-behavior-x:contain;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:thin;
        padding:4px 4px 12px;
        gap:8px!important;
    }
    body.app-page #skin-selector-container .skin-option-btn {
        flex:0 0 86px;
        box-sizing:border-box;
        min-width:86px;
        max-width:86px;
        width:86px;
        margin:0;
        scroll-snap-align:start;
    }
    body.app-page #skin-selector-source-note {
        flex:0 0 auto;
        margin-top:0;
    }
}
/* Large portrait is independently aligned with the same per-skin alpha bbox.
   The original large hero container already clips overflow to rounded corners. */
.dps-hero .hero-portrait-large #res-hero-img.is-apk-skin-cropped {
    transform:translate(var(--skin-shift-x,0%), var(--skin-shift-y,0%))
              scale(var(--skin-zoom,1));
    transform-origin:center;
    transition:transform .18s ease;
}
@media(max-width:390px){
    #skin-selector-container .skin-option-btn{
        min-width:72px;
        max-width:110px;
        padding:7px 6px 9px;
    }
}

@media (max-width:390px) {
    body.app-page #skin-selector-container .skin-option-btn {
        flex:0 0 80px;
        width:80px;
        min-width:80px;
        max-width:80px;
    }
}


/* As in the field board simulator: suppress the broken-image icon while a
   failed APK portrait is being retried or replaced by original/base artwork. */
body.app-page .dps-hero img.is-image-retrying,
body.app-page .unit-list img.is-image-retrying { opacity:0; }


/* Fairy King Emily: two independent, persisted native checkbox conditions.
   Appearance only — the existing checkbox IDs/defaults drive DPS_ENGINE. */
body.app-page #fairy-king-emily-control.dps-fairy-king-panel {
    min-width:0;margin-top:10px;padding:14px;
    border:1px solid #ddd6fe;border-radius:15px;
    background:linear-gradient(150deg,#fbfaff 0%,#fff 66%);
}
body.app-page #fairy-king-emily-control[hidden]{display:none!important}
body.app-page .dps-fairy-king-head {
    display:flex;align-items:flex-start;justify-content:space-between;
    flex-wrap:wrap;gap:9px 12px;min-width:0;margin-bottom:12px;
}
body.app-page .dps-fairy-king-head>div{flex:1 1 190px;min-width:0}
body.app-page .dps-fairy-king-eyebrow {
    display:block;color:#7c3aed;font-size:10px;font-weight:850;
    line-height:1.4;letter-spacing:.065em;
}
body.app-page .dps-fairy-king-head h3 {
    margin:4px 0;color:#312e81;font-size:14px;font-weight:900;
    line-height:1.4;letter-spacing:-.02em;overflow-wrap:anywhere;
}
body.app-page .dps-fairy-king-head p {
    margin:0;color:#64748b;font-size:11px;line-height:1.55;
}
body.app-page .dps-fairy-king-head-tag {
    align-self:flex-start;max-width:100%;padding:5px 8px;
    border:1px solid #ddd6fe;border-radius:7px;
    background:#f5f3ff;color:#6d28d9;font-size:10px;font-weight:850;
    white-space:nowrap;
}
body.app-page .dps-fairy-king-options {
    display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr));
    gap:9px;min-width:0;
}
body.app-page .dps-fairy-king-option {
    display:grid;grid-template-columns:21px minmax(0,1fr);
    align-content:start;align-items:start;gap:6px 10px;
    min-width:0;min-height:102px;padding:13px 12px;
    box-sizing:border-box;border:1px solid #e2e8f0;
    border-radius:11px;background:#fff;color:#334155;
    cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s;
}
body.app-page .dps-fairy-king-option:hover {border-color:#c4b5fd;background:#fdfbff}
body.app-page .dps-fairy-king-option:has(input:checked) {
    border-color:#8b5cf6;background:#f5f3ff;
    box-shadow:inset 0 0 0 1px #8b5cf6;
}
body.app-page .dps-fairy-king-option:focus-within {
    outline:3px solid #a78bfa;outline-offset:2px;
}
body.app-page .dps-fairy-king-option input[type=checkbox] {
    width:20px;height:20px;margin:1px 0 0;accent-color:#7c3aed;
    cursor:pointer;
}
body.app-page .dps-fairy-king-option-copy {
    display:flex;flex-direction:column;gap:5px;min-width:0;
}
body.app-page .dps-fairy-king-option-copy strong {
    color:#1e293b;font-size:12px;font-weight:900;
    line-height:1.4;overflow-wrap:anywhere;
}
body.app-page .dps-fairy-king-option-copy small {
    color:#64748b;font-size:11px;font-weight:650;
    line-height:1.6;overflow-wrap:anywhere;
}
body.app-page .dps-fairy-king-option-state {
    grid-column:2;justify-self:start;padding:4px 7px;
    border:1px solid #e2e8f0;border-radius:6px;
    background:#f8fafc;color:#64748b;
    font-size:10px;line-height:1.4;font-weight:850;
}
body.app-page .dps-fairy-king-option-state .state-on{display:none}
body.app-page .dps-fairy-king-option input:checked ~ .dps-fairy-king-option-state {
    border-color:#ddd6fe;background:#ede9fe;color:#6d28d9;
}
body.app-page .dps-fairy-king-option input:checked ~ .dps-fairy-king-option-state .state-off {display:none}
body.app-page .dps-fairy-king-option input:checked ~ .dps-fairy-king-option-state .state-on {display:inline}
body.app-page .dps-fairy-king-evidence {
    min-width:0;margin-top:11px;border:1px solid #e2e8f0;
    border-radius:10px;background:#fff;overflow:hidden;
}
body.app-page .dps-fairy-king-evidence>summary {
    display:flex;align-items:center;gap:8px;min-height:42px;
    padding:10px 12px;list-style:none;
    color:#64748b;font-size:11px;font-weight:850;
    cursor:pointer;user-select:none;
}
body.app-page .dps-fairy-king-evidence>summary::-webkit-details-marker{display:none}
body.app-page .dps-fairy-king-evidence>summary span {
    margin-left:auto;color:#7c3aed;font-size:16px;line-height:1;
}
body.app-page .dps-fairy-king-evidence[open]>summary {
    background:#faf8ff;border-bottom:1px solid #e2e8f0;color:#5b21b6;
}
body.app-page .dps-fairy-king-evidence[open]>summary span{transform:rotate(180deg)}
body.app-page .dps-fairy-king-evidence>summary:focus-visible {
    outline:3px solid #a78bfa;outline-offset:-3px;
}
body.app-page .dps-fairy-king-evidence>div{padding:11px 12px;overflow-wrap:anywhere}
body.app-page .dps-fairy-king-evidence p {
    margin:0 0 9px;color:#64748b;font-size:11px;line-height:1.7;
}
body.app-page .dps-fairy-king-evidence p:last-child{margin-bottom:0}
@media(max-width:600px){
    body.app-page #fairy-king-emily-control.dps-fairy-king-panel{padding:11px}
    body.app-page .dps-fairy-king-option{min-height:0;padding:12px 10px}
}
@media(prefers-reduced-motion:reduce){
    body.app-page .dps-fairy-king-option{transition:none}
}

/* Sage Kun: target-specific revolving fireball hit-rate editor (UI only). */
body.app-page .dps-grid .sage-flame-control{
    min-width:0; padding:15px; margin-bottom:12px;
    border:1px solid #fed7aa; border-radius:15px;
    background:linear-gradient(145deg,#fff7ed,#fff 66%);
}
body.app-page .dps-grid .sage-flame-control[hidden]{display:none!important}
body.app-page .sage-flame-header{
    display:flex; flex-wrap:wrap; align-items:center;
    justify-content:space-between; gap:6px 9px; margin-bottom:7px;
}
body.app-page .sage-flame-title{
    color:#7c2d12; font-size:13px; font-weight:900; line-height:1.4;
}
body.app-page .sage-flame-badge{
    color:#9a3412; border:1px solid #fed7aa; border-radius:999px;
    padding:4px 8px; background:#fff7ed; font-size:10px; font-weight:850;
}
body.app-page .sage-flame-intro{
    margin:2px 0 14px; color:#64748b; font-size:11px; line-height:1.55;
    word-break:keep-all;
}
body.app-page .sage-flame-intro strong{color:#475569}
body.app-page .sage-flame-label-row{
    display:flex; align-items:baseline; justify-content:space-between;
    gap:8px; margin-bottom:8px;
}
body.app-page .sage-flame-label-row label{
    color:#475569; font-size:12px; font-weight:800;
}
body.app-page .sage-flame-label-row>strong{
    flex:0 0 auto; color:#c2410c; font-size:13px; font-weight:900;
    font-variant-numeric:tabular-nums; white-space:nowrap;
}
body.app-page .sage-flame-input-row{
    display:flex; align-items:center; width:100%; min-width:0; gap:11px;
}
body.app-page .sage-flame-input-row>input[type=range]{
    flex:1 1 auto; min-width:0; width:100%; height:34px;
    margin:0; padding:0; cursor:pointer; accent-color:#ea580c;
}
body.app-page .sage-flame-number{
    flex:0 0 116px; box-sizing:border-box; min-width:0; height:43px;
    display:flex; align-items:center; gap:4px; padding:0 8px 0 9px;
    border:1px solid #cbd5e1; border-radius:10px; background:#fff;
}
body.app-page .sage-flame-number:focus-within{
    border-color:#f97316; box-shadow:0 0 0 3px rgba(249,115,22,.13);
}
body.app-page .sage-flame-number input{
    flex:1 1 auto; min-width:0; width:100%; height:100%;
    box-sizing:border-box; margin:0; padding:4px 0;
    border:0!important; outline:0!important; box-shadow:none!important;
    background:transparent!important; color:#1f2937;
    font-family:inherit; font-size:15px; font-weight:900;
    font-variant-numeric:tabular-nums;
}
body.app-page .sage-flame-number>span{
    flex:0 0 auto; color:#64748b; font-size:10px; font-weight:850;
    white-space:nowrap;
}
body.app-page .sage-flame-scale{
    width:calc(100% - 127px); display:flex;
    justify-content:space-between; padding:0 2px;
    color:#94a3b8; font-size:10px; font-weight:700;
    font-variant-numeric:tabular-nums;
}
body.app-page .sage-flame-presets{
    display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px; margin-top:12px;
}
body.app-page .sage-flame-presets button{
    min-width:0; min-height:36px; border:1px solid #e2e8f0;
    border-radius:9px; padding:7px 4px; background:#fff;
    color:#475569; font-family:inherit; font-size:11px; font-weight:850;
    font-variant-numeric:tabular-nums; cursor:pointer;
}
body.app-page .sage-flame-presets button:hover{
    border-color:#fb923c; background:#fff7ed;
}
body.app-page .sage-flame-presets button[aria-pressed=true]{
    border-color:#f97316; background:#ffedd5; color:#9a3412;
    box-shadow:inset 0 0 0 1px rgba(249,115,22,.1);
}
body.app-page .sage-flame-help{
    margin:12px 0 0; color:#64748b; font-size:10px; line-height:1.65;
    overflow-wrap:anywhere; word-break:keep-all;
}
body.app-page .sage-flame-help strong{color:#9a3412}
body.app-page .sage-flame-details{
    margin-top:9px; color:#64748b; font-size:10px; line-height:1.65;
}
body.app-page .sage-flame-details>summary{
    width:fit-content; min-height:28px; display:list-item;
    padding:5px 0; color:#c2410c; font-size:11px; font-weight:800;
    cursor:pointer;
}
body.app-page .sage-flame-details>p{
    margin:4px 0 0; line-height:1.65; word-break:keep-all;
}
body.app-page .sage-flame-control button:focus-visible,
body.app-page .sage-flame-control input[type=range]:focus-visible,
body.app-page .sage-flame-details>summary:focus-visible{
    outline:3px solid #fb923c; outline-offset:2px;
}
@media(max-width:390px){
    body.app-page .dps-grid .sage-flame-control{padding:12px}
    body.app-page .sage-flame-input-row{gap:7px}
    body.app-page .sage-flame-number{flex-basis:108px}
    body.app-page .sage-flame-scale{width:calc(100% - 115px)}
    body.app-page .sage-flame-presets{gap:5px}
    body.app-page .sage-flame-presets button{font-size:10px}
}

/* 사신 다이안: original numeric option with slider and quick-pick UI editors. */
body.app-page #reaper-ultimate-casts-control[hidden] { display: none !important; }
body.app-page .dps-reaper-casts-control {
    min-width: 0;
    padding: 14px;
    border: 1px solid #ddd6fe;
    border-radius: 13px;
    background: linear-gradient(145deg, #faf8ff, #fff 80%);
}
body.app-page .dps-reaper-casts-control > .control-label {
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
}
body.app-page .dps-reaper-casts-control > .control-label > label {
    min-width: 0;
    color: #312e81;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.5;
}
body.app-page #reaper-ultimate-casts-value {
    flex: 0 0 auto;
    padding: 7px 9px;
    border: 1px solid #ddd6fe;
    border-radius: 9px;
    background: #ede9fe;
    color: #5b21b6;
    font-size: 14px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
body.app-page .dps-reaper-casts-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 11px;
    align-items: center;
    min-width: 0;
}
body.app-page #reaper-ultimate-casts-slider {
    width: 100%;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0;
    accent-color: #7c3aed;
    cursor: pointer;
    touch-action: pan-y;
}
body.app-page .dps-reaper-casts-exact-label {
    display: grid;
    gap: 3px;
    min-width: 0;
    color: #64748b;
    font-size: 10px;
    font-weight: 750;
}
body.app-page .dps-reaper-casts-exact-field {
    display: flex;
    align-items: center;
    height: 40px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
}
body.app-page .dps-reaper-casts-exact-field:focus-within {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
body.app-page .dps-reaper-casts-exact-field input {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    padding: 4px 0 4px 7px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1e293b;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
body.app-page .dps-reaper-casts-exact-field > span {
    flex: 0 0 auto;
    padding: 0 6px 0 4px;
    color: #64748b;
    font-size: 10px;
    font-weight: 750;
}
body.app-page .dps-reaper-casts-presets {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    margin-top: 11px;
}
body.app-page .dps-reaper-casts-presets > button {
    min-width: 0;
    min-height: 38px;
    box-sizing: border-box;
    padding: 6px 3px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
    cursor: pointer;
}
body.app-page .dps-reaper-casts-presets > button[aria-pressed="true"] {
    border-color: #7c3aed;
    background: #ede9fe;
    color: #5b21b6;
}
body.app-page .dps-reaper-casts-presets > button:hover {
    border-color: #a78bfa;
    background: #f8f5ff;
}
body.app-page .dps-reaper-casts-presets > button:focus-visible,
body.app-page #reaper-ultimate-casts-slider:focus-visible {
    outline: 3px solid rgba(124,58,237,.4);
    outline-offset: 2px;
}
body.app-page .dps-reaper-casts-control > .control-help {
    display: block;
    margin-top: 10px;
}
@media (max-width: 390px) {
    body.app-page .dps-reaper-casts-control { padding: 11px; }
    body.app-page .dps-reaper-casts-editor {
        grid-template-columns: minmax(0, 1fr) 94px;
        gap: 8px;
    }
    body.app-page .dps-reaper-casts-presets {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 사신 개구리(15009) -> 진화형 사신 다이안(15109): shared Lv19~25 milestones. */
body.app-page #grim-ascended-note-control {
    padding: 12px;
    border: 1px solid #d8dce8;
    border-radius: 11px;
    background: #f8fafc;
}
body.app-page #grim-ascended-note-control[hidden] { display: none; }
body.app-page #grim-ascended-note-control > strong {
    display: block;
    font-size: 12px;
    color: #334155;
    margin-bottom: 7px;
}
body.app-page #grim-ascended-note-control > .control-help {
    display: block;
    margin: 0 0 8px;
    line-height: 1.5;
}
body.app-page #grim-open-reaper {
    display: block;
    width: 100%;
    min-height: 40px;
    margin-top: 10px;
    padding: 9px;
    border: 1px solid #8b5cf6;
    border-radius: 8px;
    background: #f5f3ff;
    color: #5b21b6;
    font: inherit;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
}
body.app-page #grim-open-reaper:hover { background: #ede9fe; }
body.app-page #grim-open-reaper:focus-visible {
    outline: 3px solid rgba(124,58,237,.4);
    outline-offset: 2px;
}

/* Water Spirit uses the same hero comparison tiles as Vayne. */
body.app-page .water-spirit-dps-comparison[hidden],
body.app-page #res-total[hidden] { display: none; }
body.app-page .water-spirit-dps-comparison { width: 100%; }
body.app-page .water-spirit-dps-comparison p {
    margin-top: 12px; color: #ede9fe; font-size: 11px;
    font-weight: 650; line-height: 1.6; letter-spacing: normal;
}
