.hitpdf-converter {
    background: #ffffff;
    border: 1px solid #dce5e2;
    border-radius: 8px;
    box-shadow: 0 18px 55px rgba(23, 36, 42, 0.12);
    color: #17242a;
    padding: clamp(18px, 3vw, 34px);
}

.hitpdf-converter__form {
    display: grid;
    gap: 18px;
}

.hitpdf-dropzone {
    align-items: center;
    background: #f6faf8;
    border: 2px dashed #94aaa4;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    gap: 8px;
    justify-items: center;
    min-height: 230px;
    padding: 28px 18px;
    text-align: center;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hitpdf-dropzone:focus-visible,
.hitpdf-dropzone.is-dragging {
    background: #edf6f1;
    border-color: #147d64;
    outline: 3px solid rgba(20, 125, 100, 0.22);
}

.hitpdf-dropzone__input {
    display: none;
}

.hitpdf-dropzone__icon,
.hitpdf-file__thumb {
    align-items: center;
    background: #123c69;
    border-radius: 6px;
    color: #ffffff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    height: 54px;
    justify-content: center;
    letter-spacing: 0;
    width: 44px;
}

.hitpdf-dropzone__title {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 800;
    margin: 0;
}

.hitpdf-dropzone__meta {
    color: #52646b;
    margin: 0;
}

.hitpdf-progress {
    background: #dbe6e2;
    border-radius: 999px;
    height: 8px;
    margin-top: 8px;
    overflow: hidden;
    width: min(360px, 100%);
}

.hitpdf-progress[aria-hidden="true"] {
    display: none;
}

.hitpdf-progress span {
    background: #147d64;
    display: block;
    height: 100%;
    transition: width 180ms ease;
    width: 0;
}

.hitpdf-file-list {
    display: grid;
    gap: 10px;
}

.hitpdf-file {
    align-items: center;
    background: #fbfcfc;
    border: 1px solid #dce5e2;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: auto 1fr auto;
    padding: 12px;
}

.hitpdf-file__body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.hitpdf-file__body strong,
.hitpdf-file__body span {
    overflow-wrap: anywhere;
}

.hitpdf-file__body span {
    color: #5d6d73;
    font-size: 0.9rem;
}

.hitpdf-file__actions {
    display: flex;
    gap: 6px;
}

.hitpdf-file__actions button {
    align-items: center;
    background: #eef4f2;
    border: 1px solid #cddbd6;
    border-radius: 6px;
    color: #17242a;
    cursor: pointer;
    display: inline-flex;
    font-size: 18px;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.hitpdf-settings-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hitpdf-settings-grid label {
    display: grid;
    gap: 7px;
}

.hitpdf-settings-grid span {
    font-size: 0.86rem;
    font-weight: 800;
}

.hitpdf-settings-grid select,
.hitpdf-settings-grid input {
    background: #ffffff;
    border: 1px solid #cbd8d4;
    border-radius: 6px;
    color: #17242a;
    min-height: 44px;
    padding: 0 12px;
}

.hitpdf-page-range {
    grid-column: span 2;
}

.hitpdf-convert-button,
.hitpdf-download {
    align-items: center;
    background: #147d64;
    border: 0;
    border-radius: 7px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    text-decoration: none;
}

.hitpdf-convert-button:disabled {
    background: #98aaa5;
    cursor: not-allowed;
}

.hitpdf-status {
    color: #52646b;
    min-height: 24px;
}

.hitpdf-status[data-tone="success"] {
    color: #12614f;
}

.hitpdf-status[data-tone="error"] {
    color: #b3261e;
}

.hitpdf-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 760px) {
    .hitpdf-settings-grid,
    .hitpdf-file {
        grid-template-columns: 1fr;
    }

    .hitpdf-file__actions {
        justify-content: flex-start;
    }

    .hitpdf-page-range {
        grid-column: auto;
    }
}
