.ac24-auditor-shell {
    background: linear-gradient(180deg, #f8f7fc 0%, #f1ecff 100%);
    color: #0f172a;
    --ac24-indigo: #422399;
    --ac24-indigo-dark: #301766;
    --ac24-indigo-soft: rgba(66, 35, 153, 0.08);
    --ac24-indigo-soft-strong: rgba(66, 35, 153, 0.12);
    --ac24-indigo-border: rgba(66, 35, 153, 0.08);
    --ac24-indigo-light: #c4a8ff;
    --ac24-indigo-bg: #f3efff;
}

.ac24-panel {
    background: #ffffff;
    border: 1px solid var(--ac24-indigo-border);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
    padding: 1.25rem;
}

.ac24-sidebar {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ac24-brand-title,
.ac24-card-title,
.ac24-hero-title,
.ac24-issue-card h3,
.ac24-easy-card h3 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.ac24-brand-title {
    font-size: 1.5rem;
}

.ac24-card-title {
    font-size: 1.35rem;
}

.ac24-hero-title {
    font-size: clamp(1.55rem, 3.2vw, 2.35rem);
    line-height: 1.08;
    max-width: 42rem;
}

.ac24-section-label,
.ac24-muted {
    color: #475569;
}

.ac24-muted {
    font-size: 0.95rem;
    line-height: 1.55;
}

.ac24-section-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ac24-chip,
.ac24-status-pill,
.ac24-badge,
.ac24-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.32rem 0.65rem;
}

.ac24-chip {
    background: var(--ac24-indigo-soft);
    color: var(--ac24-indigo);
}

.ac24-chip-primary {
    background: var(--ac24-indigo);
    color: #fff;
}

.ac24-chip-warning {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
}

.ac24-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ac24-nav-item {
    color: #334155;
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ac24-nav-item:hover,
.ac24-nav-item.is-active {
    background: var(--ac24-indigo-soft);
    color: var(--ac24-indigo);
}

.ac24-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--ac24-indigo-soft-strong);
    color: var(--ac24-indigo);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.ac24-sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.ac24-hero-panel {
    overflow: hidden;
}

.ac24-hero-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ac24-stat-pill,
.ac24-mini-stat,
.ac24-summary-meta div {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 0.85rem 1rem;
}

.ac24-stat-pill span,
.ac24-mini-stat span,
.ac24-summary-meta span {
    display: block;
    color: #64748b;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ac24-stat-pill strong,
.ac24-mini-stat strong,
.ac24-summary-meta strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.ac24-primary-button {
    background: linear-gradient(135deg, var(--ac24-indigo) 0%, var(--ac24-indigo-dark) 100%);
    border: 0;
    box-shadow: 0 18px 30px rgba(66, 35, 153, 0.24);
    font-size: 0.95rem;
    padding: 0.85rem 1.1rem;
}

.ac24-indigo-button {
    background: linear-gradient(135deg, var(--ac24-indigo) 0%, var(--ac24-indigo-dark) 100%);
    border: 0;
    color: #fff;
    box-shadow: 0 12px 24px rgba(66, 35, 153, 0.18);
}

.ac24-indigo-button:hover,
.ac24-indigo-button:focus,
.ac24-indigo-button:active {
    background: linear-gradient(135deg, var(--ac24-indigo-dark) 0%, var(--ac24-indigo) 100%);
    color: #fff;
}

.ac24-score {
    font-size: clamp(2.2rem, 6vw, 3.9rem);
    line-height: 0.9;
    color: var(--ac24-indigo);
}

.ac24-chart-wrap {
    position: relative;
    min-height: 320px;
}

.ac24-progress-chart-wrap {
    position: relative;
    min-height: 280px;
}

.ac24-progress-range {
    min-width: 10rem;
}

.ac24-progress-loader {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    color: #334155;
    font-weight: 700;
    backdrop-filter: blur(2px);
}

.ac24-progress-date-range {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #475569;
    font-size: 0.92rem;
}

.ac24-progress-date-range strong {
    color: #0f172a;
}

.ac24-link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--ac24-indigo);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.ac24-link-button:hover,
.ac24-link-button:focus {
    color: var(--ac24-indigo-dark);
}

.ac24-highlight-card {
    min-height: 100%;
}

.ac24-barrier-card {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    padding: 1.1rem;
}

.ac24-barrier-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.ac24-barrier-stats div {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 0.85rem 0.9rem;
}

.ac24-barrier-stats span {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ac24-barrier-stats strong {
    display: block;
    margin-top: 0.25rem;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 800;
}

.ac24-score-guidance {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 1rem;
}

.ac24-score-guidance-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.ac24-score-guidance-head strong {
    color: var(--ac24-indigo);
    font-size: 0.9rem;
    font-weight: 800;
}

.ac24-score-next-step {
    border-left: 4px solid var(--ac24-indigo);
    background: var(--ac24-indigo-soft);
    border-radius: 0 14px 14px 0;
    padding: 0.85rem 1rem;
    color: #312e81;
    font-size: 0.94rem;
    line-height: 1.55;
}

.ac24-plan-form-wrap {
    padding-left: 0;
    padding-right: 0;
    max-width: 32rem;
}

.ac24-plan-form-wrap .btn-indigo {
    width: 100%;
}

.ac24-expert-cta {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 1rem;
}

.ac24-expert-cta .btn-indigo {
    width: 100%;
}

.ac24-plan-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: #475569;
}

.ac24-plan-terms input {
    margin-top: 0.2rem;
}

.ac24-severity-list {
    display: grid;
    gap: 0.75rem;
}

.ac24-severity-item {
    border-radius: 18px;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.ac24-severity-item strong {
    font-size: 1.25rem;
}

.ac24-severity-critical { background: #fef2f2; color: #b91c1c; }
.ac24-severity-serious { background: #fff7ed; color: #c2410c; }
.ac24-severity-moderate { background: #fefce8; color: #a16207; }
.ac24-severity-minor { background: var(--ac24-indigo-bg); color: var(--ac24-indigo); }

.ac24-summary-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.ac24-grade-legend {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 0.9rem 1rem;
}

.ac24-grade-legend-title {
    color: var(--ac24-indigo);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.ac24-grade-legend-list {
    margin: 0;
    padding-left: 1rem;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
}

.ac24-grade-legend-list strong {
    color: #0f172a;
}

.ac24-lock-card {
    border: 1px dashed rgba(217, 119, 6, 0.35);
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.85) 0%, rgba(255, 255, 255, 1) 100%);
    border-radius: 24px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.ac24-brevo-register-form .container {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
}

.ac24-lock-card .btn-indigo {
    width: 100%;
    margin: 0;
    border-radius: 0.375rem;
}

.ac24-login-cta-wrap {
    margin-top: 64px;
}

.ac24-obtain-more-wrap .btn-indigo {
    width: 100%;
    margin: 0;
    border-radius: 0.375rem;
}

.ac24-brevo-register-form .btn-indigo {
    width: 100%;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--ac24-indigo) 0%, var(--ac24-indigo-dark) 100%);
    box-shadow: 0 12px 24px rgba(66, 35, 153, 0.18);
}

.ac24-brevo-register-form .btn-indigo:hover,
.ac24-brevo-register-form .btn-indigo:focus,
.ac24-brevo-register-form .btn-indigo:active {
    color: #fff;
    background: linear-gradient(135deg, var(--ac24-indigo-dark) 0%, var(--ac24-indigo) 100%);
}

.ac24-brevo-register-form label a {
    color: var(--ac24-indigo);
    font-weight: 700;
}

.ac24-brevo-register-form input[type="checkbox"] {
    margin-right: 0.5rem;
}

.ac24-issues-list {
    display: grid;
    gap: 1rem;
}

.ac24-issue-group {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 22px;
    background: #fff;
    overflow: hidden;
}

.ac24-issue-group + .ac24-issue-group {
    margin-top: 1rem;
}

.ac24-issue-group-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    background: #f8fafc;
}

.ac24-issue-group-summary::-webkit-details-marker {
    display: none;
}

.ac24-issue-group-title {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0.55rem 0 0.2rem;
    font-weight: 800;
}

.ac24-issue-group-toggle {
    color: var(--ac24-indigo);
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
}

.ac24-issue-group[open] .ac24-issue-group-summary {
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.ac24-issue-group-body {
    padding: 1rem;
}

.ac24-issue-group.severity-critical .ac24-issue-group-summary {
    background: #fef2f2;
}

.ac24-issue-group.severity-serious .ac24-issue-group-summary {
    background: #fff7ed;
}

.ac24-issue-group.severity-moderate .ac24-issue-group-summary {
    background: #fefce8;
}

.ac24-issue-group.severity-minor .ac24-issue-group-summary {
    background: #f5f3ff;
}

.ac24-issue-card {
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 1.15rem;
    background: #fff;
}

.ac24-issue-card h3,
.ac24-easy-card h3 {
    font-size: 1.02rem;
    line-height: 1.35;
    margin-bottom: 0;
}

.ac24-issue-card p,
.ac24-easy-card p,
.ac24-recommendation p,
.ac24-node-block p,
.ac24-history-table,
.ac24-mini-stat,
.ac24-stat-pill {
    font-size: 0.95rem;
}

.ac24-issue-card.severity-critical { border-left: 6px solid #dc2626; }
.ac24-issue-card.severity-serious { border-left: 6px solid #f97316; }
.ac24-issue-card.severity-moderate { border-left: 6px solid #eab308; }
.ac24-issue-card.severity-minor { border-left: 6px solid var(--ac24-indigo); }

.ac24-badge.severity-critical { background: #fee2e2; color: #b91c1c; }
.ac24-badge.severity-serious { background: #ffedd5; color: #c2410c; }
.ac24-badge.severity-moderate { background: #fef9c3; color: #a16207; }
.ac24-badge.severity-minor { background: var(--ac24-indigo-bg); color: var(--ac24-indigo); }
.ac24-badge.wcag { background: #f1f5f9; color: #334155; }
.ac24-badge.manual { background: #ede9fe; color: #6d28d9; }

.ac24-recommendation {
    background: #f8fafc;
    border-radius: 16px;
    padding: 0.9rem;
}

.ac24-node-list {
    display: grid;
    gap: 0.75rem;
}

.ac24-node-block {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 16px;
    padding: 0.9rem;
    min-width: 0;
}

.ac24-node-block pre {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    padding: 0.65rem;
    margin: 0;
    color: var(--ac24-indigo-light);
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 0.82rem;
    line-height: 1.45;
}

.ac24-node-block code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: inherit;
}

.ac24-easy-card {
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #ffffff;
    padding: 1.1rem;
    height: 100%;
}

.ac24-status-pill {
    background: #e2e8f0;
    color: #334155;
}

.ac24-status-pass .ac24-status-pill { background: #dcfce7; color: #15803d; }
.ac24-status-fail .ac24-status-pill { background: #fee2e2; color: #b91c1c; }
.ac24-status-warning .ac24-status-pill { background: #fef3c7; color: #b45309; }
.ac24-status-manual .ac24-status-pill { background: var(--ac24-indigo-bg); color: var(--ac24-indigo); }

.ac24-history-table th {
    color: #64748b;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ac24-history-table td,
.ac24-history-table button,
.ac24-auditor-shell .form-label,
.ac24-auditor-shell .form-control,
.ac24-auditor-shell .form-select,
.ac24-auditor-shell .form-text,
.ac24-auditor-shell .btn {
    font-size: 0.95rem;
}

.ac24-auditor-shell .form-control,
.ac24-auditor-shell .form-select {
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
}

.ac24-score-badge {
    background: var(--ac24-indigo-soft);
    color: var(--ac24-indigo);
    min-width: 3rem;
}

.ac24-history-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ac24-ranking-table td strong {
    color: #0f172a;
}

.ac24-ranking-table {
    table-layout: auto;
    width: 100%;
}

.ac24-ranking-table th,
.ac24-ranking-table td {
    vertical-align: middle;
}

.ac24-ranking-table th:nth-child(1),
.ac24-ranking-table td:nth-child(1),
.ac24-ranking-table th:nth-child(4),
.ac24-ranking-table td:nth-child(4),
.ac24-ranking-table th:nth-child(5),
.ac24-ranking-table td:nth-child(5) {
    white-space: nowrap;
}

.ac24-url-ellipsis {
    display: inline-block;
    width: min(100%, 26rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .ac24-url-ellipsis {
        width: min(100%, 16rem);
    }
}

.ac24-empty-state {
    border-radius: 20px;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    background: #f8fafc;
    color: #64748b;
    text-align: center;
    padding: 2rem 1rem;
}

@media (max-width: 991px) {
    .ac24-panel {
        padding: 1rem;
    }

    .ac24-issue-group-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .ac24-summary-meta {
        grid-template-columns: 1fr;
    }

    .ac24-barrier-stats {
        grid-template-columns: 1fr;
    }

    .ac24-chart-wrap {
        min-height: 260px;
    }

    .ac24-progress-chart-wrap {
        min-height: 240px;
    }

    .ac24-progress-range {
        width: 100%;
    }

    .ac24-progress-date-range {
        flex-direction: column;
        align-items: flex-start;
    }

    .ac24-hero-title {
        font-size: 1.6rem;
    }

    .ac24-score {
        font-size: 2.3rem;
    }
}

@media print {
    body {
        background: #fff !important;
    }

    header,
    footer,
    .ac24-sidebar,
    #ac24-audit-form,
    #ac24-lock-notice,
    #ac24-history,
    #ac24-filters-wrap,
    #ac24-print-report,
    #ac24-print-report-bottom,
    #wpadminbar {
        display: none !important;
    }

    .ac24-auditor-shell,
    .ac24-panel,
    .ac24-issue-group,
    .ac24-issue-card,
    .ac24-easy-card {
        background: #fff !important;
        box-shadow: none !important;
        border-color: #d1d5db !important;
    }

    .ac24-auditor-shell {
        padding-top: 0 !important;
    }

    #ac24-easy-checks {
        display: block !important;
        break-before: page;
        page-break-before: always;
    }

    #ac24-easy-checks-grid,
    #ac24-easy-checks-grid > div,
    .ac24-issue-group,
    .ac24-easy-card,
    .ac24-issue-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .ac24-issue-group {
        display: block !important;
    }

    .ac24-issue-group-summary {
        cursor: default;
        padding: 0 0 0.75rem;
        margin-bottom: 0.75rem;
        background: transparent !important;
        border-bottom: 1px solid #d1d5db !important;
    }

    .ac24-issue-group-toggle {
        display: none !important;
    }

    .ac24-issue-group-body {
        padding: 0;
    }

    .ac24-chart-wrap {
        min-height: 240px;
    }

    .ac24-progress-chart-wrap {
        min-height: 220px;
    }
}
