body.fp-tools-upgrade .main-index {
    position: relative;
}

body.fp-tools-upgrade .main-index::before {
    background: linear-gradient(135deg, var(--fp-color-primary), var(--fp-color-accent));
    border-radius: var(--fp-radius-lg) var(--fp-radius-lg) 0 0;
    content: "";
    height: 4px;
    inset: -1px -1px auto;
    position: absolute;
}

body.fp-tools-upgrade .main-index > h2#title {
    color: var(--fp-color-ink);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 850;
    letter-spacing: -0.04em;
    margin: 8px 0 18px;
}

body.fp-tools-upgrade .main-index > h2#title + br,
body.fp-tools-upgrade .main-index > h2#title + br + p {
    color: var(--fp-color-muted);
    font-size: 16px;
    line-height: 1.7;
}

body.fp-tools-upgrade .main-index form {
    background: rgba(248, 250, 252, 0.74);
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: var(--fp-radius-lg);
    margin: 18px 0 28px;
    padding: 22px;
}

body.fp-tools-upgrade .main-index form .row {
    margin-left: -10px;
    margin-right: -10px;
}

body.fp-tools-upgrade .main-index form [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

body.fp-tools-upgrade .main-index form h5,
body.fp-tools-upgrade .main-index form label {
    color: #334155;
    font-weight: 800;
}

body.fp-tools-upgrade .main-index textarea.form-control {
    min-height: 132px;
    resize: vertical;
}

body.fp-tools-upgrade .main-index textarea[style*="270px"] {
    min-height: 220px;
}

body.fp-tools-upgrade .main-index input[name="url"],
body.fp-tools-upgrade .main-index input#url {
    font-size: 18px;
    height: 54px;
    padding-left: 16px;
}

body.fp-tools-upgrade .main-index .captchaCode,
body.fp-tools-upgrade .main-index .g-recaptcha {
    margin: 14px 0;
}

body.fp-tools-upgrade .fp-tool-help {
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.09), rgba(20, 184, 166, 0.08));
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: var(--fp-radius-md);
    color: #334155;
    display: flex;
    gap: 12px;
    line-height: 1.55;
    margin: 4px 0 18px;
    padding: 13px 15px;
}

body.fp-tools-upgrade .fp-tool-help-icon {
    align-items: center;
    background: #fff;
    border-radius: 999px;
    color: var(--fp-color-primary);
    display: inline-flex;
    flex: 0 0 28px;
    font-weight: 900;
    height: 28px;
    justify-content: center;
    width: 28px;
}

body.fp-tools-upgrade .fp-tool-submit-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

body.fp-tools-upgrade .fp-tool-loading {
    align-items: center;
    color: var(--fp-color-muted);
    display: none;
    font-weight: 700;
    gap: 8px;
}

body.fp-tools-upgrade form.is-submitting .fp-tool-loading {
    display: inline-flex;
}

body.fp-tools-upgrade .fp-spinner {
    animation: fpSpin .85s linear infinite;
    border: 2px solid rgba(37, 99, 235, 0.16);
    border-top-color: var(--fp-color-primary);
    border-radius: 999px;
    height: 16px;
    width: 16px;
}

@keyframes fpSpin {
    to { transform: rotate(360deg); }
}

body.fp-tools-upgrade .fp-result-panel {
    background: #fff;
    border: 1px solid var(--fp-color-border);
    border-radius: var(--fp-radius-lg);
    box-shadow: var(--fp-shadow-soft);
    margin: 18px 0 24px;
    overflow: hidden;
    position: relative;
}

body.fp-tools-upgrade .fp-result-toolbar {
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid var(--fp-color-border);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
}

body.fp-tools-upgrade .fp-result-title {
    color: #334155;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.fp-tools-upgrade .fp-result-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

body.fp-tools-upgrade .fp-copy-btn,
body.fp-tools-upgrade .fp-toggle-btn {
    background: #fff;
    border: 1px solid var(--fp-color-border);
    border-radius: 999px;
    color: var(--fp-color-primary-strong);
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
    padding: 7px 11px;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

body.fp-tools-upgrade .fp-copy-btn:hover,
body.fp-tools-upgrade .fp-toggle-btn:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.24);
}

body.fp-tools-upgrade .btn.is-working,
body.fp-tools-upgrade #checkButton.is-working,
body.fp-tools-upgrade #exportButton.is-working,
body.fp-tools-upgrade #saveXMLFile.is-working {
    opacity: .78;
    pointer-events: none;
}

body.fp-tools-upgrade .fp-result-panel > pre,
body.fp-tools-upgrade .fp-result-panel > textarea,
body.fp-tools-upgrade .fp-result-panel > .table,
body.fp-tools-upgrade .fp-result-panel > .fp-table-shell {
    border: 0;
    box-shadow: none;
    margin: 0;
}

body.fp-tools-upgrade .fp-result-panel > pre {
    background: #0f172a;
    color: #dbeafe;
    font-size: 13px;
    line-height: 1.7;
    max-height: 460px;
    overflow: auto;
    padding: 18px;
}

body.fp-tools-upgrade .fp-result-panel > textarea.form-control {
    border-radius: 0;
    min-height: 240px;
}

body.fp-tools-upgrade .fp-table-shell {
    overflow-x: auto;
    width: 100%;
}

body.fp-tools-upgrade .fp-table-shell > .table {
    margin-bottom: 0;
    min-width: 620px;
}

body.fp-tools-upgrade #resultBox,
body.fp-tools-upgrade .resultBox,
body.fp-tools-upgrade #results {
    background: rgba(248, 250, 252, 0.72);
    border: 1px solid var(--fp-color-border);
    border-radius: var(--fp-radius-lg);
    margin: 18px 0;
    padding: 18px;
}

body.fp-tools-upgrade #results:empty,
body.fp-tools-upgrade #resultBox:empty,
body.fp-tools-upgrade .resultBox:empty {
    display: none;
}

body.fp-tools-upgrade .widget-box {
    border-radius: var(--fp-radius-lg);
    overflow: hidden;
}

body.fp-tools-upgrade .widget-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--fp-color-border);
    color: var(--fp-color-primary-strong);
}

body.fp-tools-upgrade .widget-header > .widget-title {
    font-weight: 850;
}

body.fp-tools-upgrade .fp-recent-tools {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--fp-color-border);
    border-radius: var(--fp-radius-lg);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    margin: 0 0 22px;
    padding: 14px;
}

body.fp-tools-upgrade .fp-recent-title {
    color: var(--fp-color-muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

body.fp-tools-upgrade .fp-recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.fp-tools-upgrade .fp-recent-list a {
    background: #f8fafc;
    border: 1px solid var(--fp-color-border);
    border-radius: 999px;
    color: #334155;
    font-size: 13px;
    font-weight: 750;
    padding: 7px 10px;
    text-decoration: none;
}

body.fp-tools-upgrade .fp-recent-list a:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--fp-color-primary-strong);
}

@media (max-width: 767px) {
    body.fp-tools-upgrade .main-index {
        padding: 20px 16px;
    }

    body.fp-tools-upgrade .main-index form {
        padding: 16px;
    }

    body.fp-tools-upgrade .fp-result-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    body.fp-tools-upgrade .fp-tool-submit-row {
        justify-content: stretch;
    }

    body.fp-tools-upgrade .fp-tool-submit-row .btn,
    body.fp-tools-upgrade .fp-tool-submit-row input[type="submit"] {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.fp-tools-upgrade .fp-spinner {
        animation: none;
    }
}
