.a2s-main {
    --a2s-accent: #7c3aed;
    --a2s-accent-dark: #6d28d9;
    --a2s-accent-light: color-mix(in srgb, #7c3aed 12%, transparent);
    --a2s-border: #e5e7eb;
    --a2s-panel-bg: #f3f4f6;
    --a2s-text: #111827;
    --a2s-muted: #6b7280;
    padding: 40px 0 80px;
}

/* Hero (plain, no card) */
.a2s-hero {
    margin-bottom: 28px;
    text-align: center;
}
.a2s-title {
    font-size: clamp(28px, 4vw, 40px);
    color: var(--a2s-text);
    margin: 0 0 10px;
    line-height: 1.2;
}
.a2s-subtitle {
    color: var(--a2s-muted);
    font-size: 16px;
    margin: 0 auto;
    max-width: 720px;
}

/* Tool card */
.a2s-tool-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Drop zone */
.a2s-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #fafafa;
    padding: 38px 20px;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
}
.a2s-dropzone.is-drag {
    border-color: var(--a2s-accent);
    background: var(--a2s-accent-light);
}
.a2s-dropzone-icon {
    color: var(--a2s-accent);
    display: inline-flex;
    margin-bottom: 10px;
}
.a2s-dropzone-text {
    color: var(--a2s-text);
    font-size: 15px;
    margin: 0 0 4px;
}
.a2s-dropzone-hint {
    color: var(--a2s-muted);
    font-size: 13px;
    margin: 0;
}
.a2s-main .a2s-browse {
    background: none;
    border: none;
    color: var(--a2s-accent-dark);
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
    text-decoration: underline;
}
.a2s-main .a2s-browse:focus-visible {
    outline: 2px solid var(--a2s-accent);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Queue */
.a2s-queue {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.a2s-queue:empty { margin-top: 0; }
.a2s-queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--a2s-panel-bg);
    border: 1px solid var(--a2s-border);
    border-radius: 8px;
    padding: 9px 12px;
}
.a2s-queue-name {
    flex: 1;
    color: var(--a2s-text);
    font-weight: 600;
    font-size: 14px;
    word-break: break-all;
}
.a2s-queue-size {
    color: var(--a2s-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.a2s-main .a2s-queue-remove {
    background: none;
    border: none;
    color: var(--a2s-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.a2s-main .a2s-queue-remove:hover { color: #ef4444; }
.a2s-main .a2s-queue-remove:focus-visible {
    outline: 2px solid var(--a2s-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Settings panel (soft gray) */
.a2s-settings {
    background: var(--a2s-panel-bg);
    padding: 16px 18px 18px;
    border-radius: 12px;
    margin-top: 20px;
}
.a2s-settings-label {
    font-size: 12px;
    color: var(--a2s-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
}
.a2s-settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.a2s-setting {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.a2s-setting label {
    font-size: 13px;
    color: var(--a2s-text);
    font-weight: 600;
}
.a2s-main .a2s-select {
    width: 100%;
    padding: 10px 12px;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--a2s-text);
    line-height: 1.3;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.a2s-main .a2s-select:hover { border-color: #9ca3af; }
.a2s-main .a2s-select:focus {
    outline: none;
    border-color: var(--a2s-accent);
    box-shadow: 0 0 0 3px var(--a2s-accent-light);
}

/* Action row */
.a2s-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}
.a2s-btn {
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
}
.a2s-btn-primary {
    background: var(--a2s-accent-dark);
    color: #fff;
    border-color: var(--a2s-accent-dark);
}
.a2s-btn-primary:hover { background: #5b21b6; border-color: #5b21b6; }
.a2s-btn-primary:disabled {
    background: #c4b5fd;
    border-color: #c4b5fd;
    cursor: not-allowed;
}
.a2s-btn-primary.is-busy { opacity: 0.7; cursor: progress; }
.a2s-btn-ghost {
    background: #fff;
    color: var(--a2s-text);
    border-color: var(--a2s-border);
}
.a2s-btn-ghost:hover { background: #f9fafb; border-color: #d1d5db; }
.a2s-btn-ghost:disabled { color: #9ca3af; cursor: not-allowed; }
/* "Download all as ZIP" — filled green so it stands out as the results CTA
   (distinct from the violet Convert button); #047857 hits WCAG AA on white. */
.a2s-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #047857;
    color: #fff;
    border-color: #047857;
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.35);
}
.a2s-btn-download:hover { background: #065f46; border-color: #065f46; }
.a2s-btn-download svg { width: 18px; height: 18px; flex-shrink: 0; }
.a2s-btn:focus-visible {
    outline: 2px solid var(--a2s-accent);
    outline-offset: 2px;
}

/* Results */
.a2s-results {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--a2s-border);
}
.a2s-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.a2s-results-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--a2s-text);
    margin: 0;
}
.a2s-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.a2s-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--a2s-border);
    border-radius: 8px;
    padding: 10px 12px;
}
.a2s-result-item.is-error {
    background: #fef2f2;
    border-color: #fecaca;
}
.a2s-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.a2s-result-name {
    color: var(--a2s-text);
    font-weight: 600;
    font-size: 14px;
    word-break: break-all;
}
.a2s-result-status {
    color: var(--a2s-muted);
    font-size: 12px;
}
.a2s-result-item.is-error .a2s-result-status { color: #dc2626; }
.a2s-result-dl { padding: 8px 14px; font-size: 13px; white-space: nowrap; }

/* Toasts */
.a2s-toasts {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
}
.a2s-toast {
    background: #111827;
    color: #fff;
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: opacity 0.3s, transform 0.3s;
}
.a2s-toast-success { background: #059669; }
.a2s-toast-error { background: #dc2626; }
.a2s-toast-out { opacity: 0; transform: translateY(8px); }

/* SEO content section — flat separator */
.a2s-seo-content {
    padding-top: 36px;
    border-top: 1px solid var(--a2s-border);
    margin-top: 54px;
}
.a2s-seo-content-inner { max-width: none; }

/* FAQ section — flat separator */
.a2s-faq {
    padding-top: 36px;
    border-top: 1px solid var(--a2s-border);
    margin-top: 54px;
}
.a2s-faq-inner {
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
}
.a2s-faq-title {
    font-size: 24px;
    margin: 0 0 16px;
    color: var(--a2s-text);
}
.a2s-faq-item {
    border-bottom: 1px solid var(--a2s-border);
    padding: 14px 0;
}
.a2s-faq-item:last-child { border-bottom: none; }
.a2s-faq-q {
    font-weight: 600;
    color: var(--a2s-text);
    cursor: pointer;
    list-style: none;
    padding-right: 24px;
    position: relative;
}
.a2s-faq-q::-webkit-details-marker { display: none; }
.a2s-faq-q::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 20px;
    color: var(--a2s-muted);
    transition: transform 0.15s;
}
.a2s-faq-item[open] .a2s-faq-q::after { content: "\2212"; }
.a2s-faq-a {
    color: var(--a2s-muted);
    margin-top: 10px;
    line-height: 1.6;
}

/* Mobile */
@media (max-width: 640px) {
    .a2s-tool-card { padding: 20px; }
    .a2s-settings-grid { grid-template-columns: 1fr; gap: 10px; }
    .a2s-actions { flex-direction: column; align-items: stretch; }
    .a2s-results-head { flex-direction: column; align-items: stretch; }
    /* DO NOT add background/border/radius/shadow to .a2s-faq-inner here */
}
