* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #182536;
    background: #f3f6fa;
}

.page-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.audit-card {
    width: min(720px, 100%);
    padding: 48px;
    border: 1px solid #e1e7ef;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(25, 43, 68, 0.1);
}

.eyebrow {
    margin: 0 0 8px;
    color: #2f80ed;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.05;
}

.subtitle {
    margin: 14px 0 0;
    color: #2f80ed;
    font-size: 1.25rem;
    font-weight: 700;
}

.description {
    margin: 20px 0 32px;
    color: #637086;
    font-size: 1rem;
    line-height: 1.65;
}

.upload-form {
    display: grid;
    gap: 20px;
}

.upload-field {
    display: grid;
    gap: 10px;
}

label {
    font-weight: 700;
}

input[type="file"] {
    width: 100%;
    padding: 16px;
    border: 1px dashed #b7c2d1;
    border-radius: 14px;
    background: #f8fafc;
}

button {
    margin-top: 8px;
    padding: 16px 20px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: #182536;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: #25364c;
}

@media (max-width: 640px) {
    .page-shell {
        padding: 16px;
    }

    .audit-card {
        padding: 30px 22px;
    }
}
.pricing-file-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    border: 1px solid #dce5ee;
    border-radius: 14px;
    background: #f8fafc;
}

.pricing-file-status div {
    display: grid;
    gap: 5px;
}

.status-label {
    color: #637086;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge {
    padding: 7px 12px;
    border-radius: 999px;
    color: #167545;
    background: #dcf7e8;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-badge-error {
    color: #a12626;
    background: #fde8e8;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.audit-message {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 14px;
    font-weight: 650;
    line-height: 1.5;
}

.audit-message-loading {
    color: #315f91;
    background: #eaf3ff;
}

.audit-message-success {
    color: #167545;
    background: #e5f8ed;
}

.audit-message-error {
    color: #a12626;
    background: #fde8e8;
}

.results-section {
    width: min(1180px, 100%);
    margin: 34px auto 0;
    padding: 42px;
    border: 1px solid #e1e7ef;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(25, 43, 68, 0.1);
}

.results-heading,
.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.results-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.results-subtitle {
    margin: 10px 0 0;
    color: #637086;
}

.demo-badge {
    padding: 8px 13px;
    border-radius: 999px;
    color: #7d5410;
    background: #fff2cf;
    font-size: 0.82rem;
    font-weight: 800;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.summary-card {
    display: grid;
    gap: 10px;
    padding: 22px;
    border: 1px solid #e1e7ef;
    border-radius: 17px;
    background: #f8fafc;
}

.summary-card span {
    color: #637086;
    font-size: 0.9rem;
    font-weight: 650;
}

.summary-card strong {
    font-size: 2rem;
}

.summary-card-warning {
    background: #fff8e8;
}

.coverage-panel {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid #dce5ee;
    border-radius: 17px;
}

.coverage-panel > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.coverage-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7edf4;
}

.coverage-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #2f80ed;
    transition: width 700ms ease;
}

.insight-card,
.exceptions-panel {
    margin-top: 24px;
    padding: 26px;
    border: 1px solid #e1e7ef;
    border-radius: 18px;
}

.insight-card {
    background: #f7faff;
}

.insight-card h3,
.section-heading h3 {
    margin: 0;
    font-size: 1.35rem;
}

.insight-card p:last-child {
    margin: 16px 0 0;
    color: #526178;
    line-height: 1.7;
}

.table-wrapper {
    margin-top: 22px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

th,
td {
    padding: 15px 14px;
    border-bottom: 1px solid #e5eaf0;
    text-align: left;
}

th {
    color: #68768b;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rule-code {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 8px;
    color: #315f91;
    background: #eaf3ff;
    font-size: 0.8rem;
    font-weight: 750;
}

.difference-positive {
    color: #a12626;
    font-weight: 750;
}

.review-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    color: #8a5810;
    background: #fff0c2;
    font-size: 0.8rem;
    font-weight: 750;
}

@media (max-width: 850px) {
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 560px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .results-heading {
        display: grid;
    }
}

.audit-rules-card {
    margin-top: 32px;
    padding: 32px;
    border: 1px solid #d9e3ef;
    border-radius: 24px;
    background: #ffffff;
}

.audit-rules-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.audit-rules-header h2 {
    margin: 6px 0 10px;
    font-size: 2rem;
    color: #17263a;
}

.section-eyebrow {
    margin: 0;
    color: #2f80ed;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.audit-rules-intro {
    margin: 0;
    max-width: 620px;
    color: #64748b;
    line-height: 1.6;
}

.audit-rules-count {
    min-width: 130px;
    padding: 16px 20px;
    border-radius: 18px;
    background: #eef5ff;
    text-align: center;
}

.audit-rules-count span {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #17263a;
}

.audit-rules-count small {
    color: #64748b;
    font-weight: 700;
}

.audit-rules-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.audit-rules-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.audit-rules-table th,
.audit-rules-table td {
    padding: 18px 14px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: middle;
}

.audit-rules-table th {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.audit-rules-table th:first-child,
.audit-rules-table td:first-child {
    width: 34%;
}

.audit-rules-table th:nth-child(2),
.audit-rules-table td:nth-child(2) {
    width: 16%;
}

.audit-rules-table th:nth-child(n + 3),
.audit-rules-table td:nth-child(n + 3) {
    width: 12.5%;
}

.audit-rule-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.audit-rule-name strong {
    color: #17263a;
}

.audit-rule-name span {
    color: #64748b;
    font-size: 0.82rem;
}

.rule-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.rule-status-success {
    color: #18794e;
    background: #dcf7e8;
}

.rule-status-warning {
    color: #9a6700;
    background: #fff0c2;
}

@media (max-width: 800px) {
    .audit-rules-card {
        padding: 22px;
    }

    .audit-rules-header {
        flex-direction: column;
    }

    .audit-rules-table {
        min-width: 760px;
        table-layout: auto;
    }
}
.audit-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.audit-rule-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid #dbe5f0;
    border-radius: 20px;
    background: #f8fafc;
}

.audit-rule-card-warning {
    border-color: #f2d58a;
    background: #fffaf0;
}

.audit-rule-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.audit-rule-category {
    margin: 0 0 6px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.audit-rule-card h3 {
    margin: 0;
    color: #17263a;
    font-size: 1.25rem;
}

.audit-rule-id {
    display: inline-block;
    margin-top: 6px;
    color: #64748b;
    font-size: 0.82rem;
}
.audit-rule-summary {
    margin-top: 26px;
}

.audit-rule-primary-result {
    padding-bottom: 18px;
    border-bottom: 1px solid #dbe5f0;
}

.audit-rule-primary-result strong,
.audit-rule-primary-result span {
    display: block;
}

.audit-rule-primary-result strong {
    color: #17263a;
    font-size: 2rem;
    line-height: 1;
}

.audit-rule-primary-result span {
    margin-top: 8px;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
}

.audit-rule-stat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 18px;
}

.audit-rule-stat-list span {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.audit-rule-stat-list strong {
    margin-right: 4px;
    color: #17263a;
}
.audit-rule-progress {
    height: 8px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5edf6;
}

.audit-rule-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: #2f80ed;
}

@media (max-width: 850px) {
    .audit-rules-grid {
        grid-template-columns: 1fr;
    }
}

.recent-audits-section {
    margin-top: 24px;
}

.recent-audits-list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.recent-audits-empty {
    padding: 32px;
    margin-top: 20px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
}

.recent-audits-empty strong {
    display: block;
    margin-bottom: 6px;
    color: #172033;
}

.recent-audits-empty p {
    margin: 0;
    color: #64748b;
}

.recent-audit-card {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15,23,42,0.05);
}

.recent-audit-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.recent-audit-date {
    margin: 0 0 5px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
}

.recent-audit-heading h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #172033;
}

.recent-audit-document {
    margin: 6px 0 0;
    font-size: 0.9rem;
    color: #64748b;
}

.recent-audit-status-success,
.recent-audit-status-warning {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.recent-audit-status-success {
    background: #dcfce7;
    color: #166534;
}

.recent-audit-status-warning {
    background: #ffedd5;
    color: #9a3412;
}

.recent-audit-metrics {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
    margin-top: 18px;
}

.recent-audit-metrics span {
    display: block;
    font-size: 0.82rem;
    color: #64748b;
}

.recent-audit-metrics strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    color: #172033;
}

@media (max-width: 760px) {

    .recent-audit-heading {
        flex-direction: column;
    }

    .recent-audit-metrics {
        grid-template-columns: repeat(2,1fr);
    }

}