:root {
    color-scheme: light;
    --vcw-primary: #0d6efd;
    --vcw-secondary: #6c757d;
    --vcw-success: #198754;
    --vcw-danger: #dc3545;
    --vcw-light: #f8f9fa;
    --vcw-border: #dee2e6;
    --vcw-body: #212529;
    --vcw-muted: #6c757d;
    --vcw-white: #ffffff;
    --vcw-gray-100: #f8f9fa;
    --vcw-gray-200: #e9ecef;
    --vcw-gray-300: #dee2e6;
    --vcw-gray-400: #ced4da;
    --vcw-gray-500: #adb5bd;
    --vcw-gray-600: #6c757d;
    --vcw-gray-700: #495057;
    --vcw-gray-800: #343a40;
    --vcw-gray-900: #212529;
}

/* Feature Introduction Section */
.vcw-intro {
    background: linear-gradient(135deg, var(--vcw-primary), #0056b3);
    color: var(--vcw-white);
    padding: 2rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.vcw-intro-content {
    max-width: 600px;
    margin: 0 auto;
}

.vcw-intro-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.vcw-intro-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
}

.vcw-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.vcw-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.vcw-feature-icon {
    font-size: 1.2rem;
}

.vcw-body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: var(--vcw-light);
    color: var(--vcw-body);
    min-height: 100vh;
}

.vcw-shell {
    max-width: 800px; /* Narrow layout for AdSense space */
    margin: 0 auto;
    padding: 20px 16px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vcw-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 1.5rem;
    background: var(--vcw-white);
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.vcw-title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 600;
    color: var(--vcw-gray-800);
}

.vcw-subtitle {
    margin: 0;
    color: var(--vcw-muted);
    font-size: 14px;
}

.vcw-header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.vcw-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vcw-panel {
    background: var(--vcw-white);
    border-radius: 0.75rem;
    border: 1px solid var(--vcw-gray-200);
    padding: 24px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.vcw-panel:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.vcw-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--vcw-gray-200);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.vcw-panel-heading h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--vcw-gray-800);
}

.vcw-panel-heading p {
    margin: 6px 0 0;
    color: var(--vcw-muted);
    font-size: 14px;
}

.vcw-panel-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vcw-dropzone {
    border: 2px dashed var(--vcw-gray-300);
    border-radius: 0.75rem;
    padding: 32px;
    background: var(--vcw-gray-100);
    transition: all 0.3s ease;
    cursor: pointer;
}

.vcw-dropzone:hover {
    border-color: var(--vcw-primary);
    background: rgba(13, 110, 253, 0.05);
}

.vcw-dropzone.dragover {
    border-color: var(--vcw-primary);
    background: rgba(13, 110, 253, 0.1);
    transform: scale(1.02);
}

.vcw-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.vcw-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--vcw-muted);
    font-weight: 500;
}

.vcw-form-grid select,
.vcw-form-grid input {
    border: 1px solid var(--vcw-gray-300);
    border-radius: 0.375rem;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    background-color: var(--vcw-white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vcw-form-grid select:focus,
.vcw-form-grid input:focus {
    outline: 0;
    border-color: var(--vcw-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.vcw-drop-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--vcw-muted);
    justify-content: center;
}

.vcw-drop-icon {
    font-size: 42px;
    color: var(--vcw-primary);
    opacity: 0.8;
}

.vcw-drop-title {
    margin: 0;
    font-weight: 600;
    color: var(--vcw-gray-800);
    font-size: 16px;
}

.vcw-drop-hint {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--vcw-gray-600);
}

.vcw-file-list {
    margin-top: 20px;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--vcw-gray-200);
    border-radius: 0.5rem;
    background: var(--vcw-white);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.vcw-file-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 12px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--vcw-gray-200);
    transition: background-color 0.15s ease;
}

.vcw-file-row:hover {
    background-color: var(--vcw-gray-100);
}

.vcw-file-row:last-child {
    border-bottom: none;
}

.vcw-file-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vcw-file-name {
    margin: 0;
    font-weight: 600;
    color: var(--vcw-gray-800);
}

.vcw-file-path {
    margin: 0;
    font-size: 12px;
    color: var(--vcw-muted);
    word-break: break-all;
}

.vcw-file-size {
    font-size: 13px;
    color: var(--vcw-muted);
    font-weight: 500;
}

.vcw-file-remove {
    border: none;
    background: transparent;
    padding: 6px;
    border-radius: 0.25rem;
    color: var(--vcw-danger);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.vcw-file-remove:hover {
    background: rgba(220, 53, 69, 0.1);
}

.vcw-file-remove svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.vcw-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.vcw-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--vcw-muted);
}

.vcw-form-grid select,
.vcw-form-grid input {
    border: 1px solid var(--vcw-border);
    border-radius: 0.375rem;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    background-color: #fff;
}

.vcw-output-field .vcw-input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.vcw-input-group input {
    flex: 1;
}

.vcw-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.vcw-progress-list {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vcw-progress-card {
    border: 1px solid var(--vcw-border);
    border-radius: 0.5rem;
    padding: 14px 18px;
    background: #fff;
}

.vcw-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vcw-progress-name {
    margin: 0;
    font-weight: 600;
}

.vcw-progress-status {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--vcw-muted);
}

.vcw-progress-bar {
    margin-top: 10px;
    height: 8px;
    border-radius: 999px;
    background: var(--vcw-gray-200);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.vcw-progress-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--vcw-primary), #0056b3);
    width: 0;
    transition: width 0.3s ease;
}

.vcw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, 
                border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background-color: var(--vcw-white);
    color: var(--vcw-body);
    border-color: var(--vcw-gray-300);
}

.vcw-btn:hover {
    background-color: var(--vcw-gray-100);
    border-color: var(--vcw-gray-400);
}

.vcw-btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.vcw-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.vcw-btn.vcw-btn-primary {
    color: var(--vcw-white);
    background-color: var(--vcw-primary);
    border-color: var(--vcw-primary);
}

.vcw-btn.vcw-btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.vcw-btn.vcw-btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(49, 132, 253, 0.5);
}

.vcw-btn.vcw-btn-outline-primary {
    color: var(--vcw-primary);
    background-color: transparent;
    border-color: var(--vcw-primary);
}

.vcw-btn.vcw-btn-outline-primary:hover {
    color: var(--vcw-white);
    background-color: var(--vcw-primary);
    border-color: var(--vcw-primary);
}

.vcw-btn.vcw-btn-outline-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.5);
}

.vcw-btn.vcw-btn-outline-secondary {
    color: var(--vcw-secondary);
    background-color: transparent;
    border-color: var(--vcw-secondary);
}

.vcw-btn.vcw-btn-outline-secondary:hover {
    color: var(--vcw-white);
    background-color: var(--vcw-secondary);
    border-color: var(--vcw-secondary);
}

.vcw-btn.vcw-btn-outline-secondary:focus {
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.5);
}

.vcw-btn.vcw-btn-light {
    color: var(--vcw-body);
    background-color: var(--vcw-light);
    border-color: var(--vcw-gray-300);
}

.vcw-btn.vcw-btn-light:hover {
    background-color: var(--vcw-gray-200);
    border-color: var(--vcw-gray-400);
}

.vcw-btn.vcw-btn-link {
    border-color: transparent;
    color: var(--vcw-danger);
    background: none;
    padding-left: 0;
    padding-right: 0;
    text-decoration: underline;
}

.vcw-btn.vcw-btn-link:hover {
    color: #bb2d3b;
    background: none;
    border-color: transparent;
}

.vcw-btn.vcw-btn-primary-alt {
    color: var(--vcw-white);
    background-color: var(--vcw-primary);
    border-color: var(--vcw-primary);
}

.vcw-btn.vcw-btn-primary-alt:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.vcw-btn.vcw-btn-ghost {
    color: var(--vcw-secondary);
    background-color: transparent;
    border-color: var(--vcw-gray-300);
}

.vcw-btn.vcw-btn-ghost:hover {
    background-color: var(--vcw-gray-100);
    border-color: var(--vcw-gray-400);
}

.vcw-progress-card.success {
    border-color: #198754;
    background: #d1e7dd;
    color: #0f5132;
}

.vcw-progress-card.error {
    border-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.vcw-empty {
    margin: 0;
    padding: 18px;
    text-align: center;
    color: var(--vcw-muted);
    font-style: italic;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
