.pknh-ir {
    --ir-blue: #5d86e6;
    --ir-blue-dark: #2f5fd0;
    --ir-blue-soft: #e8efff;
    --ir-ink: #111827;
    --ir-muted: #64748b;
    --ir-border: #dbe5f0;
    --ir-surface: #ffffff;
    --ir-bg: #f6f8fb;
    color: var(--ir-ink);
    margin: -28px 0 0;
}

.pknh-ir h1,
.pknh-ir h2,
.pknh-ir h3,
.pknh-ir p {
    letter-spacing: 0;
}

.pknh-ir [hidden] {
    display: none !important;
}

.pknh-ir-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
    border-bottom: 1px solid var(--ir-border);
    padding: 46px 16px 30px;
    text-align: center;
}

.pknh-ir-hero > div,
.pknh-ir-workspace,
.pknh-ir-result,
.pknh-ir-info {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.pknh-ir-kicker {
    color: var(--ir-blue-dark);
    font-size: 13px;
    font-weight: 900;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.pknh-ir-hero h1 {
    color: var(--ir-ink);
    font-size: clamp(34px, 5vw, 54px);
    margin: 0 0 10px;
}

.pknh-ir-hero p {
    color: var(--ir-muted);
    font-size: 17px;
    margin: 0 auto;
    max-width: 760px;
}

.pknh-ir-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 390px;
    gap: 20px;
    padding: 34px 16px;
}

.pknh-ir-panel,
.pknh-ir-result,
.pknh-ir-info article {
    background: var(--ir-surface);
    border: 1px solid var(--ir-border);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
}

.pknh-ir-panel-upload {
    min-height: 520px;
    padding: 12px;
}

.pknh-ir-dropzone {
    align-items: center;
    background: #79a0f2;
    border: 3px dashed rgba(47, 95, 208, .5);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 322px;
    padding: 32px 20px;
    text-align: center;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.pknh-ir-dropzone:hover,
.pknh-ir-dropzone:focus,
.pknh-ir-dropzone.is-dragover {
    background: #6791ee;
    border-color: #2f5fd0;
    outline: none;
    transform: translateY(-1px);
}

.pknh-ir-file {
    display: none;
}

.pknh-ir-upload-icon {
    align-items: center;
    border: 2px solid #ffffff;
    border-radius: 18px;
    display: flex;
    font-size: 36px;
    font-weight: 300;
    height: 64px;
    justify-content: center;
    line-height: 1;
    margin-bottom: 22px;
    width: 64px;
}

.pknh-ir-dropzone h2 {
    color: #ffffff;
    font-size: 22px;
    margin: 0 0 8px;
}

.pknh-ir-dropzone p {
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 12px;
}

.pknh-ir-dropzone small {
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
}

.pknh-ir-preview {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.pknh-ir-preview-img {
    background: #eef2f7;
    border: 1px solid var(--ir-border);
    border-radius: 8px;
    height: 210px;
    object-fit: contain;
    width: 100%;
}

.pknh-ir-file-meta {
    background: #f8fafc;
    border: 1px solid var(--ir-border);
    border-radius: 8px;
    padding: 12px 14px;
}

.pknh-ir-file-meta strong,
.pknh-ir-file-meta span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pknh-ir-file-meta span {
    color: var(--ir-muted);
    font-size: 13px;
}

.pknh-ir-settings {
    padding: 22px;
}

.pknh-ir-section-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.pknh-ir-section-head h2 {
    font-size: 20px;
    margin: 0;
}

.pknh-ir-section-head span {
    background: var(--ir-blue-soft);
    border-radius: 999px;
    color: var(--ir-blue-dark);
    font-size: 12px;
    font-weight: 900;
    padding: 5px 10px;
}

.pknh-ir-export-head {
    border-top: 1px solid var(--ir-border);
    margin-top: 18px;
    padding-top: 18px;
}

.pknh-ir-tabs {
    background: #f1f5f9;
    border: 1px solid var(--ir-border);
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 16px;
    padding: 4px;
}

.pknh-ir-tabs button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #334155;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    padding: 10px 8px;
}

.pknh-ir-tabs button.is-active {
    background: #ffffff;
    color: var(--ir-blue-dark);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
}

.pknh-ir label {
    display: block;
    margin-bottom: 13px;
}

.pknh-ir label > span {
    color: #172033;
    display: block;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 7px;
}

.pknh-ir label small {
    color: var(--ir-muted);
    font-weight: 700;
}

.pknh-ir input,
.pknh-ir select {
    background: #ffffff;
    border: 1px solid var(--ir-border);
    border-radius: 8px;
    color: #0f172a;
    font: inherit;
    font-weight: 800;
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
}

.pknh-ir input:focus,
.pknh-ir select:focus {
    border-color: var(--ir-blue-dark);
    box-shadow: 0 0 0 3px rgba(93, 134, 230, .16);
    outline: none;
}

.pknh-ir-grid-2 {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pknh-ir-check {
    align-items: center;
    display: inline-flex !important;
    gap: 9px;
    margin: 0 0 8px !important;
}

.pknh-ir-check input {
    min-height: auto;
    width: auto;
}

.pknh-ir-check span {
    color: #334155;
    display: inline !important;
    margin: 0 !important;
}

.pknh-ir-percent-row,
.pknh-ir-unit-input {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
}

.pknh-ir-percent-row input,
.pknh-ir-unit-input input {
    border-radius: 8px 0 0 8px;
}

.pknh-ir-percent-row span,
.pknh-ir-unit-input span {
    align-items: center;
    align-self: stretch;
    background: #f8fafc;
    border: 1px solid var(--ir-border);
    border-left: 0;
    border-radius: 0 8px 8px 0;
    color: var(--ir-muted);
    display: flex;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
}

.pknh-ir-output-size {
    background: #f8fafc;
    border: 1px solid var(--ir-border);
    border-radius: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    margin: 16px 0;
    padding: 11px 12px;
}

.pknh-ir-export,
.pknh-ir-download {
    align-items: center;
    background: linear-gradient(135deg, var(--ir-blue), var(--ir-blue-dark));
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    justify-content: center;
    min-height: 48px;
    padding: 13px 18px;
    text-decoration: none;
    width: 100%;
}

.pknh-ir-export:hover,
.pknh-ir-download:hover {
    color: #ffffff;
    filter: brightness(.96);
}

.pknh-ir-export:disabled {
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: .55;
}

.pknh-ir-status {
    color: var(--ir-muted);
    font-size: 13px;
    font-weight: 800;
    min-height: 22px;
    padding-top: 10px;
}

.pknh-ir-status.is-error {
    color: #b91c1c;
}

.pknh-ir-status.is-success {
    color: #047857;
}

.pknh-ir-status.is-busy {
    color: var(--ir-blue-dark);
}

.pknh-ir-result {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 240px;
    margin-bottom: 22px;
    padding: 22px;
}

.pknh-ir-result h2 {
    font-size: 24px;
    margin: 0 0 5px;
}

.pknh-ir-result p {
    color: var(--ir-muted);
    margin: 0;
}

.pknh-ir-info {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 16px 44px;
}

.pknh-ir-info article {
    padding: 22px;
}

.pknh-ir-info h2 {
    font-size: 21px;
}

.pknh-ir-info p {
    color: var(--ir-muted);
    margin: 0;
}

@media (max-width: 980px) {
    .pknh-ir-workspace,
    .pknh-ir-result,
    .pknh-ir-info {
        grid-template-columns: 1fr;
    }

    .pknh-ir-result {
        margin-left: 16px;
        margin-right: 16px;
    }
}

@media (max-width: 640px) {
    .pknh-ir {
        margin-top: -20px;
    }

    .pknh-ir-hero {
        padding-top: 32px;
    }

    .pknh-ir-workspace {
        padding-top: 22px;
    }

    .pknh-ir-panel-upload {
        min-height: auto;
    }

    .pknh-ir-dropzone {
        min-height: 270px;
    }

    .pknh-ir-tabs,
    .pknh-ir-grid-2 {
        grid-template-columns: 1fr;
    }
}
