* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f6fa;
    color: #111827;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.app-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.page-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #111827;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-title {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #111827;
}

.brand-subtitle {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-links a {
    font-size: 14px;
    color: #6b7280;
    padding: 6px 0;
}

.nav-links a.active {
    color: #111827;
    font-weight: 600;
}

.support-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #ffffff;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.support-nav-btn:hover {
    background: #000000;
    transform: translateY(-1px);
}

.support-nav-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.4);
    outline-offset: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nav-btn {
    background: #111827;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.nav-btn:hover {
    background: #000000;
}

.nav-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.hero {
    margin: 32px 0 28px;
}

.hero h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.hero p {
    color: #4b5563;
    max-width: 520px;
}

.workspace-grid {
    display: grid;
    gap: 24px;
    align-items: start;
}

@media (min-width: 992px) {
    .workspace-grid {
        grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    }
}

.primary-card,
.info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.primary-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.card-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
}

.card-header p {
    color: #6b7280;
    font-size: 14px;
    margin-top: 4px;
}

.status-badge {
    background: #dcfce7;
    color: #047857;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.inline-notice {
    display: flex;
    gap: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 16px;
    align-items: flex-start;
}

.inline-notice .notice-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dcfce7;
    color: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.inline-notice strong {
    display: block;
    color: #111827;
    font-size: 14px;
}

.inline-notice p {
    color: #4b5563;
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.5;
}

.upload-section {
    border: 1.5px dashed #d1d5db;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    background: #ffffff;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.upload-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.muted-text {
    color: #6b7280;
    font-size: 13px;
    margin-top: 6px;
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.upload-section:hover {
    border-color: #111827;
    background: #f9fafb;
}

.upload-section.dragover {
    border-color: #2563eb;
    background: #eff6ff;
}

.file-input {
    display: none;
}

.upload-btn {
    margin-top: 16px;
    background: #111827;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.upload-btn:hover {
    background: #000000;
}

.options {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    text-transform: capitalize;
}

input[type="password"],
select {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.convert-btn {
    background: #111827;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.convert-btn:hover:not(:disabled) {
    background: #000000;
    transform: translateY(-1px);
}

.convert-btn:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
}

.file-info {
    display: none;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    background: #f9fafb;
}

.file-info.active {
    display: grid;
    gap: 10px;
}

.file-row {
    display: flex;
    justify-content: space-between;
    color: #4b5563;
    font-size: 13px;
}

.file-row strong {
    color: #111827;
    font-weight: 600;
}

.error-message,
.success-message {
    display: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.5;
}

.error-message.active {
    display: block;
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.success-message.active {
    display: block;
    background: #dcfce7;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.loading {
    display: none;
    text-align: center;
    padding: 16px;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    color: #6b7280;
    font-size: 14px;
}

.loading.active {
    display: block;
}

.spinner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    margin: 0 auto 12px;
    animation: spin 0.9s linear infinite;
}

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

.preview-section {
    display: none;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.preview-section.active {
    display: block;
}

.preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.preview-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.preview-title span {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.preview-container {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: auto;
    max-height: 400px;
    background: #ffffff;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 600px;
}

thead th {
    text-align: left;
    padding: 12px 16px;
    background: #f9fafb;
    color: #111827;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
}

tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: #f9fafb;
}

.download-btn {
    background: #111827;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.download-btn:hover {
    background: #000000;
}

.info-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.feature-list,
.step-list,
.bullet-list,
.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li,
.checklist li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.feature-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #111827;
    margin-top: 6px;
    flex-shrink: 0;
}

.feature-list h4 {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.feature-list p {
    color: #4b5563;
    font-size: 13px;
}

.step-list li,
.bullet-list li {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.6;
}

.step-list strong {
    color: #111827;
}

.check-icon {
    font-size: 14px;
    line-height: 1.5;
    color: #111827;
    margin-top: 2px;
}

.checklist div {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.6;
}

.details-grid {
    margin-top: 32px;
    display: grid;
    gap: 18px;
}

@media (min-width: 768px) {
    .details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.site-footer {
    margin-top: 48px;
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.support-card {
    margin-top: 32px;
}

.page-header .support-card {
    margin-top: 0;
}

.support-email-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #ffffff;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    margin-top: 18px;
}

.support-email-btn:hover {
    background: #000000;
    transform: translateY(-1px);
}

.support-email-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.4);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .support-nav-btn {
        width: 100%;
        justify-content: center;
    }

    .nav-actions {
        width: 100%;
        justify-content: space-between;
    }

    .hero h1 {
        font-size: 26px;
    }

    .primary-card,
    .info-card {
        padding: 24px;
    }

    .upload-section {
        padding: 28px 20px;
    }
}
