.aipdf-app,
.aipdf-app * {
    box-sizing: border-box;
}

.aipdf-app {
    width: 100%;
    max-width: 100%;
    color: #101828;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.aipdf-app button,
.aipdf-app input,
.aipdf-app select,
.aipdf-app textarea {
    font: inherit;
}

.aipdf-hero-banner,
.aipdf-shell,
.aipdf-main-card,
.aipdf-result-card {
    width: 100%;
    max-width: 100%;
}


.aipdf-hero-banner {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: clamp(390px, 34vw, 560px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(18px, 2vw, 26px);
    padding: clamp(30px, 3.2vw, 54px) clamp(30px, 4.2vw, 70px) clamp(18px, 1.8vw, 24px);
    border-radius: 34px;
    border: 1px solid rgba(103, 232, 249, .72);
    background:
        linear-gradient(90deg, rgba(4, 10, 49, .15) 0%, rgba(7, 12, 64, .06) 46%, rgba(20, 9, 74, .04) 100%),
        url("hero-bg.webp") center center / cover no-repeat;
    box-shadow:
        0 34px 85px rgba(15, 23, 42, .28),
        inset 0 0 0 1px rgba(255, 255, 255, .14),
        inset 0 -24px 60px rgba(47, 90, 255, .16);
}

.aipdf-hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(3, 7, 41, .72) 0%, rgba(3, 7, 41, .42) 35%, rgba(3, 7, 41, .12) 58%, rgba(3, 7, 41, 0) 100%),
        radial-gradient(circle at 5% 85%, rgba(0, 229, 255, .22), transparent 24%);
    pointer-events: none;
}

.aipdf-hero-banner::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, .12);
    pointer-events: none;
}

.aipdf-hero-copy {
    position: relative;
    z-index: 2;
    width: min(630px, 52%);
    min-width: 500px;
    padding-top: 0;
}

.aipdf-kicker,
.aipdf-card-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    letter-spacing: .07em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 950;
}

.aipdf-kicker {
    gap: 10px;
    min-height: 58px;
    padding: 10px 24px 10px 16px;
    color: #ffffff;
    font-size: clamp(13px, 1.16vw, 21px);
    letter-spacing: .04em;
    background: linear-gradient(90deg, #0284ff 0%, #7057ff 55%, #a36dff 100%);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 18px 44px rgba(22, 119, 255, .32), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.aipdf-kicker img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex: 0 0 32px;
    margin-left: -2px;
}

.aipdf-hero-copy h2 {
    margin: 0 0 clamp(12px, 1.2vw, 16px);
    max-width: 680px;
    color: #fff;
    font-size: clamp(46px, 4.35vw, 78px);
    line-height: .94;
    letter-spacing: -.072em;
    font-weight: 1000;
    text-wrap: balance;
}

.aipdf-hero-copy h2 span,
.aipdf-hero-copy h2 strong {
    display: block;
}

.aipdf-hero-copy h2 b,
.aipdf-hero-copy h2 strong {
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.aipdf-hero-copy h2 b {
    background-image: linear-gradient(90deg, #15d7ff 0%, #31eaff 42%, #47b7ff 100%);
}

.aipdf-hero-copy h2 strong {
    width: fit-content;
    padding-right: 8px;
    background-image: linear-gradient(90deg, #ffa5f4 0%, #9e86ff 42%, #1fd9ff 100%);
}

.aipdf-hero-copy p {
    max-width: 800px;
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(16px, 1.12vw, 20px);
    line-height: 1.35;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .32);
}

.aipdf-hero-actions {
    display: flex;
    align-items: center;
    gap: clamp(22px, 2.6vw, 44px);
    margin-top: clamp(18px, 1.8vw, 25px);
    flex-wrap: wrap;
}

.aipdf-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.aipdf-hero-btn-primary {
    min-height: 56px;
    padding: 10px 14px 10px 26px;
    border-radius: 999px;
    color: #fff;
    font-size: clamp(16px, 1vw, 19px);
    font-weight: 1000;
    letter-spacing: -.02em;
    background: linear-gradient(90deg, #19e9ff 0%, #3376ff 56%, #7049ff 100%);
    box-shadow: 0 22px 48px rgba(31, 142, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .38);
}

.aipdf-hero-btn-primary i {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
}

.aipdf-hero-btn-primary i img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.aipdf-hero-btn-link {
    min-height: 56px;
    padding: 0;
    color: #60a5ff;
    font-size: clamp(15px, .96vw, 18px);
    font-weight: 900;
    text-shadow: 0 0 20px rgba(96, 165, 255, .28);
}

.aipdf-hero-btn-link i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.aipdf-hero-btn-link i img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.aipdf-hero-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.aipdf-benefits {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.35vw, 20px);
    width: 100%;
    margin: clamp(12px, 1.3vw, 18px) 0 0;
    padding: 0;
    list-style: none;
}

.aipdf-benefits li {
    position: relative;
    overflow: hidden;
    min-width: 0;
    min-height: clamp(86px, 6.5vw, 116px);
    display: grid;
    grid-template-columns: clamp(62px, 5.2vw, 86px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(10px, 1vw, 16px);
    padding: clamp(10px, .95vw, 16px) clamp(14px, 1.45vw, 22px);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 20px 48px rgba(7, 13, 68, .22);
}

.aipdf-benefits li::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .62;
    background:
        radial-gradient(circle at 84% 18%, rgba(255, 255, 255, .36) 0 2px, transparent 3px),
        radial-gradient(circle at 92% 70%, rgba(255, 255, 255, .24) 0 2px, transparent 3px),
        radial-gradient(circle at 78% 54%, rgba(255, 255, 255, .12), transparent 28%);
    pointer-events: none;
}

.aipdf-benefit-blue {
    background: linear-gradient(135deg, rgba(0, 209, 255, .9) 0%, rgba(28, 111, 255, .94) 62%, rgba(55, 83, 255, .9) 100%);
}

.aipdf-benefit-purple {
    background: linear-gradient(135deg, rgba(119, 76, 255, .92) 0%, rgba(174, 86, 255, .92) 55%, rgba(255, 58, 205, .9) 100%);
}

.aipdf-benefit-orange {
    background: linear-gradient(135deg, rgba(255, 186, 44, .96) 0%, rgba(255, 130, 45, .94) 52%, rgba(255, 103, 35, .9) 100%);
}

.aipdf-benefit-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: clamp(60px, 5.1vw, 84px);
    height: clamp(60px, 5.1vw, 84px);
    filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .17));
}

.aipdf-benefit-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.aipdf-benefit-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.aipdf-benefits strong,
.aipdf-benefits em {
    display: block;
}

.aipdf-benefits strong {
    color: #fff;
    font-size: clamp(17px, 1.25vw, 23px);
    line-height: 1.08;
    letter-spacing: -.035em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .18);
}

.aipdf-benefits em {
    margin-top: 6px;
    color: rgba(255, 255, 255, .92);
    font-style: normal;
    font-size: clamp(13px, .92vw, 16px);
    line-height: 1.32;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .16);
}

.aipdf-shell {
    margin-top: 24px;
}

.aipdf-main-card,
.aipdf-result-card {
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 32px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, rgba(99, 102, 241, .28), rgba(6, 182, 212, .18)) border-box;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .09);
    padding: 30px;
}

.aipdf-result-card {
    margin-top: 24px;
}

.aipdf-card-head {
    margin-bottom: 22px;
}

.aipdf-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.aipdf-card-label {
    padding: 7px 10px;
    color: #4f46e5;
    background: #eef2ff;
}

.aipdf-limit-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #075985;
    font-size: 13px;
    font-weight: 800;
    background: #e0f2fe;
}

.aipdf-card-head h3,
.aipdf-result-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.aipdf-card-head p,
.aipdf-result-head p {
    margin: 8px 0 0;
    color: #667085;
    line-height: 1.55;
}

.aipdf-grid {
    display: grid;
    gap: 18px;
}

.aipdf-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aipdf-upload-field,
.aipdf-field,
.aipdf-output-wrap {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
    min-width: 0;
    margin: 0 0 18px;
}

.aipdf-field-title,
.aipdf-field > span,
.aipdf-output-wrap > span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1d2939;
    font-size: 14px;
    font-weight: 900;
}

.aipdf-field > span svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: #4f46e5;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.aipdf-field select,
.aipdf-output {
    width: 100%;
    min-width: 0;
    border: 1px solid #d0d5dd;
    border-radius: 18px;
    background: #fff;
    color: #101828;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.aipdf-field select {
    min-height: 56px;
    padding: 0 44px 0 16px;
}

.aipdf-output {
    min-height: 430px;
    resize: vertical;
    padding: 18px;
    line-height: 1.62;
    white-space: pre-wrap;
}

.aipdf-field select:focus,
.aipdf-output:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .14);
    background: #fcfcff;
}

.aipdf-upload-box {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 154px;
    padding: 24px;
    border: 2px dashed rgba(99, 102, 241, .34);
    border-radius: 26px;
    background:
        radial-gradient(circle at 12% 20%, rgba(99, 102, 241, .1), transparent 32%),
        linear-gradient(135deg, #fbfdff, #f8fbff);
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.aipdf-upload-box:hover,
.aipdf-upload-box.is-dragover {
    border-color: #4f46e5;
    box-shadow: 0 18px 45px rgba(79, 70, 229, .12);
    transform: translateY(-1px);
}

.aipdf-file-native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.aipdf-upload-icon {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 26px;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    box-shadow: 0 22px 40px rgba(79, 70, 229, .23);
}

.aipdf-upload-icon svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.aipdf-upload-copy strong,
.aipdf-upload-copy em {
    display: block;
}

.aipdf-upload-copy strong {
    color: #101828;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.2;
}

.aipdf-upload-copy em {
    margin-top: 7px;
    color: #667085;
    font-size: 14px;
    font-style: normal;
    line-height: 1.45;
}

.aipdf-safety-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    margin: 4px 0 20px;
    padding: 16px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
}

.aipdf-safety-note span {
    width: 12px;
    height: 100%;
    min-height: 44px;
    border-radius: 99px;
    background: linear-gradient(180deg, #4f46e5, #06b6d4);
}

.aipdf-safety-note p {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.55;
}

.aipdf-safety-note strong {
    color: #344054;
}

.aipdf-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.aipdf-btn,
.aipdf-result-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    padding: 13px 18px;
    font-weight: 950;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}

.aipdf-btn svg,
.aipdf-result-actions svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.aipdf-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed 52%, #06b6d4);
    box-shadow: 0 20px 38px rgba(79, 70, 229, .28);
}

.aipdf-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 44px rgba(79, 70, 229, .34);
}

.aipdf-btn-ghost {
    color: #344054;
    background: #f2f4f7;
}

.aipdf-btn-ghost:hover {
    background: #e4e7ec;
}

.aipdf-result-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.aipdf-result-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.aipdf-result-actions button {
    min-height: 42px;
    padding: 10px 13px;
    color: #344054;
    background: #f2f4f7;
    font-size: 13px;
}

.aipdf-result-actions button:hover {
    background: #e4e7ec;
}

.aipdf-output-note {
    margin: 10px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}

.aipdf-loader,
.aipdf-paywall {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 18px;
}

.aipdf-loader[hidden],
.aipdf-paywall[hidden] {
    display: none !important;
}

.aipdf-loader-backdrop,
.aipdf-paywall::before {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .52);
    backdrop-filter: blur(10px);
}

.aipdf-loader-box,
.aipdf-paywall-card {
    position: relative;
    width: min(460px, 100%);
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 36px 90px rgba(15, 23, 42, .34);
    text-align: center;
}

.aipdf-loader-box {
    padding: 34px 30px;
}

.aipdf-loader-orb {
    position: relative;
    width: 132px;
    height: 132px;
    margin: 0 auto 18px;
}

.aipdf-loader-ring {
    width: 132px;
    height: 132px;
    transform: rotate(-90deg);
}

.aipdf-loader-ring-bg,
.aipdf-loader-ring-progress {
    fill: none;
    stroke-width: 10;
}

.aipdf-loader-ring-bg {
    stroke: #eef2ff;
}

.aipdf-loader-ring-progress {
    stroke: url(#aipdf-loader-gradient);
    stroke: #4f46e5;
    stroke-linecap: round;
    stroke-dasharray: 302;
    stroke-dashoffset: 302;
    transition: stroke-dashoffset .28s ease;
}

.aipdf-loader-orb span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #4f46e5;
    font-size: 26px;
    font-weight: 1000;
}

.aipdf-loader-box h3,
.aipdf-paywall-card h3 {
    margin: 0;
    color: #101828;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.aipdf-loader-box h3 span {
    color: #4f46e5;
}

.aipdf-loader-box p,
.aipdf-paywall-card p {
    margin: 12px auto 0;
    max-width: 360px;
    color: #667085;
    line-height: 1.55;
}

.aipdf-loader-track {
    overflow: hidden;
    width: 100%;
    height: 10px;
    margin-top: 20px;
    border-radius: 99px;
    background: #eef2ff;
}

.aipdf-loader-track i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    transition: width .28s ease;
}

.aipdf-paywall-card {
    padding: 34px 28px 28px;
}

.aipdf-paywall-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f2f4f7;
    color: #475467;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.aipdf-paywall-card .aipdf-card-label {
    margin: 0 auto 12px;
}

.aipdf-paywall-card .aipdf-btn {
    margin-top: 18px;
    width: 100%;
}

@media (max-width: 900px) {
    .aipdf-hero-banner {
        grid-template-columns: 1fr;
    }

    .aipdf-hero-visual {
        min-height: 220px;
    }

    .aipdf-doc-stack {
        height: 230px;
        width: min(260px, 100%);
    }
}

@media (max-width: 768px) {
    .aipdf-mobile-host,
    .aipdf-mobile-host.content-panel,
    .aipdf-mobile-host.app-stage-panel,
    .app-stage-container.aipdf-mobile-host,
    .app-stage-section.aipdf-mobile-host {
        width: 100%;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .app-stage-container:has(.aipdf-app),
    .app-stage-panel:has(.aipdf-app),
    .content-panel:has(.aipdf-app) {
        width: 100%;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .aipdf-app {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: 12px;
        padding-right: 12px;
        overflow-x: hidden;
    }

    .aipdf-hero-banner,
    .aipdf-main-card,
    .aipdf-result-card {
        border-radius: 24px;
    }

    .aipdf-hero-banner {
        min-height: 0;
        padding: 26px 18px 20px;
        gap: 16px;
    }

    .aipdf-hero-copy h2 {
        margin-top: 14px;
        font-size: clamp(34px, 13vw, 52px);
    }

    .aipdf-hero-copy p {
        font-size: 16px;
    }

    .aipdf-hero-visual {
        min-height: 180px;
    }

    .aipdf-doc-stack {
        height: 185px;
        width: min(210px, 80vw);
    }

    .aipdf-doc-front {
        border-radius: 22px;
        padding: 22px;
        gap: 12px;
    }

    .aipdf-doc-front span {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        font-size: 20px;
    }

    .aipdf-ai-badge {
        width: 64px;
        height: 64px;
        border-radius: 20px;
        font-size: 20px;
        right: -8px;
        bottom: 14px;
    }

    .aipdf-benefits {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 12px;
    }

    .aipdf-main-card,
    .aipdf-result-card {
        padding: 20px 14px;
    }

    .aipdf-grid,
    .aipdf-grid.two {
        grid-template-columns: 1fr;
    }

    .aipdf-field,
    .aipdf-upload-field,
    .aipdf-output-wrap,
    .aipdf-field select,
    .aipdf-output,
    .aipdf-actions,
    .aipdf-actions button,
    .aipdf-btn,
    .aipdf-result-actions,
    .aipdf-result-actions button {
        width: 100%;
    }

    .aipdf-upload-box {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: 0;
        padding: 22px 16px;
    }

    .aipdf-upload-icon {
        margin: 0 auto;
    }

    .aipdf-actions,
    .aipdf-result-actions {
        flex-direction: column;
    }

    .aipdf-result-head {
        flex-direction: column;
    }

    .aipdf-output {
        min-height: 360px;
    }
}

/* 2026-05-30: screenshot-matched hero with uploaded background and icon assets */
@media (max-width: 1180px) {
    .aipdf-hero-copy {
        width: min(650px, 62%);
        min-width: 0;
    }

    .aipdf-benefits li {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 14px;
        padding: 16px 18px;
    }

    .aipdf-benefit-icon {
        width: 86px;
        height: 86px;
    }
}

@media (max-width: 900px) {
    .aipdf-hero-banner {
        min-height: auto;
        padding: 30px 22px 22px;
        background-position: 66% center;
    }

    .aipdf-hero-banner::before {
        background:
            linear-gradient(90deg, rgba(3, 7, 41, .82) 0%, rgba(3, 7, 41, .58) 52%, rgba(3, 7, 41, .08) 100%),
            linear-gradient(180deg, rgba(3, 7, 41, .02) 0%, rgba(3, 7, 41, .5) 100%);
    }

    .aipdf-hero-copy {
        width: 100%;
        max-width: 660px;
        min-width: 0;
    }

    .aipdf-hero-copy h2 {
        font-size: clamp(48px, 10vw, 84px);
    }

    .aipdf-benefits {
        grid-template-columns: 1fr;
        margin-top: 34px;
    }
}

@media (max-width: 768px) {
    .aipdf-hero-banner {
        min-height: auto;
        display: flex;
        padding: 24px 12px 18px;
        gap: 18px;
        border-radius: 26px;
        background-position: 62% center;
    }

    .aipdf-hero-banner::before {
        background:
            linear-gradient(90deg, rgba(3, 7, 41, .9) 0%, rgba(3, 7, 41, .72) 58%, rgba(3, 7, 41, .28) 100%),
            linear-gradient(180deg, rgba(3, 7, 41, .05) 0%, rgba(3, 7, 41, .64) 100%);
    }

    .aipdf-kicker {
        min-height: 46px;
        padding: 8px 15px 8px 10px;
        font-size: 12px;
    }

    .aipdf-kicker img {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
    }

    .aipdf-hero-copy {
        width: 100%;
        max-width: 100%;
    }

    .aipdf-hero-copy h2 {
        margin-top: 0;
        font-size: clamp(38px, 12.5vw, 56px);
        letter-spacing: -.06em;
    }

    .aipdf-hero-copy p {
        max-width: 96%;
        font-size: 16px;
        line-height: 1.42;
    }

    .aipdf-hero-actions {
        align-items: stretch;
        gap: 12px;
        margin-top: 22px;
    }

    .aipdf-hero-btn-primary,
    .aipdf-hero-btn-link {
        width: 100%;
    }

    .aipdf-hero-btn-primary {
        min-height: 58px;
        padding: 10px 12px 10px 22px;
        justify-content: space-between;
        font-size: 18px;
    }

    .aipdf-hero-btn-primary i,
    .aipdf-hero-btn-link i {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .aipdf-hero-btn-primary i img,
    .aipdf-hero-btn-link i img {
        width: 46px;
        height: 46px;
    }

    .aipdf-hero-btn-link {
        justify-content: center;
        min-height: 46px;
        text-align: center;
    }

    .aipdf-hero-btn-link span {
        text-align: center;
    }

    .aipdf-benefits {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        width: 100%;
        margin: 16px auto 0;
        padding: 0;
    }

    .aipdf-benefits li {
        width: 100%;
        max-width: 480px;
        min-height: 98px;
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 11px;
        padding: 13px 14px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 22px;
    }

    .aipdf-benefit-icon {
        width: 66px;
        height: 66px;
    }

    .aipdf-benefits strong {
        font-size: 20px;
    }

    .aipdf-benefits em {
        margin-top: 6px;
        font-size: 14px;
    }
}


/* 2026-05-30: compact hero fix — remove kicker visually, reduce desktop height, center mobile benefit cards */
.aipdf-kicker {
    display: none !important;
}

@media (min-width: 901px) {
    .aipdf-hero-banner {
        min-height: clamp(390px, 34vw, 560px);
        gap: clamp(18px, 2vw, 26px);
        padding: clamp(30px, 3.2vw, 54px) clamp(30px, 4.2vw, 70px) clamp(18px, 1.8vw, 24px);
        border-radius: 34px;
    }

    .aipdf-hero-copy {
        width: min(630px, 52%);
        min-width: 500px;
        padding-top: 0;
    }

    .aipdf-hero-copy h2 {
        margin-top: 0;
        margin-bottom: clamp(12px, 1.2vw, 16px);
        font-size: clamp(46px, 4.35vw, 78px);
        line-height: .94;
    }

    .aipdf-hero-copy p {
        font-size: clamp(16px, 1.12vw, 20px);
    }

    .aipdf-hero-actions {
        margin-top: clamp(18px, 1.8vw, 25px);
    }

    .aipdf-hero-btn-primary,
    .aipdf-hero-btn-link {
        min-height: 56px;
    }

    .aipdf-benefits {
        gap: clamp(12px, 1.35vw, 20px);
        margin-top: clamp(12px, 1.3vw, 18px);
    }

    .aipdf-benefits li {
        min-height: clamp(86px, 6.5vw, 116px);
        grid-template-columns: clamp(62px, 5.2vw, 86px) minmax(0, 1fr);
        gap: clamp(10px, 1vw, 16px);
        padding: clamp(10px, .95vw, 16px) clamp(14px, 1.45vw, 22px);
        border-radius: 22px;
    }

    .aipdf-benefit-icon {
        width: clamp(60px, 5.1vw, 84px);
        height: clamp(60px, 5.1vw, 84px);
    }

    .aipdf-benefits strong {
        font-size: clamp(17px, 1.25vw, 23px);
    }

    .aipdf-benefits em {
        margin-top: 6px;
        font-size: clamp(13px, .92vw, 16px);
    }
}

@media (max-width: 768px) {
    .aipdf-hero-banner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .aipdf-benefits {
        justify-items: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
    }

    .aipdf-benefits li {
        width: 100%;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}


/* 2026-05-30: mobile CTA contrast + exact centering for buttons and benefit cards */
@media (max-width: 768px) {
    .aipdf-app .aipdf-hero-actions {
        width: 100%;
        max-width: 430px;
        margin: 22px auto 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .aipdf-app .aipdf-hero-btn-primary,
    .aipdf-app .aipdf-hero-btn-link {
        position: relative;
        width: min(100%, 390px);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, .48);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .aipdf-app .aipdf-hero-btn-primary {
        min-height: 58px;
        padding: 10px 60px;
        color: #071547;
        background: linear-gradient(90deg, #ffffff 0%, #e8fbff 48%, #dbeafe 100%);
        box-shadow:
            0 18px 42px rgba(0, 229, 255, .28),
            0 0 0 1px rgba(103, 232, 249, .45),
            inset 0 1px 0 rgba(255, 255, 255, .95);
        text-shadow: none;
    }

    .aipdf-app .aipdf-hero-btn-primary span {
        display: block;
        width: 100%;
        text-align: center;
        color: #071547;
    }

    .aipdf-app .aipdf-hero-btn-primary i {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .aipdf-app .aipdf-hero-btn-link {
        min-height: 50px;
        padding: 8px 54px;
        color: #ffffff;
        background: linear-gradient(90deg, rgba(8, 18, 70, .84), rgba(54, 35, 150, .72));
        box-shadow:
            0 16px 34px rgba(5, 10, 45, .34),
            0 0 0 1px rgba(103, 232, 249, .32),
            inset 0 1px 0 rgba(255, 255, 255, .22);
        text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
    }

    .aipdf-app .aipdf-hero-btn-link span {
        display: block;
        width: 100%;
        text-align: center;
        color: #ffffff;
    }

    .aipdf-app .aipdf-hero-btn-link i {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .aipdf-app .aipdf-hero-btn-primary i img,
    .aipdf-app .aipdf-hero-btn-link i img {
        width: 44px;
        height: 44px;
    }

    .aipdf-app .aipdf-benefits {
        width: 100% !important;
        max-width: 430px !important;
        margin: 18px auto 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        list-style: none !important;
    }

    .aipdf-app .aipdf-benefits li {
        width: 100% !important;
        max-width: 430px !important;
        margin: 0 auto !important;
        justify-self: center !important;
        align-self: center !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
}

/* 2026-05-30: mobile center hero headline/subtitle and lock benefit cards to true center */
@media (max-width: 768px) {
    .aipdf-app .aipdf-hero-copy,
    .aipdf-app .aipdf-hero-copy h2,
    .aipdf-app .aipdf-hero-copy p {
        text-align: center !important;
    }

    .aipdf-app .aipdf-hero-copy h2 {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .aipdf-app .aipdf-hero-copy h2 span,
    .aipdf-app .aipdf-hero-copy h2 strong {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        padding-right: 0 !important;
    }

    .aipdf-app .aipdf-hero-copy p {
        width: 100% !important;
        max-width: 430px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .aipdf-app .aipdf-benefits {
        align-self: center !important;
        width: min(430px, calc(100vw - 48px)) !important;
        max-width: min(430px, calc(100vw - 48px)) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .aipdf-app .aipdf-benefits li {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* 2026-05-30: make How it works readable on desktop and perfectly balanced on mobile */
.aipdf-app .aipdf-hero-btn-link {
    color: #ffffff !important;
    border-radius: 999px;
    padding: 7px 18px 7px 10px;
    background: linear-gradient(90deg, rgba(9, 18, 76, .68), rgba(77, 54, 185, .52));
    border: 1px solid rgba(255, 255, 255, .34);
    box-shadow:
        0 14px 32px rgba(12, 18, 70, .22),
        inset 0 1px 0 rgba(255, 255, 255, .22);
    text-shadow: 0 1px 14px rgba(0, 0, 0, .42);
}

.aipdf-app .aipdf-hero-btn-link span {
    color: #ffffff !important;
}

.aipdf-app .aipdf-hero-btn-link i {
    display: grid !important;
    place-items: center !important;
    overflow: visible;
}

.aipdf-app .aipdf-hero-btn-link i img {
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .aipdf-app .aipdf-hero-btn-link {
        display: grid !important;
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        align-items: center !important;
        justify-items: center !important;
        gap: 0 !important;
        min-height: 52px !important;
        padding: 7px 12px !important;
        border-radius: 999px !important;
        color: #ffffff !important;
        background: linear-gradient(90deg, rgba(7, 15, 64, .96), rgba(56, 40, 162, .9), rgba(16, 111, 180, .88)) !important;
        border: 1px solid rgba(255, 255, 255, .55) !important;
        box-shadow:
            0 18px 38px rgba(5, 10, 45, .38),
            0 0 0 1px rgba(103, 232, 249, .26),
            inset 0 1px 0 rgba(255, 255, 255, .28) !important;
    }

    .aipdf-app .aipdf-hero-btn-link::after {
        content: "";
        display: block;
        width: 40px;
        height: 40px;
        grid-column: 3;
        grid-row: 1;
    }

    .aipdf-app .aipdf-hero-btn-link i {
        position: static !important;
        grid-column: 1;
        grid-row: 1;
        width: 40px !important;
        height: 40px !important;
        flex: 0 0 40px !important;
        transform: none !important;
        margin: 0 !important;
        display: grid !important;
        place-items: center !important;
    }

    .aipdf-app .aipdf-hero-btn-link i img {
        width: 34px !important;
        height: 34px !important;
        display: block !important;
        object-fit: contain !important;
    }

    .aipdf-app .aipdf-hero-btn-link span {
        grid-column: 2;
        grid-row: 1;
        width: 100% !important;
        text-align: center !important;
        color: #ffffff !important;
        line-height: 1.1 !important;
        display: block !important;
    }
}


/* 2026-05-30: premium tool card redesign — screenshot-matched PDF form */
.aipdf-app .aipdf-shell {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-top: 26px;
    border-radius: 42px;
}

.aipdf-app .aipdf-main-card,
.aipdf-app .aipdf-result-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    max-width: 100%;
    border-radius: 34px;
    border: 1px solid rgba(191, 219, 254, .96);
    background:
        radial-gradient(circle at 96% 8%, rgba(255, 144, 233, .26) 0, rgba(255, 144, 233, .16) 18%, transparent 43%),
        radial-gradient(circle at 3% 0%, rgba(191, 219, 254, .78) 0, rgba(219, 234, 254, .32) 22%, transparent 48%),
        radial-gradient(circle at 52% 105%, rgba(219, 234, 254, .45) 0, transparent 44%),
        linear-gradient(135deg, #ffffff 0%, #fbfdff 42%, #fff6ff 100%);
    box-shadow:
        0 28px 75px rgba(59, 130, 246, .18),
        0 12px 34px rgba(15, 23, 42, .08),
        inset 0 1px 0 rgba(255, 255, 255, .9),
        inset 0 0 0 1px rgba(255, 255, 255, .45);
    padding: clamp(26px, 3.15vw, 48px);
}

.aipdf-app .aipdf-main-card::before,
.aipdf-app .aipdf-result-card::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 80px;
    height: 80px;
    border-radius: 28px 0 70px 0;
    opacity: .9;
    pointer-events: none;
    z-index: -1;
}

.aipdf-app .aipdf-main-card::after,
.aipdf-app .aipdf-result-card::after {
    content: "";
    position: absolute;
    right: -12%;
    top: 17%;
    width: 42%;
    height: 34%;
    border-radius: 999px;
    background:
        radial-gradient(circle at 25% 35%, rgba(255, 255, 255, .78) 0 2px, transparent 3px),
        radial-gradient(circle at 60% 18%, rgba(255, 255, 255, .78) 0 2px, transparent 3px),
        radial-gradient(circle at 72% 62%, rgba(255, 255, 255, .7) 0 2px, transparent 3px),
        radial-gradient(ellipse at center, rgba(249, 168, 212, .26) 0, rgba(219, 234, 254, .32) 56%, transparent 72%);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .42);
    transform: rotate(-9deg);
    opacity: .8;
    pointer-events: none;
    z-index: -1;
}

.aipdf-app .aipdf-card-head {
    position: relative;
    z-index: 2;
    margin-bottom: clamp(18px, 1.7vw, 26px);
}

.aipdf-app .aipdf-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(18px, 1.8vw, 26px);
}

.aipdf-app .aipdf-card-label,
.aipdf-app .aipdf-limit-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border-radius: 999px;
    min-height: 46px;
    padding: 8px 18px 8px 12px;
    border: 1px solid rgba(125, 211, 252, .48);
    background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(224, 242, 254, .62) 52%, rgba(250, 232, 255, .7));
    box-shadow:
        0 12px 24px rgba(59, 130, 246, .15),
        inset 0 1px 0 rgba(255, 255, 255, .92),
        inset 0 -8px 20px rgba(147, 197, 253, .18);
    color: #0b4eea;
    font-size: clamp(13px, .95vw, 18px);
    font-weight: 1000;
    letter-spacing: -.01em;
    text-transform: none;
    line-height: 1;
}

.aipdf-app .aipdf-card-label img,
.aipdf-app .aipdf-limit-pill img {
    width: clamp(28px, 2.2vw, 38px);
    height: clamp(28px, 2.2vw, 38px);
    object-fit: contain;
    flex: 0 0 auto;
    margin-right: 8px;
    filter: drop-shadow(0 8px 10px rgba(37, 99, 235, .18));
}

.aipdf-app .aipdf-limit-pill {
    margin-left: auto;
    padding-right: 20px;
    color: #0757f7;
    background: linear-gradient(135deg, rgba(239, 246, 255, .92), rgba(236, 254, 255, .72) 42%, rgba(253, 232, 255, .86));
}

.aipdf-app .aipdf-card-head h3 {
    margin: 0;
    color: #071142;
    font-size: clamp(40px, 4.15vw, 68px);
    line-height: .98;
    letter-spacing: -.062em;
    font-weight: 1000;
}

.aipdf-app .aipdf-card-head h3 span {
    color: transparent;
    background: linear-gradient(90deg, #0b4dff 0%, #7c3aed 42%, #ff2fc8 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.aipdf-app .aipdf-card-head p {
    margin: clamp(12px, 1vw, 16px) 0 0;
    color: #39559f;
    font-size: clamp(16px, 1.25vw, 22px);
    line-height: 1.35;
    font-weight: 500;
}

.aipdf-app .aipdf-upload-field {
    position: relative;
    z-index: 2;
    gap: 8px;
    margin: 0 0 clamp(18px, 1.7vw, 28px);
}

.aipdf-app .aipdf-field-title,
.aipdf-app .aipdf-field-caption,
.aipdf-app .aipdf-output-wrap > span {
    display: block;
    color: #071142;
    font-size: clamp(15px, 1vw, 20px);
    font-weight: 1000;
    letter-spacing: -.02em;
}

.aipdf-app .aipdf-upload-box {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(105px, 160px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(18px, 3vw, 52px);
    width: 100%;
    min-height: clamp(152px, 14vw, 230px);
    padding: clamp(22px, 2.2vw, 34px) clamp(22px, 3.3vw, 58px);
    border: 2px dashed transparent;
    border-radius: 25px;
    background:
        linear-gradient(135deg, rgba(248, 251, 255, .9), rgba(255, 248, 255, .94)) padding-box,
        linear-gradient(90deg, #158bff 0%, #4d8cff 45%, #ff36d4 100%) border-box;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .84),
        0 18px 42px rgba(59, 130, 246, .08);
}

.aipdf-app .aipdf-upload-box::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 14px;
    bottom: 14px;
    width: min(260px, 31%);
    background-image: radial-gradient(rgba(59, 130, 246, .14) 1.4px, transparent 1.8px);
    background-size: 14px 14px;
    opacity: .72;
    pointer-events: none;
}

.aipdf-app .aipdf-upload-box::after {
    content: "";
    position: absolute;
    right: -4%;
    bottom: -26%;
    width: 34%;
    min-width: 250px;
    height: 72%;
    border-radius: 999px 999px 0 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(255, 255, 255, .88) 0 2px, transparent 3px),
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .78) 0 2px, transparent 3px),
        radial-gradient(circle at 78% 48%, rgba(255, 255, 255, .74) 0 2px, transparent 3px),
        radial-gradient(ellipse at center, rgba(255, 255, 255, .52) 0, rgba(221, 214, 254, .36) 50%, rgba(255, 255, 255, 0) 72%);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .42);
    opacity: .8;
    pointer-events: none;
}

.aipdf-app .aipdf-upload-box:hover,
.aipdf-app .aipdf-upload-box.is-dragover {
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .88),
        0 22px 54px rgba(59, 130, 246, .16),
        0 0 0 4px rgba(59, 130, 246, .08);
}

.aipdf-app .aipdf-upload-icon {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: clamp(100px, 9.2vw, 148px);
    height: clamp(100px, 9.2vw, 148px);
    border-radius: 0;
    color: inherit;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 18px 22px rgba(91, 33, 182, .18));
}

.aipdf-app .aipdf-upload-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.aipdf-app .aipdf-upload-copy {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-right: clamp(0px, 6vw, 160px);
}

.aipdf-app .aipdf-upload-copy strong {
    color: #071142;
    font-size: clamp(22px, 2.25vw, 38px);
    line-height: 1.06;
    letter-spacing: -.044em;
    font-weight: 1000;
}

.aipdf-app .aipdf-upload-copy em {
    margin-top: 12px;
    color: #39559f;
    font-size: clamp(14px, 1.05vw, 18px);
    line-height: 1.38;
    font-style: normal;
    font-weight: 500;
}

.aipdf-app .aipdf-upload-mini {
    display: grid;
    place-items: center;
    width: clamp(36px, 3.15vw, 54px);
    height: clamp(36px, 3.15vw, 54px);
    margin-top: clamp(10px, 1.3vw, 20px);
    filter: drop-shadow(0 10px 11px rgba(91, 33, 182, .18));
}

.aipdf-app .aipdf-upload-mini img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.aipdf-app .aipdf-grid.two {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 30px);
    margin: 0 0 clamp(16px, 1.4vw, 24px);
}

.aipdf-app .aipdf-field.aipdf-field-with-icon {
    display: grid;
    grid-template-columns: clamp(58px, 4.6vw, 78px) minmax(0, 1fr);
    align-items: end;
    gap: clamp(12px, 1.2vw, 18px);
    width: 100%;
    min-width: 0;
    margin: 0;
}

.aipdf-app .aipdf-field-with-icon > .aipdf-choice-icon {
    display: grid !important;
    place-items: center !important;
    width: clamp(58px, 4.6vw, 78px);
    height: clamp(58px, 4.6vw, 78px);
    margin: 0 0 1px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(238,242,255,.72));
    border: 1px solid rgba(191, 219, 254, .86);
    box-shadow:
        0 13px 26px rgba(59, 130, 246, .12),
        inset 0 1px 0 rgba(255, 255, 255, .9);
}

.aipdf-app .aipdf-choice-icon img {
    display: block;
    width: 88%;
    height: 88%;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(91, 33, 182, .12));
}

.aipdf-app .aipdf-field-with-icon > .aipdf-field-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 7px !important;
    width: 100%;
    min-width: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.aipdf-app .aipdf-field-caption {
    padding-left: 0;
}

.aipdf-app .aipdf-field select {
    width: 100%;
    min-height: clamp(56px, 4.3vw, 66px);
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(191, 219, 254, .96);
    border-radius: 18px;
    padding: 0 clamp(42px, 3.2vw, 58px) 0 clamp(17px, 1.45vw, 24px);
    background:
        linear-gradient(45deg, transparent 50%, #071142 50%) calc(100% - 25px) 50% / 8px 8px no-repeat,
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(248, 251, 255, .96));
    box-shadow:
        0 10px 22px rgba(59, 130, 246, .08),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    color: #071142;
    font-size: clamp(17px, 1.25vw, 22px);
    font-weight: 500;
    outline: none;
}

.aipdf-app .aipdf-field select:focus {
    border-color: #60a5fa;
    background:
        linear-gradient(45deg, transparent 50%, #071142 50%) calc(100% - 25px) 50% / 8px 8px no-repeat,
        linear-gradient(135deg, #ffffff, #f8fbff);
    box-shadow:
        0 0 0 4px rgba(59, 130, 246, .12),
        0 12px 28px rgba(59, 130, 246, .1),
        inset 0 1px 0 rgba(255, 255, 255, .94);
}

.aipdf-app .aipdf-safety-note {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: clamp(60px, 4.7vw, 80px) minmax(0, 1fr);
    gap: clamp(12px, 1.2vw, 20px);
    align-items: center;
    margin: 0 0 clamp(18px, 1.4vw, 26px);
    padding: clamp(12px, 1.2vw, 18px) clamp(16px, 1.8vw, 24px);
    border-radius: 21px;
    border: 1px solid rgba(191, 219, 254, .92);
    background: linear-gradient(135deg, rgba(240, 249, 255, .9), rgba(255, 248, 255, .88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

.aipdf-app .aipdf-safety-note .aipdf-note-icon {
    display: grid;
    place-items: center;
    width: clamp(58px, 4.4vw, 74px);
    height: clamp(58px, 4.4vw, 74px);
    min-height: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 10px 12px rgba(37, 99, 235, .12));
}

.aipdf-app .aipdf-safety-note .aipdf-note-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.aipdf-app .aipdf-safety-note p {
    margin: 0;
    color: #39559f;
    font-size: clamp(14px, 1.05vw, 18px);
    line-height: 1.42;
    font-weight: 500;
}

.aipdf-app .aipdf-safety-note strong {
    color: #071142;
    font-size: clamp(15px, 1.12vw, 19px);
    font-weight: 1000;
}

.aipdf-app .aipdf-actions {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.3vw, 20px);
    margin-top: 6px;
}

.aipdf-app .aipdf-btn {
    min-height: clamp(56px, 4.3vw, 70px);
    border-radius: 18px;
    padding: 10px clamp(18px, 1.7vw, 28px);
    font-size: clamp(16px, 1.25vw, 22px);
    font-weight: 1000;
    letter-spacing: -.025em;
    border: 1px solid rgba(191, 219, 254, .88);
}

.aipdf-app .aipdf-btn img {
    display: block;
    width: clamp(31px, 2.6vw, 48px);
    height: clamp(31px, 2.6vw, 48px);
    object-fit: contain;
    flex: 0 0 auto;
    margin-left: -4px;
    filter: drop-shadow(0 8px 10px rgba(37, 99, 235, .16));
}

.aipdf-app .aipdf-btn-ghost {
    color: #071142;
    background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(248, 251, 255, .94));
    box-shadow:
        0 12px 26px rgba(59, 130, 246, .12),
        inset 0 1px 0 rgba(255, 255, 255, .9);
}

.aipdf-app .aipdf-btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #078bff 0%, #5b4dff 48%, #f42bd2 100%);
    border-color: rgba(125, 211, 252, .76);
    box-shadow:
        0 16px 34px rgba(99, 102, 241, .28),
        0 0 0 3px rgba(216, 180, 254, .12),
        inset 0 1px 0 rgba(255, 255, 255, .42);
}

.aipdf-app .aipdf-btn-primary:hover,
.aipdf-app .aipdf-btn-ghost:hover {
    transform: translateY(-1px);
}

.aipdf-app .aipdf-result-card {
    margin-top: 26px;
    background:
        radial-gradient(circle at 96% 8%, rgba(168, 85, 247, .18) 0, transparent 42%),
        linear-gradient(135deg, #ffffff 0%, #fbfdff 52%, #fff7ff 100%);
}

.aipdf-app .aipdf-result-head {
    position: relative;
    z-index: 2;
    align-items: flex-start;
}

.aipdf-app .aipdf-result-head h3 {
    margin: 12px 0 0;
    color: #071142;
    font-size: clamp(30px, 2.8vw, 44px);
    line-height: 1;
    letter-spacing: -.045em;
    font-weight: 1000;
}

.aipdf-app .aipdf-result-actions button {
    border: 1px solid rgba(191, 219, 254, .88);
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    color: #0b4eea;
    box-shadow: 0 10px 20px rgba(59, 130, 246, .08);
}

.aipdf-app .aipdf-output-wrap {
    position: relative;
    z-index: 2;
}

.aipdf-app .aipdf-output {
    border: 1px solid rgba(191, 219, 254, .92);
    border-radius: 22px;
    background: rgba(255, 255, 255, .86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 14px 32px rgba(59, 130, 246, .08);
}

@media (max-width: 900px) {
    .aipdf-app .aipdf-card-topline {
        align-items: flex-start;
    }

    .aipdf-app .aipdf-upload-box {
        grid-template-columns: 126px minmax(0, 1fr);
        gap: 22px;
    }

    .aipdf-app .aipdf-upload-copy {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .aipdf-app .aipdf-shell {
        margin-top: 18px;
    }

    .aipdf-app .aipdf-main-card,
    .aipdf-app .aipdf-result-card {
        border-radius: 26px;
        padding: 20px 14px;
    }

    .aipdf-app .aipdf-main-card::after,
    .aipdf-app .aipdf-result-card::after {
        width: 78%;
        height: 22%;
        right: -28%;
        top: 17%;
        opacity: .42;
    }

    .aipdf-app .aipdf-card-topline {
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-bottom: 18px;
    }

    .aipdf-app .aipdf-card-label,
    .aipdf-app .aipdf-limit-pill {
        min-height: 40px;
        padding: 7px 13px 7px 9px;
        font-size: 13px;
    }

    .aipdf-app .aipdf-card-label img,
    .aipdf-app .aipdf-limit-pill img {
        width: 28px;
        height: 28px;
        margin-right: 6px;
    }

    .aipdf-app .aipdf-limit-pill {
        margin-left: 0;
    }

    .aipdf-app .aipdf-card-head h3,
    .aipdf-app .aipdf-card-head p {
        text-align: center;
    }

    .aipdf-app .aipdf-card-head h3 {
        font-size: clamp(36px, 12vw, 48px);
        letter-spacing: -.055em;
    }

    .aipdf-app .aipdf-card-head p {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
        font-size: 16px;
    }

    .aipdf-app .aipdf-field-title,
    .aipdf-app .aipdf-field-caption {
        font-size: 15px;
    }

    .aipdf-app .aipdf-upload-box {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 12px;
        padding: 22px 14px;
        border-radius: 22px;
        text-align: center;
    }

    .aipdf-app .aipdf-upload-box::before {
        width: 100%;
        opacity: .45;
    }

    .aipdf-app .aipdf-upload-box::after {
        width: 85%;
        right: -40%;
        bottom: -24%;
        opacity: .42;
    }

    .aipdf-app .aipdf-upload-icon {
        width: 102px;
        height: 102px;
        margin: 0 auto;
    }

    .aipdf-app .aipdf-upload-copy {
        padding-right: 0;
    }

    .aipdf-app .aipdf-upload-copy strong {
        font-size: clamp(22px, 7.5vw, 30px);
        line-height: 1.1;
    }

    .aipdf-app .aipdf-upload-copy em {
        font-size: 14px;
        line-height: 1.35;
    }

    .aipdf-app .aipdf-upload-mini {
        width: 42px;
        height: 42px;
        margin-top: 8px;
    }

    .aipdf-app .aipdf-grid.two {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .aipdf-app .aipdf-field.aipdf-field-with-icon {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 12px;
        align-items: end;
    }

    .aipdf-app .aipdf-field-with-icon > .aipdf-choice-icon {
        width: 58px;
        height: 58px;
        border-radius: 16px;
    }

    .aipdf-app .aipdf-field select {
        min-height: 56px;
        font-size: 17px;
        border-radius: 17px;
    }

    .aipdf-app .aipdf-safety-note {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 10px;
        padding: 13px 12px;
        border-radius: 18px;
    }

    .aipdf-app .aipdf-safety-note .aipdf-note-icon {
        width: 52px;
        height: 52px;
    }

    .aipdf-app .aipdf-safety-note p {
        font-size: 13px;
    }

    .aipdf-app .aipdf-actions {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 11px;
    }

    .aipdf-app .aipdf-actions .aipdf-btn {
        width: 100%;
        min-height: 58px;
        border-radius: 18px;
        font-size: 18px;
    }

    .aipdf-app .aipdf-btn img {
        width: 38px;
        height: 38px;
    }

    .aipdf-app .aipdf-result-head {
        flex-direction: column;
    }

    .aipdf-app .aipdf-result-actions,
    .aipdf-app .aipdf-result-actions button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .aipdf-app .aipdf-card-topline {
        flex-direction: column;
    }

    .aipdf-app .aipdf-field.aipdf-field-with-icon {
        grid-template-columns: 1fr;
    }

    .aipdf-app .aipdf-field-with-icon > .aipdf-choice-icon {
        margin: 0 auto -2px;
    }

    .aipdf-app .aipdf-field-caption {
        text-align: center;
    }
}

/* 2026-05-30: compact card, success upload state, result export controls */
.aipdf-app .aipdf-shell {
    margin-top: 20px !important;
}

.aipdf-app .aipdf-main-card,
.aipdf-app .aipdf-result-card {
    border-radius: 30px !important;
    padding: clamp(18px, 2.2vw, 34px) !important;
}

.aipdf-app .aipdf-main-card::before,
.aipdf-app .aipdf-result-card::before {
    width: 62px !important;
    height: 62px !important;
}

.aipdf-app .aipdf-card-head {
    margin-bottom: clamp(12px, 1.2vw, 18px) !important;
}

.aipdf-app .aipdf-card-topline {
    margin-bottom: clamp(10px, 1vw, 16px) !important;
}

.aipdf-app .aipdf-card-label,
.aipdf-app .aipdf-limit-pill {
    min-height: 40px !important;
    padding: 7px 16px 7px 10px !important;
    font-size: clamp(12px, .85vw, 15px) !important;
}

.aipdf-app .aipdf-card-label img,
.aipdf-app .aipdf-limit-pill img {
    width: clamp(24px, 1.7vw, 32px) !important;
    height: clamp(24px, 1.7vw, 32px) !important;
}

.aipdf-app .aipdf-card-head h3 {
    font-size: clamp(34px, 3.35vw, 52px) !important;
    line-height: .98 !important;
}

.aipdf-app .aipdf-card-head p {
    margin-top: 8px !important;
    font-size: clamp(14px, 1.02vw, 18px) !important;
    line-height: 1.32 !important;
}

.aipdf-app .aipdf-upload-field {
    margin-bottom: clamp(12px, 1.2vw, 18px) !important;
}

.aipdf-app .aipdf-field-title,
.aipdf-app .aipdf-field-caption,
.aipdf-app .aipdf-output-wrap > span {
    font-size: clamp(14px, .92vw, 17px) !important;
}

.aipdf-app .aipdf-upload-box {
    grid-template-columns: minmax(84px, 122px) minmax(0, 1fr) !important;
    min-height: clamp(120px, 10.2vw, 168px) !important;
    padding: clamp(14px, 1.55vw, 24px) clamp(16px, 2.45vw, 38px) !important;
    gap: clamp(14px, 2vw, 34px) !important;
    border-radius: 22px !important;
}

.aipdf-app .aipdf-upload-icon {
    width: clamp(82px, 7.1vw, 118px) !important;
    height: clamp(82px, 7.1vw, 118px) !important;
}

.aipdf-app .aipdf-upload-copy {
    min-width: 0 !important;
    padding-right: clamp(0px, 4vw, 110px) !important;
}

.aipdf-app .aipdf-upload-copy strong {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    font-size: clamp(20px, 1.8vw, 30px) !important;
    line-height: 1.08 !important;
}

.aipdf-app .aipdf-upload-copy em {
    margin-top: 8px !important;
    font-size: clamp(13px, .92vw, 16px) !important;
}

.aipdf-app .aipdf-upload-mini {
    width: clamp(30px, 2.45vw, 42px) !important;
    height: clamp(30px, 2.45vw, 42px) !important;
    margin-top: clamp(6px, .8vw, 12px) !important;
}

.aipdf-app .aipdf-upload-box.is-selected {
    background:
        linear-gradient(135deg, rgba(240, 253, 244, .96), rgba(236, 253, 245, .92) 45%, rgba(255, 248, 255, .94)) padding-box,
        linear-gradient(90deg, #22c55e 0%, #14b8a6 45%, #06b6d4 100%) border-box !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .88),
        0 18px 42px rgba(34, 197, 94, .14),
        0 0 0 4px rgba(34, 197, 94, .08) !important;
}

.aipdf-app .aipdf-upload-box.is-selected .aipdf-upload-copy em {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    color: #047857 !important;
    font-weight: 900 !important;
}

.aipdf-app .aipdf-upload-box.is-selected .aipdf-upload-copy em::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #22c55e, #10b981);
    box-shadow: 0 7px 13px rgba(34, 197, 94, .22);
    flex: 0 0 auto;
}

.aipdf-app .aipdf-grid.two {
    gap: clamp(12px, 1.35vw, 22px) !important;
    margin-bottom: clamp(12px, 1.1vw, 18px) !important;
}

.aipdf-app .aipdf-field.aipdf-field-with-icon {
    grid-template-columns: clamp(48px, 3.75vw, 62px) minmax(0, 1fr) !important;
    gap: clamp(10px, 1vw, 14px) !important;
}

.aipdf-app .aipdf-field-with-icon > .aipdf-choice-icon {
    width: clamp(48px, 3.75vw, 62px) !important;
    height: clamp(48px, 3.75vw, 62px) !important;
    border-radius: 15px !important;
}

.aipdf-app .aipdf-field-with-icon > .aipdf-field-body {
    gap: 5px !important;
}

.aipdf-app .aipdf-field select {
    min-height: clamp(48px, 3.45vw, 56px) !important;
    border-radius: 16px !important;
    font-size: clamp(15px, 1.05vw, 18px) !important;
}

.aipdf-app .aipdf-safety-note {
    grid-template-columns: clamp(48px, 3.8vw, 62px) minmax(0, 1fr) !important;
    gap: clamp(9px, .9vw, 14px) !important;
    padding: clamp(9px, .92vw, 14px) clamp(12px, 1.25vw, 18px) !important;
    margin-bottom: clamp(12px, 1.1vw, 18px) !important;
    border-radius: 18px !important;
}

.aipdf-app .aipdf-safety-note .aipdf-note-icon {
    width: clamp(46px, 3.55vw, 58px) !important;
    height: clamp(46px, 3.55vw, 58px) !important;
}

.aipdf-app .aipdf-safety-note p {
    font-size: clamp(13px, .92vw, 16px) !important;
    line-height: 1.34 !important;
}

.aipdf-app .aipdf-safety-note strong {
    font-size: clamp(14px, .96vw, 17px) !important;
}

.aipdf-app .aipdf-actions {
    margin-top: 2px !important;
    gap: clamp(10px, 1vw, 16px) !important;
}

.aipdf-app .aipdf-btn {
    min-height: clamp(48px, 3.4vw, 58px) !important;
    border-radius: 16px !important;
    padding: 8px clamp(16px, 1.35vw, 24px) !important;
    font-size: clamp(15px, 1.05vw, 18px) !important;
}

.aipdf-app .aipdf-btn img {
    width: clamp(28px, 2.1vw, 38px) !important;
    height: clamp(28px, 2.1vw, 38px) !important;
}

.aipdf-app .aipdf-result-card {
    margin-top: 20px !important;
}

.aipdf-app .aipdf-result-head {
    display: flex !important;
    justify-content: space-between !important;
    gap: 18px !important;
    margin-bottom: 14px !important;
}

.aipdf-app .aipdf-result-head h3 {
    margin-top: 9px !important;
    font-size: clamp(28px, 2.35vw, 38px) !important;
}

.aipdf-app .aipdf-result-actions {
    position: relative !important;
    z-index: 5 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.aipdf-app .aipdf-result-actions button,
.aipdf-app .aipdf-download-toggle {
    min-height: 40px !important;
    padding: 9px 13px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.aipdf-app .aipdf-download-wrap {
    position: relative !important;
    display: inline-block !important;
}

.aipdf-app .aipdf-download-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    z-index: 20 !important;
    width: 178px !important;
    padding: 8px !important;
    border: 1px solid rgba(191, 219, 254, .96) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .14), inset 0 1px 0 rgba(255,255,255,.9) !important;
}

.aipdf-app .aipdf-download-menu[hidden] {
    display: none !important;
}

.aipdf-app .aipdf-download-menu button {
    display: flex !important;
    width: 100% !important;
    justify-content: flex-start !important;
    min-height: 38px !important;
    padding: 9px 10px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: transparent !important;
    color: #071142 !important;
    box-shadow: none !important;
    text-align: left !important;
}

.aipdf-app .aipdf-download-menu button:hover {
    background: linear-gradient(135deg, rgba(219,234,254,.92), rgba(250,232,255,.86)) !important;
    color: #0b4eea !important;
}

.aipdf-app .aipdf-summary-preview {
    position: relative !important;
    z-index: 2 !important;
    max-height: 360px !important;
    overflow: auto !important;
    margin: 0 0 14px !important;
    padding: 18px 18px 16px !important;
    border: 1px solid rgba(191, 219, 254, .95) !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,251,255,.92)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 14px 30px rgba(59,130,246,.08) !important;
    color: #111827 !important;
}

.aipdf-app .aipdf-summary-preview[hidden] {
    display: none !important;
}

.aipdf-app .aipdf-summary-preview h4 {
    margin: 18px 0 8px !important;
    color: #071142 !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 1000 !important;
}

.aipdf-app .aipdf-summary-preview h4:first-child {
    margin-top: 0 !important;
}

.aipdf-app .aipdf-summary-preview p,
.aipdf-app .aipdf-summary-preview li {
    color: #2f426d !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

.aipdf-app .aipdf-summary-preview p {
    margin: 0 0 12px !important;
}

.aipdf-app .aipdf-summary-preview ul,
.aipdf-app .aipdf-summary-preview ol {
    margin: 0 0 12px 20px !important;
    padding: 0 !important;
}

.aipdf-app .aipdf-output {
    min-height: 330px !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

@media (max-width: 900px) {
    .aipdf-app .aipdf-main-card,
    .aipdf-app .aipdf-result-card {
        padding: 22px 18px !important;
    }

    .aipdf-app .aipdf-upload-box {
        grid-template-columns: 96px minmax(0, 1fr) !important;
        gap: 14px !important;
    }

    .aipdf-app .aipdf-upload-icon {
        width: 92px !important;
        height: 92px !important;
    }
}

@media (max-width: 768px) {
    .aipdf-app .aipdf-shell {
        margin-top: 14px !important;
    }

    .aipdf-app .aipdf-main-card,
    .aipdf-app .aipdf-result-card {
        border-radius: 24px !important;
        padding: 16px 12px !important;
    }

    .aipdf-app .aipdf-card-topline {
        justify-content: center !important;
        flex-wrap: wrap !important;
        margin-bottom: 12px !important;
    }

    .aipdf-app .aipdf-card-head {
        margin-bottom: 12px !important;
    }

    .aipdf-app .aipdf-card-head h3 {
        font-size: clamp(30px, 10vw, 40px) !important;
        letter-spacing: -.048em !important;
    }

    .aipdf-app .aipdf-card-head p {
        font-size: 14px !important;
    }

    .aipdf-app .aipdf-upload-box {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        min-height: 0 !important;
        padding: 15px 10px !important;
        border-radius: 20px !important;
    }

    .aipdf-app .aipdf-upload-icon {
        width: 78px !important;
        height: 78px !important;
    }

    .aipdf-app .aipdf-upload-copy {
        width: 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important;
    }

    .aipdf-app .aipdf-upload-copy strong {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        font-size: clamp(17px, 5.6vw, 22px) !important;
        letter-spacing: -.025em !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        hyphens: auto !important;
    }

    .aipdf-app .aipdf-upload-copy em {
        display: flex !important;
        flex-wrap: wrap !important;
        max-width: 100% !important;
        font-size: 13px !important;
        line-height: 1.3 !important;
        overflow-wrap: anywhere !important;
        text-align: center !important;
    }

    .aipdf-app .aipdf-upload-mini {
        width: 34px !important;
        height: 34px !important;
    }

    .aipdf-app .aipdf-grid.two {
        gap: 10px !important;
        margin-bottom: 10px !important;
    }

    .aipdf-app .aipdf-field.aipdf-field-with-icon {
        grid-template-columns: 48px minmax(0, 1fr) !important;
        gap: 9px !important;
    }

    .aipdf-app .aipdf-field-with-icon > .aipdf-choice-icon {
        width: 48px !important;
        height: 48px !important;
        border-radius: 14px !important;
    }

    .aipdf-app .aipdf-field select {
        min-height: 50px !important;
        font-size: 15px !important;
    }

    .aipdf-app .aipdf-safety-note {
        grid-template-columns: 42px minmax(0, 1fr) !important;
        padding: 10px !important;
        margin-bottom: 12px !important;
    }

    .aipdf-app .aipdf-safety-note .aipdf-note-icon {
        width: 40px !important;
        height: 40px !important;
    }

    .aipdf-app .aipdf-safety-note p {
        font-size: 12.5px !important;
    }

    .aipdf-app .aipdf-actions .aipdf-btn {
        min-height: 52px !important;
        font-size: 16px !important;
    }

    .aipdf-app .aipdf-btn img {
        width: 32px !important;
        height: 32px !important;
    }

    .aipdf-app .aipdf-result-head {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .aipdf-app .aipdf-result-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .aipdf-app .aipdf-result-actions > button,
    .aipdf-app .aipdf-download-wrap,
    .aipdf-app .aipdf-download-toggle {
        width: 100% !important;
    }

    .aipdf-app .aipdf-download-menu {
        position: static !important;
        width: 100% !important;
        margin-top: 8px !important;
        box-shadow: 0 12px 26px rgba(15, 23, 42, .1) !important;
    }

    .aipdf-app .aipdf-summary-preview {
        max-height: 300px !important;
        padding: 14px !important;
        border-radius: 18px !important;
    }

    .aipdf-app .aipdf-output {
        min-height: 280px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 420px) {
    .aipdf-app .aipdf-card-label,
    .aipdf-app .aipdf-limit-pill {
        width: 100% !important;
        max-width: 280px !important;
    }

    .aipdf-app .aipdf-field.aipdf-field-with-icon {
        grid-template-columns: 1fr !important;
    }

    .aipdf-app .aipdf-field-with-icon > .aipdf-choice-icon {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}


/* 2026-05-30: fix select chevrons, download chevron and dropdown stacking */
.aipdf-app .aipdf-field-with-icon > .aipdf-field-body {
    position: relative !important;
}

.aipdf-app .aipdf-field select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
    padding-right: 54px !important;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%23071142' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .96)) !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: right 18px center, 0 0 !important;
    background-size: 22px 22px, 100% 100% !important;
}

.aipdf-app .aipdf-field select:focus {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%23071142' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #ffffff, #f8fbff) !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: right 18px center, 0 0 !important;
    background-size: 22px 22px, 100% 100% !important;
}

.aipdf-app .aipdf-result-card {
    overflow: visible !important;
    z-index: 40 !important;
}

.aipdf-app .aipdf-result-card::before,
.aipdf-app .aipdf-result-card::after {
    pointer-events: none !important;
}

.aipdf-app .aipdf-result-head {
    position: relative !important;
    z-index: 120 !important;
}

.aipdf-app .aipdf-result-actions {
    position: relative !important;
    z-index: 160 !important;
    isolation: isolate !important;
}

.aipdf-app .aipdf-download-wrap {
    position: relative !important;
    z-index: 250 !important;
}

.aipdf-app .aipdf-download-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.aipdf-app .aipdf-download-toggle::after {
    content: "" !important;
    display: inline-block !important;
    width: 9px !important;
    height: 9px !important;
    border-right: 2px solid currentColor !important;
    border-bottom: 2px solid currentColor !important;
    transform: rotate(45deg) translateY(-2px) !important;
    transform-origin: 50% 50% !important;
    margin-left: 3px !important;
    transition: transform .18s ease !important;
    flex: 0 0 auto !important;
}

.aipdf-app .aipdf-download-toggle[aria-expanded="true"]::after {
    transform: rotate(225deg) translateY(-1px) !important;
}

.aipdf-app .aipdf-download-menu {
    z-index: 9999 !important;
    transform: translateZ(0) !important;
}

.aipdf-app .aipdf-summary-preview {
    position: relative !important;
    z-index: 1 !important;
}

@media (max-width: 768px) {
    .aipdf-app .aipdf-field select,
    .aipdf-app .aipdf-field select:focus {
        padding-right: 46px !important;
        background-position: right 14px center, 0 0 !important;
        background-size: 20px 20px, 100% 100% !important;
    }

    .aipdf-app .aipdf-download-toggle {
        min-height: 48px !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .aipdf-app .aipdf-download-menu {
        position: relative !important;
        z-index: 9999 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 8px 0 0 !important;
    }
}
