body.damage-page{margin:0;min-height:100vh;background:linear-gradient(145deg,#eef2ff,#faf5ff 48%,#fff1f2);color:#0f172a;font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.damage-shell{width:min(1180px,calc(100% - 28px));margin:84px auto 48px}.damage-hero{text-align:center;margin-bottom:20px}.damage-hero .eyebrow{margin:0 0 5px;color:#7c3aed;font-size:12px;font-weight:900;letter-spacing:.14em}.damage-hero h1{margin:0;color:#312e81!important;background:none!important;-webkit-text-fill-color:#312e81!important;font-size:clamp(2rem,4vw,3rem)!important;font-weight:950!important;letter-spacing:-.05em!important;text-shadow:none!important}.damage-hero>p:last-child{max-width:720px;margin:10px auto 0;color:#64748b;font-weight:600;line-height:1.65}.damage-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.7fr);gap:18px;align-items:start;margin-top:18px}.damage-form-card,.damage-result-card{border:1px solid rgba(255,255,255,.85);border-radius:22px;background:rgba(255,255,255,.84);box-shadow:0 18px 45px rgba(76,29,149,.08);backdrop-filter:blur(14px)}.damage-form-card{padding:clamp(18px,3vw,28px)}.damage-form-card h2{margin:24px 0 12px;color:#4c1d95!important;background:none!important;-webkit-text-fill-color:#4c1d95!important;font-size:1rem!important;font-weight:900!important;letter-spacing:-.025em!important;text-shadow:none!important}.damage-form-card h2:first-child{margin-top:0}.field-grid{display:grid;gap:11px}.field-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.field-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field-grid label{display:block;min-width:0}.field-grid label>span{display:block;margin-bottom:5px;color:#475569;font-size:12px;font-weight:800;line-height:1.35}.field-grid input,.field-grid select{width:100%;min-height:44px;box-sizing:border-box;padding:9px 11px;border:1px solid #d8dee9;border-radius:10px;background:#fff;color:#0f172a;font-family:inherit;font-size:16px;font-weight:650;line-height:1.35;outline:none}.field-grid input:focus,.field-grid select:focus{border-color:#8b5cf6;box-shadow:0 0 0 3px rgba(139,92,246,.1)}.auto-base{display:flex;justify-content:space-between;gap:12px;margin-top:10px;padding:10px 12px;border-radius:10px;background:#f5f3ff;color:#5b21b6;font-size:13px;font-weight:750}.auto-base strong{font-size:16px}.toggle-row{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}.toggle-row label{display:flex;align-items:center;gap:7px;min-height:40px;padding:0 11px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#475569;font-size:12px;font-weight:750}.toggle-row input{width:17px;height:17px}.damage-result-card{position:sticky;top:84px;padding:24px}.result-kicker{margin:0;color:#7c3aed;font-size:12px;font-weight:900;letter-spacing:.08em}.final-number{margin-top:6px;color:#312e81;font-size:clamp(2.3rem,5vw,3.8rem);font-weight:950;line-height:1;letter-spacing:-.055em;overflow-wrap:anywhere}.result-unit{margin:5px 0 20px;color:#64748b;font-size:13px;font-weight:700}.breakdown{margin:0}.breakdown>div{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid #eef2f7}.breakdown dt{color:#64748b;font-size:12px;font-weight:700}.breakdown dd{margin:0;color:#1e293b;font-size:13px;font-weight:850;text-align:right}.breakdown .strong dt,.breakdown .strong dd{color:#5b21b6;font-weight:900}.result-note{min-height:20px;margin:14px 0;color:#7c2d12;font-size:11px;font-weight:650;line-height:1.55}.dps-link{display:flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box;padding:11px 12px;border-radius:10px;background:#ede9fe;color:#5b21b6;font-size:12px;font-weight:850;text-align:center;text-decoration:none}.dps-link:hover{background:#ddd6fe}@media(max-width:900px){.damage-layout{grid-template-columns:1fr}.damage-result-card{position:static}.field-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.damage-shell{width:min(100% - 16px,1180px);margin-top:74px}.field-grid.two,.field-grid.three{grid-template-columns:1fr}.damage-form-card,.damage-result-card{border-radius:16px}.damage-result-card{padding:18px}}

.stat-source{margin:7px 2px 0;color:#64748b;font-size:12px;font-weight:700;line-height:1.5}

/* Basic damage UI refinements (2026-10-09) ---------------------------- */
/* Author styles setting display on labels must never override [hidden]. */
body.damage-page [hidden] { display: none !important; }
body.damage-page .damage-form-card,
body.damage-page .damage-result-card { min-width: 0; box-sizing: border-box; }
body.damage-page .damage-form-card h2:not(:first-child) {
    border-top: 1px solid #eceaf6;
    padding-top: 20px;
}
body.damage-page .section-hint {
    margin: -5px 0 13px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
}
body.damage-page .field-grid label > span {
    overflow-wrap: anywhere;
}
body.damage-page .field-grid input:hover,
body.damage-page .field-grid select:hover {
    border-color: #b4a4e8;
}
body.damage-page .field-grid input:focus-visible,
body.damage-page .field-grid select:focus-visible,
body.damage-page button:focus-visible,
body.damage-page .dps-link:focus-visible {
    outline: 3px solid #a78bfa;
    outline-offset: 2px;
}
body.damage-page .result-hero-meta {
    margin: 7px 0 11px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
body.damage-page .result-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 2px 0 14px;
}
body.damage-page .copy-damage-button {
    min-height: 42px;
    padding: 10px 17px;
    border: 1px solid #c4b5fd;
    border-radius: 10px;
    background: #fff;
    color: #5b21b6;
    font-family: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}
body.damage-page .copy-damage-button:hover { background: #f5f3ff; }
body.damage-page .copy-feedback {
    color: #047857;
    font-size: 12px;
    font-weight: 750;
}
body.damage-page .mobile-result-strip { display: none; }

@media (max-width: 900px) {
    body.damage-page .damage-layout { gap: 15px; }
    body.damage-page .damage-result-card { order: -1; }
    body.damage-page .damage-shell {
        padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    }
    body.damage-page .mobile-result-strip {
        position: fixed;
        z-index: 30;
        inset: auto 0 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 11px max(16px, env(safe-area-inset-left, 0px))
                 calc(11px + env(safe-area-inset-bottom, 0px))
                 max(16px, env(safe-area-inset-right, 0px));
        border-top: 1px solid #ddd6fe;
        background: rgba(255,255,255,.97);
        box-shadow: 0 -10px 28px rgba(76,29,149,.11);
        backdrop-filter: blur(12px);
        box-sizing: border-box;
    }
    body.damage-page .mobile-result-summary {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }
    body.damage-page .mobile-result-summary span {
        color: #64748b;
        font-size: 11px;
        font-weight: 750;
    }
    body.damage-page .mobile-result-summary strong {
        color: #312e81;
        font-size: clamp(19px, 5.6vw, 28px);
        font-weight: 950;
        line-height: 1.15;
        letter-spacing: -.035em;
        overflow-wrap: anywhere;
    }
    body.damage-page #viewDamageDetail {
        flex-shrink: 0;
        min-height: 44px;
        padding: 9px 14px;
        border: 0;
        border-radius: 11px;
        background: #6d28d9;
        color: #fff;
        font-family: inherit;
        font-size: 12px;
        font-weight: 850;
        cursor: pointer;
    }
}
@media (max-width: 560px) {
    /* Two numeric fields per row reduces the long single-column scroll. */
    body.damage-page .field-grid.three {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 13px 9px;
    }
    body.damage-page .field-grid.three label > span {
        display: flex;
        align-items: flex-end;
        min-height: 2.55em;
        font-size: 11px;
        line-height: 1.28;
    }
    body.damage-page .field-grid input,
    body.damage-page .field-grid select {
        min-width: 0;
        padding: 9px 10px;
        font-size: 16px;
    }
    body.damage-page .damage-form-card h2:not(:first-child) {
        margin-top: 20px;
        padding-top: 17px;
    }
    body.damage-page .auto-base strong {
        font-size: 15px;
        text-align: right;
        overflow-wrap: anywhere;
    }
    body.damage-page .breakdown > div {
        gap: 10px;
    }
    body.damage-page .breakdown dd { overflow-wrap: anywhere; }
}
@media (max-width: 350px) {
    body.damage-page .field-grid.three { grid-template-columns: 1fr; }
    body.damage-page .field-grid.three label > span { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
    body.damage-page .damage-form-card,
    body.damage-page .damage-result-card { transition: none; }
}

/* Keep the shared English title badge clear of the fixed navbar. */
body.damage-page .damage-shell { margin-top: 119px; }
@media (max-width: 760px) {
  body.damage-page .damage-shell { margin-top: 88px; }
}

/* Invalid inputs must not leave a stale APK-reference damage result onscreen. */
body.damage-page .damage-input-warning {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 11px;
    color: #991b1b;
    background: #fef2f2;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.55;
}
body.damage-page .field-grid input[aria-invalid="true"] {
    border-color: #dc2626;
    outline: 2px solid rgba(220,38,38,.22);
}
body.damage-page .copy-damage-button:disabled {
    cursor: not-allowed;
    opacity: .45;
}
