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

.pdt-app {
    --pdt-navy: #13213c;
    --pdt-blue: #246bfd;
    --pdt-cyan: #23c4d8;
    --pdt-purple: #7857e8;
    --pdt-red: #f04452;
    --pdt-green: #0ea875;
    --pdt-muted: #62708a;
    --pdt-line: #dfe6f1;
    --pdt-soft: #f5f8fc;
    color: var(--pdt-navy);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    max-width: 1180px;
    margin: 28px auto;
    overflow: hidden;
}

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

.pdt-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr);
    align-items: center;
    min-height: 390px;
    padding: clamp(36px, 6vw, 72px);
    overflow: hidden;
    border-radius: 30px 30px 18px 18px;
    color: #fff;
    background:
        radial-gradient(circle at 86% 20%, rgba(35, 196, 216, .35), transparent 28%),
        radial-gradient(circle at 8% 95%, rgba(120, 87, 232, .38), transparent 34%),
        linear-gradient(135deg, #101f3d 0%, #173d72 55%, #155b88 100%);
    box-shadow: 0 24px 70px rgba(19, 33, 60, .2);
}

.pdt-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .25;
    background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to right, #000, transparent 80%);
}

.pdt-hero__content {
    position: relative;
    z-index: 2;
}

.pdt-eyebrow {
    display: inline-flex;
    padding: 7px 13px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    color: #d9fbff;
    background: rgba(255,255,255,.09);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
}

.pdt-hero h1 {
    margin: 0 0 17px;
    color: #fff;
    font-size: clamp(34px, 5vw, 61px);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.pdt-hero h1 span {
    color: #77e8f0;
}

.pdt-hero p {
    max-width: 690px;
    margin: 0;
    color: #dce7f7;
    font-size: clamp(16px, 2vw, 19px);
}

.pdt-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.pdt-trust-row span {
    padding: 8px 11px;
    border-radius: 10px;
    background: rgba(5, 18, 42, .32);
    color: #fff;
    font-size: 13px;
    font-weight: 750;
}

.pdt-hero__visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

.pdt-orbit {
    position: absolute;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
}

.pdt-orbit--one { width: 280px; height: 280px; animation: pdt-spin 18s linear infinite; }
.pdt-orbit--two { width: 205px; height: 205px; animation: pdt-spin 12s linear infinite reverse; }
.pdt-orbit::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #78edf4; top: -5px; left: 50%; box-shadow: 0 0 18px #78edf4; }

@keyframes pdt-spin { to { transform: rotate(360deg); } }

.pdt-file-card {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 104px;
    height: 128px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(3, 15, 35, .28);
    transform: rotate(-6deg);
}

.pdt-file-card b { color: #fff; font-size: 30px; line-height: 1; }
.pdt-file-card small { align-self: start; margin-top: -18px; color: rgba(255,255,255,.78); font-weight: 800; }
.pdt-file-card--word { background: linear-gradient(145deg, #287bf8, #124db6); }
.pdt-file-card--pdf { background: linear-gradient(145deg, #ff5965, #c92839); transform: rotate(7deg); }
.pdt-swap { position: relative; z-index: 3; display: grid; place-items: center; width: 46px; height: 46px; margin: 0 -4px; border-radius: 50%; background: #fff; color: var(--pdt-navy); font-size: 25px; font-weight: 900; box-shadow: 0 8px 20px rgba(0,0,0,.2); }

.pdt-local-notice {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 18px 10px 22px;
    padding: 17px 20px;
    border: 1px solid #bfe9db;
    border-radius: 15px;
    background: #ecfbf5;
    color: #15523f;
    font-size: 14px;
}

.pdt-local-notice__icon { display: grid; flex: 0 0 45px; place-items: center; width: 45px; height: 45px; border-radius: 13px; background: #d0f4e6; font-size: 22px; }

.pdt-tool-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 9px;
    padding: 9px;
    border: 1px solid var(--pdt-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(19, 33, 60, .08);
}

.pdt-tool-tabs button {
    appearance: none;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 7px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #f5f7fb;
    color: #32415d;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    transition: .2s ease;
}

.pdt-tool-tabs button span { font-size: 20px; }
.pdt-tool-tabs button:hover { border-color: #bed0fb; color: #164eaa; background: #edf3ff; transform: translateY(-1px); }
.pdt-tool-tabs button:focus-visible { outline: 3px solid rgba(36,107,253,.28); outline-offset: 2px; }
.pdt-tool-tabs button.is-active { color: #fff; background: linear-gradient(135deg, var(--pdt-blue), #5b50df); box-shadow: 0 9px 18px rgba(36,107,253,.25); }

.pdt-tool-shell {
    margin-top: 14px;
    padding: clamp(24px, 5vw, 50px);
    border: 1px solid var(--pdt-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(19, 33, 60, .08);
}

.pdt-tool-panel[hidden] { display: none !important; }
.pdt-tool-panel.is-active { animation: pdt-rise .28s ease both; }
@keyframes pdt-rise { from { opacity: 0; transform: translateY(7px); } }

.pdt-panel-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; }
.pdt-panel-heading h2 { margin: 0 0 3px; color: var(--pdt-navy); font-size: clamp(23px, 3vw, 31px); line-height: 1.2; }
.pdt-panel-heading p { margin: 0; color: var(--pdt-muted); }
.pdt-panel-icon { display: grid; flex: 0 0 57px; place-items: center; width: 57px; height: 57px; border-radius: 16px; font-size: 28px; }
.pdt-blue { background: #e8f0ff; }
.pdt-red { background: #ffeaed; }
.pdt-purple { background: #f0ebff; }
.pdt-orange { background: #fff1df; }
.pdt-green { background: #e2f8ef; }
.pdt-teal { background: #e0f8fa; }

.pdt-dropzone {
    display: flex;
    min-height: 245px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border: 2px dashed #b9c9e5;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff, #f3f7fd);
    text-align: center;
    cursor: pointer;
    transition: .2s ease;
}

.pdt-dropzone:hover,
.pdt-dropzone.is-dragging { border-color: var(--pdt-blue); background: #eef4ff; box-shadow: inset 0 0 0 3px rgba(36,107,253,.06); }
.pdt-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pdt-dropzone__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 13px; border-radius: 18px; background: #e2ebfd; font-size: 30px; }
.pdt-dropzone strong { color: #1d2d4c; font-size: 18px; }
.pdt-dropzone small { margin-top: 4px; color: var(--pdt-muted); font-size: 14px; }
.pdt-file-summary { max-width: 100%; margin-top: 15px; padding: 7px 12px; overflow: hidden; border-radius: 999px; background: #fff; color: #44526c; box-shadow: 0 3px 12px rgba(19,33,60,.08); font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.pdt-file-summary.has-file { color: #075e46; background: #e1f8ef; }

.pdt-field { display: block; margin-top: 20px; }
.pdt-field > span { display: block; margin-bottom: 7px; color: #263550; font-weight: 800; }
.pdt-field select,
.pdt-field input {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #c9d3e2;
    border-radius: 11px;
    outline: none;
    color: #1e2d48;
    background: #fff;
}
.pdt-field select:focus,
.pdt-field input:focus { border-color: var(--pdt-blue); box-shadow: 0 0 0 3px rgba(36,107,253,.13); }
.pdt-field small { display: block; margin-top: 6px; color: var(--pdt-muted); }
.pdt-range-field[hidden] { display: none; }

.pdt-tip,
.pdt-warning { margin-top: 17px; padding: 13px 15px; border-left: 4px solid #5e8fe8; border-radius: 7px 12px 12px 7px; color: #44536d; background: #eff5ff; font-size: 13px; }
.pdt-warning { border-left-color: #f4a623; color: #6a4a13; background: #fff8e9; }
.pdt-tip code { padding: 2px 5px; border-radius: 4px; color: #243a67; background: rgba(36,107,253,.09); }

.pdt-action-area { margin-top: 23px; }
.pdt-primary {
    appearance: none;
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 13px 22px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--pdt-blue), #634fe0);
    box-shadow: 0 11px 22px rgba(36,107,253,.22);
    cursor: pointer;
    font-weight: 850;
    transition: .2s ease;
}
.pdt-primary b { font-size: 22px; }
.pdt-primary:hover { color: #fff; filter: brightness(1.07); transform: translateY(-1px); }
.pdt-primary:focus-visible { outline: 3px solid rgba(36,107,253,.28); outline-offset: 3px; }
.pdt-primary:disabled { cursor: wait; filter: grayscale(.25); opacity: .72; transform: none; }

.pdt-status { margin-top: 15px; padding: 13px 15px; border-radius: 11px; color: #294365; background: #eef4ff; }
.pdt-status[hidden] { display: none; }
.pdt-status.is-success { color: #145843; background: #e8f9f2; }
.pdt-status.is-error { color: #7b2630; background: #ffedf0; }
.pdt-status.is-warning { color: #6a4a13; background: #fff7e4; }
.pdt-status__row { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.pdt-status__row [data-status-text] { flex: 1; }
.pdt-status__row strong { white-space: nowrap; }
.pdt-progress { height: 6px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: rgba(19,33,60,.1); }
.pdt-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pdt-blue), var(--pdt-cyan)); transition: width .25s ease; }

.pdt-how { margin-top: 58px; padding: clamp(28px, 5vw, 52px); border-radius: 22px; background: var(--pdt-soft); }
.pdt-section-title { text-align: center; }
.pdt-section-title > span { color: var(--pdt-blue); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.pdt-section-title h2 { margin: 5px 0; color: var(--pdt-navy); font-size: clamp(26px, 4vw, 38px); }
.pdt-section-title p { margin: 0; color: var(--pdt-muted); }
.pdt-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.pdt-steps > div { position: relative; padding: 28px 23px; border: 1px solid var(--pdt-line); border-radius: 17px; background: #fff; text-align: center; }
.pdt-steps > div > b { position: absolute; top: 12px; left: 14px; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: #fff; background: var(--pdt-blue); font-size: 12px; }
.pdt-steps > div > span { display: block; font-size: 35px; }
.pdt-steps h3 { margin: 11px 0 5px; color: var(--pdt-navy); }
.pdt-steps p { margin: 0; color: var(--pdt-muted); font-size: 14px; }

.pdt-faq { max-width: 850px; margin: 56px auto 0; }
.pdt-faq h2 { margin-bottom: 20px; color: var(--pdt-navy); text-align: center; }
.pdt-faq details { margin: 9px 0; border: 1px solid var(--pdt-line); border-radius: 13px; background: #fff; }
.pdt-faq summary { padding: 16px 18px; cursor: pointer; color: #24344f; font-weight: 800; }
.pdt-faq details p { margin: 0; padding: 0 18px 17px; color: var(--pdt-muted); font-size: 14px; }

.pdt-footer { margin: 35px 0 10px; color: #738099; text-align: center; font-size: 13px; }
.pdt-footer a { color: var(--pdt-blue); font-weight: 850; text-decoration: none; }

.pdt-docx-stage {
    position: fixed;
    z-index: -99999;
    top: 0;
    left: -100000px;
    display: block;
    min-width: 900px;
    opacity: 1;
    pointer-events: none;
    background: #fff;
}

@media (max-width: 920px) {
    .pdt-hero { grid-template-columns: 1fr; }
    .pdt-hero__visual { display: none; }
    .pdt-tool-tabs { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
    .pdt-app { margin: 10px auto; }
    .pdt-hero { min-height: 0; padding: 32px 22px; border-radius: 20px 20px 14px 14px; }
    .pdt-hero h1 { font-size: 35px; }
    .pdt-trust-row { display: grid; }
    .pdt-local-notice { align-items: flex-start; margin-inline: 0; padding: 14px; }
    .pdt-tool-tabs { grid-template-columns: repeat(2, 1fr); gap: 7px; padding: 7px; }
    .pdt-tool-tabs button { min-height: 67px; font-size: 12px; }
    .pdt-tool-shell { padding: 22px 15px; }
    .pdt-panel-heading { align-items: flex-start; }
    .pdt-panel-icon { flex-basis: 48px; width: 48px; height: 48px; border-radius: 13px; font-size: 23px; }
    .pdt-panel-heading h2 { font-size: 23px; }
    .pdt-dropzone { min-height: 220px; padding: 22px 15px; }
    .pdt-steps { grid-template-columns: 1fr; }
    .pdt-how { margin-top: 35px; padding: 28px 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .pdt-orbit,
    .pdt-tool-panel.is-active { animation: none; }
    .pdt-app * { scroll-behavior: auto !important; transition: none !important; }
}
