.pvc-admin-wrap {
    max-width: 1180px;
}

.pvc-admin-header {
    margin: 22px 0 18px;
}

.pvc-admin-header h1 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.2;
    color: #0f172a;
}

.pvc-admin-header h1 small {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.pvc-admin-header p {
    margin: 0 0 10px;
    color: #64748b;
}

.pvc-admin-header code {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 10px;
    border: 1px solid #dbe7e1;
    background: #f8fffb;
    color: #0f766e;
    font-weight: 600;
}

.pvc-shell {
    --pvc-bg: #f5faf8;
    --pvc-card: #ffffff;
    --pvc-text: #0f172a;
    --pvc-muted: #64748b;
    --pvc-line: #dbe7e1;
    --pvc-accent: #22b573;
    --pvc-accent-dark: #159b61;
    --pvc-accent-soft: #ebfbf4;
    --pvc-blue-soft: #f3f9fc;
    --pvc-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
    max-width: 1120px;
    margin: 18px auto 24px;
    padding: 22px;
    border-radius: 26px;
    border: 1px solid #e7efeb;
    background:
        radial-gradient(circle at 12% 8%, rgba(34, 181, 115, .10), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(56, 189, 248, .10), transparent 26%),
        linear-gradient(180deg, #fbfefd 0%, var(--pvc-bg) 100%);
    color: var(--pvc-text);
}

.pvc-shell *,
.pvc-shell *::before,
.pvc-shell *::after {
    box-sizing: border-box;
}

.pvc-tool-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.pvc-tool-header h2 {
    margin: 0 0 6px;
    color: var(--pvc-text);
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.pvc-tool-header p {
    margin: 0;
    color: var(--pvc-muted);
    font-size: 15px;
    line-height: 1.5;
}

.pvc-privacy-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid #cdeedc;
    border-radius: 16px;
    background: var(--pvc-accent-soft);
}

.pvc-privacy-note span {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: #fff;
    background: var(--pvc-accent);
    font-weight: 800;
    font-size: 15px;
}

.pvc-privacy-note p {
    margin: 0;
    color: #166534;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.pvc-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
    gap: 18px;
}

.pvc-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid var(--pvc-line);
    background: var(--pvc-card);
    box-shadow: var(--pvc-shadow);
}

.pvc-card::after {
    content: '';
    position: absolute;
    inset: auto -80px -90px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(34, 181, 115, .08);
    pointer-events: none;
}

.pvc-card-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.pvc-card-head h3 {
    margin: 0;
    color: var(--pvc-text);
    font-size: 18px;
    line-height: 1.25;
}

.pvc-dropzone {
    position: relative;
    z-index: 1;
    min-height: 192px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px;
    border: 1.5px dashed #9be0be;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfffd 0%, #f5fcf8 100%);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.pvc-dropzone:hover,
.pvc-dropzone.is-dragging {
    border-color: var(--pvc-accent);
    background: #f0fbf5;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(34, 181, 115, .14);
}

.pvc-drop-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--pvc-accent-soft);
    color: var(--pvc-accent-dark);
    font-size: 20px;
    font-weight: 700;
}

.pvc-dropzone strong {
    color: var(--pvc-text);
    font-size: 16px;
    text-align: center;
}

.pvc-dropzone em {
    color: var(--pvc-muted);
    font-style: normal;
    text-align: center;
}

.pvc-file-meta {
    position: relative;
    z-index: 1;
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0;
    color: var(--pvc-muted);
    font-size: 14px;
}

.pvc-file-meta strong {
    max-width: calc(100% - 78px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--pvc-text);
}

.pvc-quality-note {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 4px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #dceee5;
    border-radius: 16px;
    background: #f8fcfa;
}

.pvc-quality-note strong {
    color: var(--pvc-text);
    font-size: 14px;
}

.pvc-quality-note small {
    color: var(--pvc-muted);
    font-size: 13px;
    line-height: 1.45;
}

.pvc-btn {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    background: var(--pvc-accent);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 14px 26px rgba(34, 181, 115, .22);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.pvc-btn:hover,
.pvc-btn:focus {
    background: var(--pvc-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(34, 181, 115, .28);
}

.pvc-btn:disabled {
    opacity: .68;
    cursor: wait;
    transform: none;
}

.pvc-progress-card {
    display: flex;
    flex-direction: column;
}

.pvc-state {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef5f2;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.pvc-state.is-working {
    background: #ecfeff;
    color: #0f766e;
}

.pvc-state.is-done {
    background: var(--pvc-accent-soft);
    color: #166534;
}

.pvc-state.is-error {
    background: #fef2f2;
    color: #b91c1c;
}

.pvc-progress-block {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
}

.pvc-progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--pvc-muted);
    font-size: 14px;
}

.pvc-progress-label strong {
    color: var(--pvc-text);
}

.pvc-bar {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf3f1;
}

.pvc-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22b573 0%, #45c58e 100%);
    transition: width .28s ease;
}

.pvc-metrics {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 6px 0 18px;
}

.pvc-metrics > div {
    display: grid;
    gap: 6px;
    min-height: 74px;
    padding: 14px;
    border-radius: 16px;
    background: #f8fbfa;
    border: 1px solid #edf4f1;
}

.pvc-metrics span {
    color: var(--pvc-muted);
    font-size: 12px;
}

.pvc-metrics strong {
    color: var(--pvc-text);
    font-size: 16px;
}

.pvc-result {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
}

.pvc-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.pvc-download:hover,
.pvc-download:focus {
    color: #fff;
    background: #1e293b;
    transform: translateY(-1px);
}

.pvc-download-disabled {
    opacity: .46;
    pointer-events: none;
    cursor: not-allowed;
}

.pvc-log {
    position: relative;
    z-index: 1;
    margin-top: auto;
    min-height: 54px;
    padding: 14px;
    border-radius: 16px;
    background: var(--pvc-blue-soft);
    border: 1px solid #e5f0f5;
    color: #475569;
    line-height: 1.45;
    word-break: break-word;
}

@media (max-width: 900px) {
    .pvc-shell {
        padding: 18px;
        border-radius: 22px;
    }

    .pvc-grid {
        grid-template-columns: 1fr;
    }

    .pvc-tool-header h2 {
        font-size: 24px;
    }

    .pvc-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .pvc-shell {
        padding: 15px;
    }

    .pvc-card {
        padding: 16px;
    }

    .pvc-tool-header h2 {
        font-size: 22px;
    }

    .pvc-privacy-note {
        align-items: flex-start;
    }
}
