.pft-wrapper,
.pft-wrapper * { box-sizing: border-box; }

.pft-wrapper {
    --pft-primary: #e53935;
    --pft-primary-dark: #c62828;
    --pft-ink: #18212f;
    --pft-muted: #667085;
    --pft-line: #e6eaf0;
    --pft-soft: #f7f8fb;
    --pft-white: #fff;
    max-width: 1180px;
    margin: 24px auto;
    color: var(--pft-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.pft-app {
    background: var(--pft-white);
    border: 1px solid var(--pft-line);
    border-radius: 22px;
    box-shadow: 0 18px 55px rgba(25, 33, 47, .08);
    overflow: hidden;
}

.pft-hero {
    padding: 52px 48px 34px;
    text-align: center;
    background: radial-gradient(circle at top, #fff4f3 0, #fff 60%);
}

.pft-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--pft-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pft-hero h1,
.pft-header h2 { margin: 0; color: var(--pft-ink); line-height: 1.1; }
.pft-hero h1 { font-size: clamp(36px, 6vw, 58px); }
.pft-hero p { max-width: 700px; margin: 16px auto 0; color: var(--pft-muted); font-size: 18px; line-height: 1.65; }

.pft-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 12px 34px 42px;
}

.pft-tool-card {
    appearance: none;
    display: flex;
    min-height: 175px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--pft-line);
    border-radius: 16px;
    background: var(--pft-white);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.pft-tool-card:hover,
.pft-tool-card:focus-visible {
    transform: translateY(-3px);
    border-color: #f4b7b5;
    box-shadow: 0 12px 28px rgba(25, 33, 47, .09);
    outline: none;
}

.pft-tool-icon,
.pft-title-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fff0ef;
    color: var(--pft-primary);
    font-size: 25px;
    font-weight: 800;
}

.pft-tool-card strong { font-size: 18px; }
.pft-tool-card > span:last-child { color: var(--pft-muted); line-height: 1.45; }

.pft-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border-top: 1px solid var(--pft-line);
    background: var(--pft-line);
}
.pft-trust div { display: flex; flex-direction: column; gap: 5px; padding: 22px 28px; background: var(--pft-soft); }
.pft-trust span { color: var(--pft-muted); font-size: 14px; }

.pft-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 40px;
    border-bottom: 1px solid var(--pft-line);
    background: linear-gradient(135deg, #fff 30%, #fff7f6);
}
.pft-header h2 { display: flex; align-items: center; gap: 14px; margin-top: 10px; font-size: clamp(28px, 4vw, 40px); }
.pft-header p { margin: 10px 0 0 60px; color: var(--pft-muted); }
.pft-back { padding: 0; border: 0; background: transparent; color: var(--pft-primary-dark); font-weight: 700; cursor: pointer; }
.pft-private-badge { align-self: center; white-space: nowrap; padding: 10px 14px; border: 1px solid #bce4cc; border-radius: 999px; background: #f1fbf5; color: #247a46; font-size: 13px; font-weight: 700; }

.pft-dropzone {
    margin: 34px 40px 22px;
    padding: 54px 30px;
    border: 2px dashed #cdd4df;
    border-radius: 18px;
    background: var(--pft-soft);
    text-align: center;
    cursor: pointer;
    transition: border-color .18s, background .18s;
}
.pft-dropzone:hover,
.pft-dropzone:focus-visible,
.pft-dropzone.is-dragging { border-color: var(--pft-primary); background: #fff4f3; outline: none; }
.pft-dropzone strong,
.pft-dropzone span,
.pft-dropzone small { display: block; }
.pft-dropzone strong { margin-top: 10px; font-size: 20px; }
.pft-dropzone span { margin-top: 5px; color: var(--pft-muted); }
.pft-dropzone small { margin-top: 14px; color: #7d8796; }
.pft-drop-icon { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--pft-primary); color: white; font-size: 34px; line-height: 1; }

.pft-message { margin: 22px 40px 0; padding: 14px 17px; border-radius: 10px; line-height: 1.45; }
.pft-message-info { background: #eef5ff; color: #285d9f; }
.pft-message-success { background: #eefaf2; color: #237543; }
.pft-message-error { background: #fff0f0; color: #a52a2a; }

.pft-file-list { margin: 0 40px; padding: 0; list-style: none; }
.pft-file-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--pft-line); }
.pft-file-type { display: inline-grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 8px; background: #fff0ef; color: var(--pft-primary-dark); font-size: 11px; font-weight: 900; }
.pft-file-main { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.pft-file-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pft-file-main small { color: var(--pft-muted); }
.pft-row-actions { display: flex; gap: 5px; }
.pft-row-actions button,
.pft-page-actions button { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--pft-line); border-radius: 8px; background: white; color: var(--pft-ink); cursor: pointer; }
.pft-row-actions button:hover:not(:disabled),
.pft-page-actions button:hover:not(:disabled) { border-color: var(--pft-primary); color: var(--pft-primary); }
.pft-row-actions button:disabled,
.pft-page-actions button:disabled { opacity: .35; cursor: not-allowed; }

.pft-selected { display: flex; justify-content: space-between; gap: 16px; margin: 0 40px 22px; padding: 15px 17px; border: 1px solid var(--pft-line); border-radius: 12px; background: var(--pft-soft); }
.pft-selected span { color: var(--pft-muted); }

.pft-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 22px 40px; padding: 22px; border: 1px solid var(--pft-line); border-radius: 14px; background: #fcfcfd; }
.pft-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pft-form label { display: flex; flex-direction: column; gap: 7px; font-weight: 700; }
.pft-form label small { color: var(--pft-muted); font-weight: 400; }
.pft-form input:not([type="range"]):not([type="color"]),
.pft-form select { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #cfd6e1; border-radius: 9px; background: white; color: var(--pft-ink); font: inherit; }
.pft-form input[type="color"] { width: 100%; height: 44px; padding: 3px; border: 1px solid #cfd6e1; border-radius: 9px; background: white; }
.pft-form input[type="range"] { width: 100%; }
.pft-span-2 { grid-column: span 2; }

.pft-actions { display: flex; justify-content: center; padding: 22px 40px 38px; }
.pft-primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 210px; min-height: 50px; padding: 12px 24px; border: 0; border-radius: 11px; background: var(--pft-primary); color: white; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 9px 18px rgba(229, 57, 53, .2); }
.pft-primary:hover:not(:disabled) { background: var(--pft-primary-dark); }
.pft-primary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

.pft-progress { margin: -16px 40px 30px; text-align: center; }
.pft-progress-track { height: 8px; overflow: hidden; border-radius: 99px; background: #e8ebf0; }
.pft-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--pft-primary); transition: width .2s; }
.pft-progress small { display: block; margin-top: 7px; color: var(--pft-muted); }
.pft-spinner { width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.45); border-top-color: white; border-radius: 50%; animation: pft-spin .7s linear infinite; }
@keyframes pft-spin { to { transform: rotate(360deg); } }

.pft-note { margin: 0 40px 36px; padding: 14px 16px; border-left: 4px solid #f4b400; border-radius: 6px; background: #fff9e8; color: #705b18; }

.pft-pages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 16px; margin: 10px 40px 24px; }
.pft-page-card { padding: 10px; border: 1px solid var(--pft-line); border-radius: 12px; background: white; text-align: center; transition: opacity .2s; }
.pft-page-card.is-deleted { opacity: .42; filter: grayscale(1); }
.pft-page-preview { display: grid; place-items: center; height: 185px; overflow: hidden; margin-bottom: 9px; border-radius: 7px; background: #eef0f4; }
.pft-page-preview img { max-width: 90%; max-height: 90%; box-shadow: 0 3px 10px rgba(0,0,0,.16); transition: transform .2s; }
.pft-page-actions { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }

.pft-ad { min-height: 90px; margin: 20px 0; padding: 8px; text-align: center; }
.pft-ad-label { display: block; margin-bottom: 4px; color: #9299a5; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 820px) {
    .pft-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 20px; }
    .pft-header { flex-direction: column; padding: 28px 24px; }
    .pft-header p { margin-left: 0; }
    .pft-private-badge { align-self: flex-start; white-space: normal; }
    .pft-dropzone, .pft-message, .pft-file-list, .pft-selected, .pft-form, .pft-progress, .pft-note, .pft-pages-grid { margin-left: 24px; margin-right: 24px; }
}

@media (max-width: 560px) {
    .pft-wrapper { margin: 12px 0; }
    .pft-app { border-radius: 14px; }
    .pft-hero { padding: 38px 22px 26px; }
    .pft-tools-grid { grid-template-columns: 1fr; }
    .pft-tool-card { min-height: 145px; }
    .pft-trust { grid-template-columns: 1fr; }
    .pft-form, .pft-form-grid { grid-template-columns: 1fr; }
    .pft-span-2 { grid-column: auto; }
    .pft-selected { flex-direction: column; }
    .pft-actions { padding-inline: 24px; }
    .pft-primary { width: 100%; }
    .pft-pages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pft-page-preview { height: 150px; }
}

/* Public site shell created by the plugin. */
.pft-site,
.pft-site * { box-sizing: border-box; }

.pft-site {
    --pft-primary: #d93632;
    --pft-primary-dark: #b62320;
    --pft-ink: #172033;
    --pft-muted: #626c7c;
    --pft-line: #e4e8ef;
    --pft-soft: #f6f7fb;
    --pft-white: #fff;
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto 48px;
    color: var(--pft-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
}

.pft-managed-page .entry-content:has(.pft-site),
.pft-managed-page .wp-block-post-content:has(.pft-site),
.pft-managed-page main:has(> .pft-site) {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.pft-site a { color: inherit; }
.pft-site h1,
.pft-site h2,
.pft-site h3,
.pft-site p { overflow-wrap: anywhere; }

.pft-public-nav {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--pft-line);
    background: rgba(255,255,255,.96);
}

.pft-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--pft-ink) !important;
    font-size: 18px;
    font-weight: 850;
    text-decoration: none !important;
}

.pft-brand span {
    display: inline-grid;
    place-items: center;
    width: 43px;
    height: 34px;
    border-radius: 9px;
    background: var(--pft-primary);
    color: #fff;
    font-size: 13px;
    letter-spacing: .04em;
}

.pft-public-nav > div { display: flex; align-items: center; gap: 22px; }
.pft-public-nav > div a {
    color: #414b5c;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.pft-public-nav > div a:hover,
.pft-public-nav > div a:focus-visible { color: var(--pft-primary); }

.pft-public-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .65fr);
    gap: clamp(28px, 6vw, 80px);
    align-items: center;
    padding: clamp(48px, 8vw, 100px) clamp(22px, 6vw, 76px);
    border-radius: 0 0 30px 30px;
    background:
        radial-gradient(circle at 12% 10%, rgba(217,54,50,.13), transparent 34%),
        linear-gradient(145deg, #fff 35%, #f7f8fc 100%);
}

.pft-public-hero h1,
.pft-tool-intro h1 {
    max-width: 880px;
    margin: 4px 0 18px;
    color: var(--pft-ink);
    font-size: clamp(40px, 6.5vw, 72px);
    line-height: 1.03;
    letter-spacing: -.04em;
}

.pft-public-hero-copy > p,
.pft-tool-intro > p {
    max-width: 780px;
    margin: 0;
    color: var(--pft-muted);
    font-size: clamp(17px, 2vw, 21px);
}

.pft-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pft-primary-link,
.pft-secondary-link {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 11px;
    font-weight: 800;
    text-decoration: none !important;
}
.pft-primary-link { background: var(--pft-primary); color: #fff !important; box-shadow: 0 10px 25px rgba(217,54,50,.22); }
.pft-primary-link:hover { background: var(--pft-primary-dark); }
.pft-secondary-link { border: 1px solid #ccd2dc; background: #fff; color: var(--pft-ink) !important; }

.pft-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 24px 0 0;
    padding: 0;
    color: #4a5567;
    font-size: 14px;
    list-style: none;
}
.pft-hero-points li::before { content: "✓"; margin-right: 7px; color: #208451; font-weight: 900; }

.pft-security-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    border: 1px solid #dbe5df;
    border-radius: 20px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 20px 50px rgba(24,33,47,.09);
}
.pft-security-card strong { font-size: 20px; }
.pft-security-card p { margin: 0 0 8px; color: var(--pft-muted); }
.pft-security-card span { color: #28734a; font-size: 14px; font-weight: 700; }

.pft-section-heading { max-width: 900px; margin: 0 auto 28px; text-align: center; }
.pft-section-heading > span { color: var(--pft-primary); font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.pft-section-heading h2 { margin: 6px 0 10px; font-size: clamp(28px, 4vw, 43px); line-height: 1.12; letter-spacing: -.025em; }
.pft-section-heading p { margin: 0; color: var(--pft-muted); }

#ferramentas-pdf.pft-section-heading { padding-top: 56px; }
.pft-site .pft-wrapper { width: 100%; max-width: 1180px; margin: 24px auto 64px; }
.pft-site .pft-tool-card { text-decoration: none; }

.pft-content-section {
    max-width: 1180px;
    margin: 78px auto 0;
    padding: 0 24px;
}

.pft-step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.pft-step-grid article {
    min-height: 180px;
    padding: 25px;
    border: 1px solid var(--pft-line);
    border-radius: 16px;
    background: #fff;
}
.pft-step-grid article b {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #fff0ef;
    color: var(--pft-primary);
}
.pft-step-grid h3 { margin: 0 0 6px; font-size: 19px; }
.pft-step-grid p { margin: 0; color: var(--pft-muted); }

.pft-seo-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, .65fr);
    gap: 50px;
    align-items: start;
    padding: clamp(28px, 5vw, 58px);
    border-radius: 24px;
    background: var(--pft-soft);
}
.pft-seo-copy h2 { margin-top: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
.pft-seo-copy p { color: #566174; }
.pft-seo-copy aside { padding: 24px; border-radius: 15px; background: #fff; }
.pft-seo-copy aside h3 { margin-top: 0; }
.pft-seo-copy ul { margin: 0; padding-left: 20px; }
.pft-seo-copy li + li { margin-top: 6px; }
.pft-seo-copy a { color: var(--pft-primary); font-weight: 700; }

.pft-faq details {
    max-width: 900px;
    margin: 10px auto;
    border: 1px solid var(--pft-line);
    border-radius: 13px;
    background: #fff;
}
.pft-faq summary { cursor: pointer; padding: 18px 20px; font-weight: 800; }
.pft-faq details p { margin: 0; padding: 0 20px 20px; color: var(--pft-muted); }

.pft-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1180px;
    margin: 24px auto 0;
    padding: 0 24px;
    color: var(--pft-muted);
    font-size: 14px;
}
.pft-breadcrumb a { color: var(--pft-primary); text-decoration: none; }

.pft-tool-intro {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(44px, 7vw, 82px) 24px 32px;
    text-align: center;
}
.pft-tool-intro h1 { max-width: 970px; margin-left: auto; margin-right: auto; font-size: clamp(38px, 6vw, 66px); }
.pft-tool-intro > p { margin-left: auto; margin-right: auto; }
.pft-private-inline {
    display: inline-flex;
    margin-top: 20px;
    padding: 8px 13px;
    border: 1px solid #bfe0cc;
    border-radius: 999px;
    background: #f0faf4;
    color: #267245;
    font-size: 13px;
    font-weight: 800;
}

.pft-tool-explanation {
    max-width: 960px;
    padding: 36px;
    border: 1px solid var(--pft-line);
    border-radius: 18px;
    background: var(--pft-soft);
}
.pft-tool-explanation h2 { margin-top: 0; }
.pft-tool-explanation p { color: var(--pft-muted); }

.pft-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.pft-related-grid a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border: 1px solid var(--pft-line);
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
}
.pft-related-grid a:hover { border-color: #e5aaa8; box-shadow: 0 10px 24px rgba(24,33,47,.07); }
.pft-related-grid span { color: var(--pft-muted); font-size: 14px; }

.pft-public-footer {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    max-width: 1180px;
    margin: 86px auto 0;
    padding: 26px 24px;
    border-top: 1px solid var(--pft-line);
    color: var(--pft-muted);
    font-size: 14px;
}
.pft-public-footer p { margin: 0; }
.pft-public-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.pft-public-footer a { color: #4c5668; text-decoration: none; }
.pft-public-footer a:hover { color: var(--pft-primary); }

.pft-site .pft-ad {
    width: min(1180px, 100%);
    min-height: 120px;
    margin: 62px auto;
    padding: 12px;
    overflow: hidden;
    border-radius: 10px;
    background: #fafbfc;
}
.pft-site .pft-ad-middle { margin-top: 76px; margin-bottom: 76px; }
.pft-noscript { max-width: 760px; margin: 20px auto; padding: 16px; border: 1px solid #e7c46c; border-radius: 10px; background: #fff9e5; }

@media (max-width: 960px) {
    .pft-public-nav > div a:nth-child(n+4) { display: none; }
    .pft-public-hero { grid-template-columns: 1fr; }
    .pft-security-card { max-width: 620px; }
    .pft-seo-copy { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .pft-site { width: min(100%, calc(100% - 16px)); }
    .pft-public-nav { min-height: 62px; padding-inline: 10px; }
    .pft-public-nav > div { display: none; }
    .pft-public-hero { padding: 48px 20px; border-radius: 0 0 20px 20px; }
    .pft-public-hero h1,
    .pft-tool-intro h1 { font-size: clamp(36px, 11vw, 52px); }
    .pft-hero-actions > a { width: 100%; }
    .pft-hero-points { display: grid; }
    .pft-step-grid,
    .pft-related-grid { grid-template-columns: 1fr; }
    .pft-content-section { margin-top: 58px; padding-inline: 12px; }
    .pft-seo-copy { padding: 26px 20px; }
    .pft-public-footer { flex-direction: column; margin-top: 60px; padding-inline: 12px; }
    .pft-site .pft-ad { min-height: 100px; margin-block: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .pft-site *, .pft-wrapper * { scroll-behavior: auto !important; transition: none !important; animation-duration: .001ms !important; }
}

.pft-managed-page .entry-header > .entry-title,
.pft-managed-page .wp-block-post-title {
    display: none;
}

/* Version 2.2: interface simplificada e carregamento totalmente local. */
.pft-site,
.pft-wrapper {
    --pft-primary: #6558d3;
    --pft-primary-dark: #4c3fba;
    --pft-primary-soft: #f0eefe;
    --pft-ink: #172033;
    --pft-muted: #667085;
    --pft-line: #e6e9f0;
    --pft-soft: #f7f8fc;
}

.pft-home-page {
    width: min(1440px, calc(100% - 24px));
}

.pft-home-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
    gap: clamp(32px, 6vw, 84px);
    min-height: 590px;
    padding: clamp(52px, 7vw, 92px) clamp(24px, 6vw, 82px);
    border: 1px solid #ecebf8;
    border-top: 0;
    background:
        radial-gradient(circle at 5% 5%, rgba(101,88,211,.14), transparent 34%),
        radial-gradient(circle at 92% 88%, rgba(73,180,156,.10), transparent 30%),
        linear-gradient(145deg, #ffffff 15%, #f8f8fe 100%);
}

.pft-home-hero h1 {
    max-width: 760px;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1.01;
}

.pft-home-hero .pft-public-hero-copy > p {
    max-width: 720px;
}

.pft-home-hero .pft-primary-link {
    background: var(--pft-primary);
    box-shadow: 0 12px 28px rgba(101,88,211,.24);
}

.pft-home-hero .pft-primary-link:hover { background: var(--pft-primary-dark); }

.pft-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 25px;
    color: #4b5567;
    font-size: 14px;
    font-weight: 700;
}

.pft-hero-trust span { white-space: nowrap; }
.pft-hero-trust b { color: #198754; }

.pft-quick-panel {
    overflow: hidden;
    border: 1px solid rgba(101,88,211,.15);
    border-radius: 24px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 24px 70px rgba(34,39,71,.13);
}

.pft-quick-panel-head {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 22px 24px 16px;
    border-bottom: 1px solid var(--pft-line);
}

.pft-quick-panel-head span {
    color: var(--pft-primary);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.pft-quick-panel-head strong { font-size: 20px; }
.pft-quick-links { padding: 8px; }

.pft-quick-links a {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 13px;
    align-items: center;
    padding: 13px 14px;
    border-radius: 14px;
    color: var(--pft-ink);
    text-decoration: none;
    transition: background .16s ease, transform .16s ease;
}

.pft-quick-links a:hover,
.pft-quick-links a:focus-visible {
    background: var(--pft-primary-soft);
    transform: translateX(2px);
    outline: none;
}

.pft-quick-links a > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.pft-quick-links small { color: var(--pft-muted); font-size: 13px; }
.pft-quick-links a > b { color: var(--pft-primary); font-size: 25px; }

.pft-quick-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--pft-primary-soft);
    color: var(--pft-primary);
    font-size: 22px;
    font-weight: 900;
}

.pft-local-note {
    margin: 0;
    padding: 15px 20px;
    border-top: 1px solid var(--pft-line);
    background: #f4fbf7;
    color: #28704a;
    font-size: 12px;
    font-weight: 700;
}

.pft-tools-heading { padding-top: 64px !important; }
.pft-tools-heading h2 { max-width: 720px; margin-inline: auto; }

.pft-site .pft-wrapper {
    margin-top: 20px;
}

.pft-app {
    border-color: #e5e5f1;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(27,35,61,.09);
}

.pft-app-booting {
    display: grid;
    min-height: 280px;
    place-items: center;
}

.pft-boot-card {
    display: flex;
    max-width: 430px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 34px;
    text-align: center;
}

.pft-boot-card strong { font-size: 20px; }
.pft-boot-card small { color: var(--pft-muted); }
.pft-boot-spinner {
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
    border: 3px solid #e4e1fb;
    border-top-color: var(--pft-primary);
    border-radius: 50%;
    animation: pft-spin .75s linear infinite;
}

.pft-tool-picker {
    padding: 32px 34px 18px;
    background: linear-gradient(180deg, #fff 0%, #fbfbfe 100%);
}

.pft-tool-search {
    position: relative;
    display: flex;
    max-width: 720px;
    margin: 0 auto;
    align-items: center;
}

.pft-tool-search input {
    width: 100%;
    min-height: 58px;
    padding: 13px 50px 13px 52px;
    border: 1px solid #d9dce8;
    border-radius: 16px;
    background: #fff;
    color: var(--pft-ink);
    font: inherit;
    font-size: 16px;
    box-shadow: 0 8px 24px rgba(31,39,66,.06);
    outline: none;
}

.pft-tool-search input:focus {
    border-color: var(--pft-primary);
    box-shadow: 0 0 0 4px rgba(101,88,211,.11), 0 10px 26px rgba(31,39,66,.07);
}

.pft-search-icon {
    position: absolute;
    left: 19px;
    z-index: 1;
    color: var(--pft-primary);
    font-size: 27px;
    line-height: 1;
    transform: rotate(-18deg);
}

.pft-tool-search button {
    position: absolute;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f0f1f5;
    color: #5f6674;
    cursor: pointer;
    font-size: 20px;
}

.pft-popular-row {
    display: flex;
    flex-wrap: wrap;
    max-width: 720px;
    margin: 14px auto 0;
    gap: 8px;
    align-items: center;
    color: var(--pft-muted);
    font-size: 13px;
}

.pft-popular-row button {
    padding: 6px 10px;
    border: 1px solid #dedfea;
    border-radius: 999px;
    background: #fff;
    color: #485065;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.pft-popular-row button:hover,
.pft-popular-row button:focus-visible {
    border-color: var(--pft-primary);
    color: var(--pft-primary);
    outline: none;
}

.pft-tools-grid {
    gap: 15px;
    padding: 16px 34px 38px;
    background: #fbfbfe;
}

.pft-tool-card {
    min-height: 215px;
    gap: 9px;
    padding: 22px;
    border-color: #e5e6ef;
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(25,33,47,.025);
}

.pft-tool-card:hover,
.pft-tool-card:focus-visible {
    border-color: rgba(101,88,211,.45);
    box-shadow: 0 15px 35px rgba(44,42,91,.11);
}

.pft-card-top {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.pft-tool-icon,
.pft-title-icon {
    background: var(--pft-primary-soft);
    color: var(--pft-primary);
}

.pft-tool-tag {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f5f6f9;
    color: #737b8c;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pft-tool-card > strong { margin-top: 5px; font-size: 19px; }
.pft-tool-description { min-height: 43px; color: var(--pft-muted); line-height: 1.45; }
.pft-card-action {
    display: flex;
    width: 100%;
    margin-top: auto;
    align-items: center;
    justify-content: space-between;
    color: var(--pft-primary) !important;
    font-size: 13px;
    font-weight: 800;
}

.pft-card-action b { font-size: 18px; }
.pft-no-results { padding: 20px 34px 45px; color: var(--pft-muted); text-align: center; }

.pft-trust div { background: #f7f8fc; }
.pft-trust strong { color: #31394a; }

.pft-how-section { margin-top: 70px; }
.pft-how-section .pft-step-grid article { min-height: 165px; }
.pft-how-section .pft-step-grid article b { background: var(--pft-primary-soft); color: var(--pft-primary); }

.pft-privacy-banner {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid #dcece4;
    border-radius: 24px;
    background: linear-gradient(135deg, #f4fbf7, #ffffff);
}

.pft-privacy-banner h2 { margin: 4px 0 10px; font-size: clamp(27px, 4vw, 42px); line-height: 1.15; }
.pft-privacy-banner p { margin: 0; color: #52625a; }
.pft-privacy-symbol {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 20px;
    background: #dff3e7;
    color: #218453;
    font-size: 35px;
    font-weight: 900;
}

.pft-startup-error {
    margin: 30px;
    padding: 22px;
    border: 1px solid #f0b9b9;
    border-radius: 14px;
    background: #fff5f5;
    color: #8b2a2a;
    text-align: center;
}
.pft-startup-error p { margin: 7px 0 0; }

.pft-dropzone:hover,
.pft-dropzone:focus-visible,
.pft-dropzone.is-dragging { border-color: var(--pft-primary); background: #f6f4ff; }
.pft-drop-icon,
.pft-primary { background: var(--pft-primary); }
.pft-primary:hover:not(:disabled) { background: var(--pft-primary-dark); }
.pft-primary { box-shadow: 0 9px 18px rgba(101,88,211,.20); }
.pft-progress-track span { background: var(--pft-primary); }
.pft-back { color: var(--pft-primary-dark); }
.pft-header { background: linear-gradient(135deg, #fff 30%, #f7f6ff); }

@media (max-width: 960px) {
    .pft-home-hero { grid-template-columns: 1fr; min-height: auto; }
    .pft-quick-panel { max-width: 670px; }
}

@media (max-width: 720px) {
    .pft-home-page { width: min(100%, calc(100% - 12px)); }
    .pft-home-hero { padding: 44px 18px 28px; }
    .pft-home-hero h1 { font-size: clamp(39px, 12vw, 56px); }
    .pft-hero-trust { display: grid; }
    .pft-tool-picker { padding: 22px 16px 12px; }
    .pft-tool-search input { min-height: 54px; font-size: 15px; }
    .pft-popular-row > span { width: 100%; }
    .pft-tools-grid { padding: 12px 16px 28px; }
    .pft-tool-card { min-height: 180px; }
    .pft-privacy-banner { grid-template-columns: 1fr; padding: 28px 22px; }
    .pft-privacy-symbol { width: 58px; height: 58px; border-radius: 16px; font-size: 28px; }
}

@media (max-width: 560px) {
    .pft-quick-panel { border-radius: 18px; }
    .pft-quick-links a { grid-template-columns: 42px 1fr auto; padding-inline: 10px; }
    .pft-tool-card { min-height: 168px; }
    .pft-card-top .pft-tool-icon { width: 42px; height: 42px; }
}

.pft-wrapper .screen-reader-text,
.pft-site .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.pft-search-icon {
    width: 17px;
    height: 17px;
    border: 2px solid var(--pft-primary);
    border-radius: 50%;
    transform: none;
}
.pft-search-icon::after {
    position: absolute;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: var(--pft-primary);
    content: "";
    transform: translate(12px, 14px) rotate(45deg);
    transform-origin: left center;
}

/* Standalone application shell: isolates tools from theme/cache script rewrites. */
.pft-tool-frame-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 24px auto;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 24px;
    background: #f8fafc;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}
.pft-tool-frame {
    display: block;
    width: 100%;
    height: 860px;
    border: 0;
    background: #f8fafc;
}
.pft-frame-direct-link {
    margin: 0;
    padding: 10px 18px 14px;
    text-align: center;
    font-size: 13px;
    background: #fff;
}
.pft-frame-direct-link a { text-decoration: none; }
.pft-standalone-html,
.pft-standalone-body {
    width: 100%;
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: #f8fafc;
}
.pft-standalone-body { overflow-x: hidden; }
.pft-standalone-wrapper {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 18px !important;
    box-sizing: border-box;
}
@media (max-width: 680px) {
    .pft-tool-frame-wrap { margin: 16px auto; border-radius: 16px; }
    .pft-tool-frame { height: 760px; }
    .pft-standalone-wrapper { padding: 10px !important; }
}
