@charset "UTF-8";

/* EmailScrubber application styles.
   Keep all custom declarations compatible with classic ASP.NET MVC. */

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

.login-page .app-main {
    display: flex;
    min-height: 100vh;
    align-items: center;
    padding: 3rem 0;
}

.login-shell {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.login-card {
    padding: 2.5rem;
}

.login-brand {
    display: inline-flex;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: #2859d9;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.login-card h1 {
    margin-bottom: .75rem;
}

.login-intro {
    margin-bottom: 1.75rem;
    color: #667085;
}

.login-remember {
    margin: .25rem 0 1.5rem;
}

.login-note {
    margin: 1.5rem 0 0;
    color: #667085;
    font-size: .85rem;
    text-align: center;
}

.login-theme-toggle {
    margin: 1rem auto 0;
}

.nav-user {
    max-width: 10rem;
    overflow: hidden;
    color: #667085;
    font-size: .85rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-logout-form {
    margin: 0;
}

.nav-logout {
    border: 0;
    background: transparent;
}

html.theme-dark .login-intro,
html.theme-dark .login-note,
html.theme-dark .nav-user {
    color: #98a2b3;
}

@media (max-width: 575.98px) {
    .login-card {
        padding: 1.5rem;
    }
}

.sql-rule-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1.5rem;
}

.sql-rule-grid > div {
    padding: .85rem;
    border: 1px solid #e4e7ec;
    border-radius: .75rem;
    background: #f8fafc;
}

.sql-rule-grid span,
.sql-rule-grid strong {
    display: block;
}

.sql-rule-grid span {
    margin-bottom: .2rem;
    color: #667085;
    font-size: .75rem;
}

.sql-mapping-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem 1rem;
    max-height: 46rem;
    padding-right: .5rem;
    overflow-y: auto;
}

.sql-map-row {
    margin-bottom: 0;
}

.inline-split-form {
    display: inline-block;
    margin: 0 .35rem .35rem 0;
}

.split-unavailable {
    border-color: #f0b429;
    background: #fffbeb;
}

html.theme-dark .split-unavailable {
    border-color: #b7791f;
    background: #332701;
}

.sticky-export-actions {
    position: sticky;
    z-index: 20;
    bottom: 1rem;
    display: flex;
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #d0d5dd;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 32px rgba(16, 24, 40, .14);
}

.sticky-export-actions span {
    display: block;
    color: #667085;
    font-size: .85rem;
}

html.theme-dark .sql-rule-grid > div {
    border-color: #344054;
    background: #1d2939;
}

html.theme-dark .sql-rule-grid span,
html.theme-dark .sticky-export-actions span {
    color: #98a2b3;
}

html.theme-dark .sticky-export-actions {
    border-color: #344054;
    background: rgba(16, 24, 40, .96);
}

@media (max-width: 767.98px) {
    .sql-mapping-grid,
    .sql-rule-grid {
        grid-template-columns: 1fr;
    }

    .sticky-export-actions {
        position: static;
        align-items: stretch;
        flex-direction: column;
    }
}

html.theme-light {
    color-scheme: light;
}

html.theme-dark {
    color-scheme: dark;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: #f4f7fb;
    color: #172033;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #2859d9;
    text-underline-offset: 0.18em;
}

a:hover {
    color: #183d9f;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

:focus-visible {
    outline: 3px solid #2f6fed;
    outline-offset: 3px;
}

::selection {
    background: #cbdcff;
    color: #172033;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2000;
    padding: 0.7rem 1rem;
    border-radius: 0.6rem;
    background: #172033;
    color: #ffffff;
    font-weight: 700;
    transform: translateY(-160%);
}

.skip-link:focus {
    color: #ffffff;
    transform: translateY(0);
}

.app-main {
    width: 100%;
    flex: 1 0 auto;
    padding: 2.5rem 0 4.5rem;
}

.app-main:focus {
    outline: none;
}

.app-header {
    position: relative;
    z-index: 100;
    border-bottom: 1px solid #dfe5ef;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 0 rgba(22, 32, 51, 0.02);
    backdrop-filter: blur(16px);
}

.app-nav-row {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #172033;
    text-decoration: none;
}

.app-brand:hover {
    color: #172033;
}

.eventos-logo {
    display: block;
    width: 180px;
    height: auto;
}

.eventos-logo-dark {
    display: none;
}

html.theme-dark .eventos-logo-light {
    display: none;
}

html.theme-dark .eventos-logo-dark {
    display: block;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: linear-gradient(145deg, #2f6fed, #2047b5);
    box-shadow: 0 8px 18px rgba(40, 89, 217, 0.24);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-tagline {
    margin-top: 0.22rem;
    color: #7a8598;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.primary-navigation {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.primary-navigation .nav-link {
    position: relative;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 0.65rem;
    color: #596579;
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

.primary-navigation .nav-link:hover {
    background: #f2f5fa;
    color: #172033;
}

.primary-navigation .nav-link.active {
    background: #eaf0ff;
    color: #234fc4;
}

.nav-divider {
    width: 1px;
    height: 26px;
    margin: 0 0.6rem;
    background: #dfe5ef;
}

.theme-toggle {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d8e0ec;
    border-radius: 0.65rem;
    background: #ffffff;
    color: #455166;
    font-size: 0.86rem;
    font-weight: 700;
}

.theme-toggle:hover {
    border-color: #aab8cd;
    background: #f8fafc;
    color: #172033;
}

.theme-toggle-symbol {
    width: 1.3rem;
    height: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #172033;
    color: #ffffff;
    font-size: 0.75rem;
}

.mobile-nav-toggle {
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e0ec;
    border-radius: 0.7rem;
    background: #ffffff;
}

.nav-toggle-bars {
    width: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle-bars span {
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #172033;
}

.workflow-shell {
    border-bottom: 1px solid #dfe5ef;
    background: #ffffff;
}

.workflow-steps {
    max-width: 770px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.workflow-step {
    position: relative;
}

.workflow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -14%;
    width: 28%;
    height: 1px;
    background: #d6deea;
}

.workflow-step > a,
.workflow-step > span {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 0.5rem;
    color: #8a94a5;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.workflow-step > a:hover {
    color: #234fc4;
}

.workflow-number {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccd5e3;
    border-radius: 50%;
    background: #ffffff;
    color: #7b8799;
    font-size: 0.75rem;
    font-weight: 800;
}

.workflow-step.current > a,
.workflow-step.current > span {
    color: #234fc4;
}

.workflow-step.current .workflow-number {
    border-color: #2859d9;
    background: #2859d9;
    color: #ffffff;
    box-shadow: 0 0 0 4px #e8efff;
}

.workflow-step.complete .workflow-number {
    border-color: #5c7ed4;
    background: #edf2ff;
    color: #234fc4;
}

.app-footer {
    flex: 0 0 auto;
    border-top: 1px solid #dfe5ef;
    background: #ffffff;
    color: #6a7588;
}

.footer-row {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    text-align: center;
}

.footer-row p {
    margin: 0;
    font-size: 0.78rem;
}

.footer-row strong {
    color: #3b475a;
}

.footer-meta {
    white-space: nowrap;
}

.eyebrow,
.card-kicker,
.preview-kicker {
    margin: 0 0 0.55rem;
    color: #2859d9;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.page-heading h1 {
    margin: 0;
    color: #172033;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.page-heading p:not(.eyebrow) {
    max-width: 760px;
    margin: 0.85rem 0 0;
    color: #687489;
    font-size: 1.04rem;
}

.heading-actions,
.hero-actions,
.download-actions,
.error-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.heading-assurance {
    min-width: 215px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border: 1px solid #cfe1d5;
    border-radius: 0.85rem;
    background: #f1faf4;
    color: #42624d;
    font-size: 0.78rem;
    line-height: 1.35;
}

.heading-assurance strong {
    color: #1d5732;
}

.assurance-mark,
.trust-mark {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #d8f0df;
    color: #157347;
    font-size: 0.82rem;
    font-weight: 900;
}

.surface-card {
    border: 1px solid #dfe5ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(35, 51, 78, 0.06);
}

.surface-card h2 {
    margin: 0;
    color: #1d2739;
    font-size: 1.28rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.surface-card h3 {
    color: #243044;
}

.card-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.btn-lg {
    min-height: 50px;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
    border-radius: 0.78rem;
    font-size: 0.98rem;
}

.btn-sm {
    min-height: 34px;
    border-radius: 0.55rem;
    font-size: 0.78rem;
}

.btn-primary {
    border-color: #2859d9;
    background: #2859d9;
    box-shadow: 0 6px 14px rgba(40, 89, 217, 0.18);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: #204bbd;
    background: #204bbd;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-secondary {
    border: 1px solid #d6deea;
    background: #ffffff;
    color: #354258;
}

.btn-secondary:hover,
.btn-secondary:focus {
    border-color: #afbdd0;
    background: #f5f7fb;
    color: #172033;
}

.btn-outline-primary {
    border-color: #9bb3eb;
    background: #f8faff;
    color: #234fc4;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    border-color: #2859d9;
    background: #eaf0ff;
    color: #183d9f;
}

.btn-link {
    color: #536079;
    text-decoration: none;
}

.btn-link:hover {
    color: #234fc4;
    text-decoration: underline;
}

.btn-danger-outline {
    border: 1px solid #e4aaa5;
    background: #fffafa;
    color: #a52c24;
}

.btn-danger-outline:hover,
.btn-danger-outline:focus {
    border-color: #c4473e;
    background: #fff0ef;
    color: #8a201a;
}

.btn-link-danger {
    border: 0;
    background: transparent;
    color: #a52c24;
}

.btn-link-danger:hover {
    background: #fff0ef;
    color: #8a201a;
}

.form-control,
.form-select {
    min-height: 46px;
    border: 1px solid #cfd8e6;
    border-radius: 0.65rem;
    background-color: #ffffff;
    color: #172033;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: #5b83e6;
    background-color: #ffffff;
    color: #172033;
    box-shadow: 0 0 0 4px rgba(40, 89, 217, 0.12);
}

.form-control::placeholder {
    color: #929daf;
}

.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    border-color: #aebacf;
}

.form-check-input:checked {
    border-color: #2859d9;
    background-color: #2859d9;
}

.form-label {
    margin-bottom: 0.45rem;
    color: #303d52;
    font-size: 0.88rem;
    font-weight: 750;
}

.form-field {
    margin-top: 1.35rem;
}

.form-help {
    display: block;
    margin-top: 0.45rem;
    color: #778296;
    font-size: 0.76rem;
    line-height: 1.45;
}

.field-validation-error {
    display: block;
    margin-top: 0.4rem;
    color: #b42318;
    font-size: 0.78rem;
    font-weight: 700;
}

.validation-summary {
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    border: 1px solid #f1beb9;
    border-radius: 0.7rem;
    background: #fff2f1;
    color: #8e2820;
    font-size: 0.84rem;
}

.validation-summary ul {
    margin: 0.45rem 0 0;
    padding-left: 1.2rem;
}

.validation-summary .validation-summary-valid {
    display: none;
}

.app-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid;
    border-radius: 0.8rem;
    font-size: 0.88rem;
}

.alert-mark {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 900;
}

.app-alert-success {
    border-color: #b9dec4;
    background: #eff9f2;
    color: #275c38;
}

.app-alert-success .alert-mark {
    background: #d4efdc;
    color: #12652f;
}

.app-alert-warning {
    border-color: #edd29a;
    background: #fff9eb;
    color: #73521a;
}

.app-alert-warning .alert-mark {
    background: #f9e8ba;
    color: #835700;
}

.app-alert-danger {
    border-color: #efc1bc;
    background: #fff2f1;
    color: #842c24;
}

.app-alert-danger .alert-mark {
    background: #f6d4d1;
    color: #a72b22;
}

.app-alert-info {
    border-color: #bdd2ee;
    background: #f0f6ff;
    color: #294f7e;
}

.app-alert-info .alert-mark {
    background: #d8e7fb;
    color: #2859a5;
}

/* Home */

.home-page .app-main {
    padding-top: 0;
}

.home-hero {
    position: relative;
    padding: 5rem 0 4.5rem;
}

.home-hero::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -180px;
    z-index: -1;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 122, 236, 0.14), rgba(76, 122, 236, 0));
    pointer-events: none;
}

.home-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #121c2d;
    font-size: clamp(2.7rem, 5vw, 4.6rem);
    font-weight: 780;
    letter-spacing: -0.058em;
    line-height: 0.99;
}

.hero-lead {
    max-width: 700px;
    margin: 1.45rem 0 1.7rem;
    color: #657187;
    font-size: 1.18rem;
    line-height: 1.65;
}

.trust-line {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.25rem;
    color: #546176;
    font-size: 0.82rem;
    font-weight: 650;
}

.trust-mark {
    width: 22px;
    height: 22px;
    font-size: 0.68rem;
}

.hero-preview {
    position: relative;
    overflow: hidden;
    border: 1px solid #d8e1ee;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(32, 49, 78, 0.15);
    transform: rotate(1deg);
}

.hero-preview::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(225deg, rgba(67, 111, 226, 0.12), rgba(67, 111, 226, 0));
}

.hero-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    border-bottom: 1px solid #e4e9f1;
}

.hero-preview-header > div {
    min-width: 0;
}

.hero-preview-header strong {
    display: block;
    max-width: 260px;
    overflow: hidden;
    color: #273348;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-kicker {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.62rem;
}

.sample-record {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #edf0f5;
}

.sample-row-number {
    color: #8a94a5;
    font-size: 0.68rem;
    font-weight: 750;
}

.sample-record strong,
.sample-record span {
    display: block;
}

.sample-record strong {
    overflow: hidden;
    color: #2b374b;
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sample-record div > span {
    margin-top: 0.18rem;
    color: #7a8598;
    font-size: 0.68rem;
}

.issue-dot {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 900;
}

.issue-warning {
    background: #fff0c9;
    color: #8c5d00;
}

.issue-danger {
    background: #f9d9d6;
    color: #a22e25;
}

.issue-info {
    background: #dfeaff;
    color: #2b58b4;
}

.preview-summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: #f8faff;
    color: #728097;
    font-size: 0.7rem;
}

.preview-summary strong {
    color: #263248;
    font-size: 0.9rem;
}

.home-section {
    padding: 3.5rem 0 4.5rem;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.section-heading.centered {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    color: #172033;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 750;
    letter-spacing: -0.04em;
}

.section-heading p:not(.eyebrow) {
    margin: 0.75rem 0 0;
    color: #6c788d;
}

.feature-card {
    position: relative;
    overflow: hidden;
    padding: 1.75rem;
}

.feature-number {
    display: block;
    margin-bottom: 2rem;
    color: #8aa4e1;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.feature-card h3 {
    margin: 0;
    font-size: 1.13rem;
    font-weight: 750;
}

.feature-card p {
    margin: 0.75rem 0 0;
    color: #717d90;
    font-size: 0.88rem;
}

.privacy-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid #cddcf1;
    border-radius: 16px;
    background: linear-gradient(120deg, #edf4ff, #f8fbff);
}

.privacy-mark {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #dce9ff;
    color: #2859a5;
    font-size: 0.63rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.privacy-banner h2 {
    margin: 0;
    color: #20314b;
    font-size: 1.12rem;
    font-weight: 750;
}

.privacy-banner p {
    max-width: 780px;
    margin: 0.3rem 0 0;
    color: #5e7089;
    font-size: 0.84rem;
}

/* Upload */

.upload-card {
    padding: 1.5rem;
}

.drop-zone {
    min-height: 370px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    border: 2px dashed #b8c5d9;
    border-radius: 14px;
    background: #f9fbfe;
    cursor: pointer;
    text-align: center;
}

.drop-zone:hover,
.drop-zone.drag-active {
    border-color: #4d76d9;
    background: #f1f6ff;
}

.drop-zone.drag-active {
    box-shadow: inset 0 0 0 4px rgba(40, 89, 217, 0.08);
}

.drop-zone-mark {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: #e5edff;
    color: #2859d9;
    font-size: 1.5rem;
    font-weight: 500;
}

.drop-zone-title {
    color: #233047;
    font-size: 1.18rem;
    font-weight: 750;
}

.drop-zone-or {
    margin: 0.4rem 0;
    color: #8994a5;
    font-size: 0.75rem;
}

.drop-zone-button {
    min-width: 150px;
}

.drop-zone-help {
    margin-top: 1rem;
    color: #7b8698;
    font-size: 0.76rem;
}

.file-status {
    min-height: 1.35rem;
    max-width: 100%;
    margin-top: 0.55rem;
    overflow: hidden;
    color: #2859a5;
    font-size: 0.8rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-options {
    padding: 1.3rem 0.5rem 0.4rem;
}

.upload-options p {
    margin: 0.35rem 0 0 1.65rem;
    color: #7a8598;
    font-size: 0.76rem;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0.5rem 0;
}

.safe-card {
    padding: 1.75rem;
}

.safe-card h2 {
    margin-bottom: 1.2rem;
    font-size: 1.45rem;
    line-height: 1.25;
}

.check-list,
.compact-check-list,
.export-detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding: 0.65rem 0 0.65rem 1.65rem;
    border-bottom: 1px solid #edf0f5;
    color: #59667a;
    font-size: 0.85rem;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    top: 0.65rem;
    left: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e2f3e7;
    color: #157347;
    font-size: 0.65rem;
    font-weight: 900;
}

.inline-note {
    margin-top: 1.25rem;
    padding: 0.85rem;
    border-radius: 0.7rem;
    background: #f4f6fa;
    color: #737f91;
    font-size: 0.76rem;
}

/* Column mapping */

.job-chip {
    max-width: 310px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d9e1ec;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #7a8598;
    font-size: 0.72rem;
}

.job-chip-name {
    max-width: 100%;
    display: inline-block;
    overflow: hidden;
    color: #344057;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mapping-card,
.checks-card,
.preview-card {
    padding: 1.5rem;
}

.checks-card {
    margin-top: 1rem;
}

.source-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e8ecf2;
}

.source-meta div {
    min-width: 0;
}

.source-meta span,
.source-meta strong {
    display: block;
}

.source-meta span {
    color: #8a94a5;
    font-size: 0.67rem;
}

.source-meta strong {
    overflow: hidden;
    margin-top: 0.15rem;
    color: #344057;
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mapping-warning {
    margin-top: 0.8rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #efc1bc;
    border-radius: 0.6rem;
    background: #fff2f1;
    color: #8b2d25;
    font-size: 0.76rem;
    font-weight: 700;
}

.compact-check-list li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #edf0f5;
    color: #5e6a7d;
    font-size: 0.8rem;
}

.compact-check-list li span {
    color: #157347;
    font-weight: 900;
}

.domain-check {
    margin-top: 1rem;
    padding-left: 1.75rem;
}

.domain-check .form-help {
    margin-left: 0;
}

.automatic-note {
    margin-top: 1.2rem;
    padding: 0.8rem;
    border: 1px solid #d8e5f7;
    border-radius: 0.65rem;
    background: #f2f7ff;
    color: #59708f;
    font-size: 0.73rem;
}

.automatic-note strong {
    display: block;
    margin-bottom: 0.15rem;
    color: #2f507c;
}

.sticky-actions {
    margin-top: 1rem;
}

.preview-file {
    max-width: 290px;
    overflow: hidden;
    color: #758196;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-preview-wrap {
    max-height: 610px;
    margin-top: 1.2rem;
    border: 1px solid #e1e7ef;
    border-radius: 0.75rem;
}

.table {
    width: 100%;
    margin-bottom: 0;
    color: #2f3b50;
    font-size: 0.8rem;
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    padding: 0.8rem;
    border-bottom-color: #e7ebf2;
    background: transparent;
    color: inherit;
}

.table thead th {
    border-bottom-width: 1px;
    background: #f5f7fb;
    color: #69758a;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.source-preview-table {
    min-width: 720px;
}

.source-preview-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.source-preview-table tbody th {
    width: 64px;
    background: #fafbfd;
    color: #8a94a5;
    font-size: 0.7rem;
}

.source-preview-table td {
    max-width: 250px;
}

.source-preview-table td span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-preview-table [data-column-role="name"] {
    background: #f3f7ff;
    box-shadow: inset 0 2px 0 #6d91e8;
}

.source-preview-table [data-column-role="email"] {
    background: #f2faf5;
    box-shadow: inset 0 2px 0 #54a872;
}

/* Review */

.job-summary-line {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: -1rem 0 1.4rem;
    color: #758196;
    font-size: 0.78rem;
}

.job-summary-line .job-chip-name {
    max-width: 420px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 1rem 1.05rem;
    border: 1px solid #dfe5ef;
    border-radius: 0.85rem;
    background: #ffffff;
    color: #6b778c;
    text-decoration: none;
}

a.stat-card:hover {
    border-color: #afbdd0;
    color: #526075;
    box-shadow: 0 8px 20px rgba(35, 51, 78, 0.07);
    transform: translateY(-1px);
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: #9aa7bb;
}

.stat-card strong,
.stat-card span {
    display: block;
}

.stat-card strong {
    margin: 0.3rem 0;
    color: #243044;
    font-size: 1.7rem;
    font-weight: 780;
    line-height: 1;
}

.stat-card > span:last-child {
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-label {
    color: #68758a;
    font-size: 0.7rem;
    font-weight: 750;
}

.stat-ready::before {
    background: #3b9760;
}

.stat-review::before {
    background: #d49627;
}

.stat-invalid::before {
    background: #c54a40;
}

.stat-duplicate::before {
    background: #5275cc;
}

.stat-suppressed::before {
    background: #7159a8;
}

.review-workspace {
    overflow: hidden;
}

.review-toolbar {
    padding: 1.4rem 1.5rem 1.1rem;
    border-bottom: 1px solid #e4e9f0;
}

.filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(145px, 0.7fr) minmax(160px, 0.8fr) auto auto auto;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.1rem;
}

.filter-form .form-control,
.filter-form .form-select,
.filter-form .btn {
    min-height: 40px;
    font-size: 0.8rem;
}

.filter-check {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 0.4rem;
    color: #566276;
    font-size: 0.76rem;
    font-weight: 650;
    white-space: nowrap;
}

.bulk-bar {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1.5rem;
    border-bottom: 1px solid #e5eaf1;
    background: #fafbfd;
}

.select-all {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #4d596d;
    font-size: 0.76rem;
    font-weight: 700;
}

.bulk-count {
    color: #7c8799;
    font-size: 0.73rem;
}

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
}

.bulk-actions .btn:disabled {
    opacity: 0.5;
}

.review-table {
    min-width: 1140px;
}

.review-table th:first-child,
.review-table td:first-child {
    width: 42px;
    text-align: center;
}

.review-table th:nth-child(2) {
    width: 90px;
}

.review-table th:nth-child(3) {
    width: 180px;
}

.review-table th:nth-child(4) {
    width: 250px;
}

.review-table th:nth-child(5) {
    width: 210px;
}

.review-table th:nth-child(6) {
    width: 130px;
}

.review-row:hover {
    background: #fafcff;
}

.review-row.selected-row {
    background: #f1f6ff;
}

.source-row-number {
    display: block;
    color: #46536a;
    font-size: 0.8rem;
    font-weight: 800;
}

.split-label,
.decision-label,
.history-subline,
.history-error {
    display: block;
    margin-top: 0.2rem;
    color: #8a94a5;
    font-size: 0.64rem;
    font-weight: 600;
}

.value-stack {
    min-width: 0;
}

.value-stack > span,
.value-stack > strong {
    display: block;
}

.value-label {
    margin-bottom: 0.12rem;
    color: #9aa3b2;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.proposed-label {
    margin-top: 0.55rem;
    color: #5d79bd;
}

.original-value,
.proposed-value,
.email-value {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.original-value {
    color: #4e5a6e;
}

.proposed-value {
    color: #1f4cae;
    font-weight: 700;
}

.email-value {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.75rem;
}

.issue-list {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.issue-badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 750;
    line-height: 1.25;
}

.issue-badge {
    max-width: 150px;
    padding: 0.24rem 0.48rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.issue-error {
    border-color: #f0c2bd;
    background: #fff0ef;
    color: #9d2c24;
}

.issue-warning {
    border-color: #ecd39f;
    background: #fff8e8;
    color: #80580a;
}

.issue-info {
    border-color: #bfd2ed;
    background: #eef5ff;
    color: #315b94;
}

.issue-more,
.no-findings {
    padding: 0.22rem 0;
    color: #8791a2;
    font-size: 0.64rem;
}

.status-badge {
    padding: 0.3rem 0.58rem;
    white-space: nowrap;
}

.status-ready {
    border-color: #b8dec4;
    background: #edf8f0;
    color: #27653c;
}

.status-review {
    border-color: #ead19b;
    background: #fff7e5;
    color: #77520d;
}

.status-invalid {
    border-color: #efbfba;
    background: #fff0ef;
    color: #9c2c24;
}

.status-duplicate {
    border-color: #c4d2f2;
    background: #eef3ff;
    color: #3e5eac;
}

.status-suppressed {
    border-color: #d7caec;
    background: #f6f1fc;
    color: #644a95;
}

.row-action {
    text-align: right;
}

.table-footer {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    border-top: 1px solid #e5eaf1;
    background: #fafbfd;
}

.table-footer p {
    margin: 0;
    color: #7b8698;
    font-size: 0.74rem;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pagination-nav .page-link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border: 1px solid #d6deea;
    border-radius: 0.55rem;
    background: #ffffff;
    color: #425069;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.page-position {
    color: #69758a;
    font-size: 0.72rem;
}

/* Record review */

.detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #59667a;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    color: #2859d9;
}

.status-badge-large {
    padding: 0.5rem 0.8rem;
    font-size: 0.72rem;
}

.detail-panel,
.decision-card {
    padding: 1.5rem;
}

.findings-panel,
.decision-card {
    margin-top: 1rem;
}

.source-field {
    margin-top: 1rem;
}

.source-field > span,
.candidate-block > span {
    display: block;
    margin-bottom: 0.4rem;
    color: #7e899b;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.source-field pre {
    min-height: 58px;
    max-height: 180px;
    margin: 0;
    padding: 0.85rem;
    overflow: auto;
    border: 1px solid #dfe5ed;
    border-radius: 0.65rem;
    background: #f7f9fc;
    color: #334057;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.78rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.candidate-block {
    margin-top: 1.2rem;
}

.candidate-list {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.candidate-list span {
    max-width: 100%;
    padding: 0.35rem 0.55rem;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #eef3fb;
    color: #405778;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.finding-list {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.finding-list li {
    margin-top: 0.65rem;
    padding: 0.9rem;
    border: 1px solid;
    border-radius: 0.7rem;
}

.finding-error {
    border-color: #efc5c1;
    background: #fff5f4;
}

.finding-warning {
    border-color: #edd9aa;
    background: #fffaf0;
}

.finding-info {
    border-color: #c8d8ee;
    background: #f4f8fe;
}

.finding-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.finding-heading strong {
    color: #2e3b51;
    font-size: 0.8rem;
}

.finding-heading span {
    color: #818b9b;
    font-size: 0.62rem;
    font-weight: 750;
    text-transform: uppercase;
}

.finding-list p {
    margin: 0.35rem 0 0;
    color: #657185;
    font-size: 0.76rem;
}

.finding-list .finding-suggestion {
    color: #4e5e75;
}

.finding-list code {
    display: inline-block;
    max-width: 100%;
    margin-top: 0.45rem;
    padding: 0.18rem 0.35rem;
    overflow: hidden;
    border-radius: 0.25rem;
    background: rgba(23, 32, 51, 0.06);
    color: #39465a;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.no-issue-detail {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    color: #4e6d59;
    font-size: 0.8rem;
}

.no-issue-detail span {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e1f2e6;
    color: #157347;
    font-weight: 900;
}

.no-issue-detail p {
    margin: 0;
}

.domain-result {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e6eaf0;
}

.domain-result span {
    color: #818b9b;
    font-size: 0.68rem;
    font-weight: 750;
}

.domain-result strong {
    margin-left: 0.35rem;
    color: #3c4a60;
    font-size: 0.75rem;
}

.domain-result p {
    margin: 0.35rem 0 0;
    color: #717c8f;
    font-size: 0.72rem;
}

.include-state {
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 750;
    white-space: nowrap;
}

.include-state.included {
    background: #e9f6ed;
    color: #29643d;
}

.include-state.excluded {
    background: #fff0ef;
    color: #9d2d25;
}

.record-edit-form {
    margin-top: 0.5rem;
}

.split-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1.1rem;
    border: 1px solid #c7d8f0;
    border-radius: 0.8rem;
    background: #f2f7ff;
}

.split-suggestion h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 750;
}

.split-suggestion p {
    max-width: 530px;
    margin: 0.35rem 0 0;
    color: #60718a;
    font-size: 0.76rem;
}

.split-suggestion form {
    flex: 0 0 auto;
}

.decision-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.decision-card h2 {
    font-size: 1.08rem;
}

.decision-card p {
    margin: 0.3rem 0 0;
    color: #748094;
    font-size: 0.75rem;
}

.decision-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.record-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

/* Export */

.completion-banner {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    border: 1px solid #b9dec4;
    border-radius: 0.85rem;
    background: #eff9f2;
    color: #365f43;
    font-size: 0.86rem;
}

.completion-mark {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #d3edda;
    color: #157347;
    font-weight: 900;
}

.export-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.export-card {
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
}

.export-type {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.3rem;
    border-radius: 14px;
    background: #e4edff;
    color: #2859a5;
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.export-type.report {
    background: #ece5f7;
    color: #654d94;
}

.export-type.package {
    width: 72px;
    background: #dff3ec;
    color: #17674c;
}

.export-card-wide {
    grid-column: 1 / -1;
}

.export-card > p {
    min-height: 66px;
    margin: 0.65rem 0 1rem;
    color: #6d798d;
    font-size: 0.83rem;
}

.export-detail-list {
    margin-bottom: 1.25rem;
}

.export-detail-list li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.25rem;
    color: #59667a;
    font-size: 0.75rem;
}

.export-detail-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2e7950;
    font-weight: 900;
}

.export-card .download-actions {
    margin-top: auto;
}

.export-card .download-actions-secondary {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5eaf1;
}

.export-summary {
    padding: 1.6rem;
}

.export-summary dl {
    margin: 1rem 0 0;
}

.export-summary dl > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.72rem 0;
    border-bottom: 1px solid #e9edf3;
}

.export-summary dt {
    color: #677387;
    font-size: 0.76rem;
    font-weight: 600;
}

.export-summary dd {
    margin: 0;
    color: #263248;
    font-size: 0.9rem;
    font-weight: 800;
}

.summary-actions {
    margin-top: 1.3rem;
}

.summary-actions .btn + .btn {
    margin-top: 0.35rem;
}

.retention-note {
    margin-top: 1.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid #dfe5ed;
    border-radius: 0.75rem;
    background: #f8fafc;
    color: #788395;
    font-size: 0.75rem;
}

.retention-note strong {
    color: #4b586c;
}

/* History and suppressions */

.history-card,
.suppression-table-card {
    overflow: hidden;
}

.history-card > .card-heading-row,
.suppression-table-card > .card-heading-row {
    padding: 1.4rem 1.5rem 1.1rem;
    border-bottom: 1px solid #e4e9f0;
}

.table-hint {
    color: #8690a1;
    font-size: 0.72rem;
}

.history-table {
    min-width: 980px;
}

.history-file {
    max-width: 270px;
    display: block;
    overflow: hidden;
    color: #344057;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.outcome-pair {
    display: block;
    color: #6f7a8d;
    font-size: 0.7rem;
}

.outcome-pair strong {
    color: #3b485d;
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.table-actions form {
    margin: 0;
}

.suppression-stats {
    margin-top: 0.25rem;
}

.stat-total::before {
    background: #64748b;
}

.suppression-upload-card {
    padding: 1.5rem;
}

.suppression-upload-card > p {
    margin: 0.65rem 0 0;
    color: #707c8f;
    font-size: 0.82rem;
}

.suppression-form {
    margin-top: 1.15rem;
}

.suppression-table {
    min-width: 760px;
}

.suppression-table th:first-child {
    max-width: 220px;
}

/* Empty and error states */

.empty-state {
    padding: 4.5rem 1.5rem;
    text-align: center;
}

.empty-state.compact {
    padding: 3rem 1.5rem;
}

.empty-mark {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: #e8effc;
    color: #4067bd;
    font-size: 1rem;
    font-weight: 850;
}

.empty-state h3,
.empty-state h1 {
    margin: 0;
    color: #263248;
    font-size: 1.35rem;
    font-weight: 750;
}

.empty-state p {
    max-width: 520px;
    margin: 0.55rem auto 1.1rem;
    color: #778296;
    font-size: 0.82rem;
}

.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-card {
    width: 100%;
    max-width: 680px;
    padding: 3rem;
    text-align: center;
}

.error-code {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 20px;
    background: #fff0ef;
    color: #a52c24;
    font-size: 1.8rem;
    font-weight: 400;
}

.error-card h1 {
    margin: 0;
    color: #202c40;
    font-size: 2.2rem;
    font-weight: 760;
    letter-spacing: -0.04em;
}

.error-card > p:not(.eyebrow) {
    max-width: 560px;
    margin: 0.85rem auto;
    color: #707c8f;
}

.error-reference code {
    color: #4a566b;
}

.error-actions {
    justify-content: center;
    margin-top: 1.3rem;
}

/* Dark theme */

.theme-dark body {
    background: #0d1424;
    color: #edf2f7;
}

.theme-dark a {
    color: #9ab6ff;
}

.theme-dark a:hover {
    color: #c0d0ff;
}

.theme-dark ::selection {
    background: #4967a7;
    color: #ffffff;
}

.theme-dark .app-header,
.theme-dark .workflow-shell,
.theme-dark .app-footer {
    border-color: #28344a;
    background: rgba(17, 26, 43, 0.96);
}

.theme-dark .app-brand,
.theme-dark .app-brand:hover,
.theme-dark .brand-name {
    color: #f3f6fb;
}

.theme-dark .brand-tagline,
.theme-dark .footer-row,
.theme-dark .footer-row p {
    color: #9ca9bd;
}

.theme-dark .footer-row strong {
    color: #d9e1ec;
}

.theme-dark .primary-navigation .nav-link {
    color: #a9b4c6;
}

.theme-dark .primary-navigation .nav-link:hover {
    background: #1c2639;
    color: #ffffff;
}

.theme-dark .primary-navigation .nav-link.active {
    background: #21335b;
    color: #b7caff;
}

.theme-dark .nav-divider {
    background: #344057;
}

.theme-dark .theme-toggle,
.theme-dark .mobile-nav-toggle {
    border-color: #344057;
    background: #151e31;
    color: #d7dfeb;
}

.theme-dark .theme-toggle:hover,
.theme-dark .mobile-nav-toggle:hover {
    border-color: #52617a;
    background: #1c273b;
    color: #ffffff;
}

.theme-dark .theme-toggle-symbol {
    background: #f0c970;
    color: #172033;
}

.theme-dark .nav-toggle-bars span {
    background: #edf2f7;
}

.theme-dark .workflow-step:not(:last-child)::after {
    background: #344057;
}

.theme-dark .workflow-step > a,
.theme-dark .workflow-step > span {
    color: #8390a5;
}

.theme-dark .workflow-number {
    border-color: #46536a;
    background: #151e31;
    color: #9ca9bd;
}

.theme-dark .workflow-step.current > a {
    color: #b6c9ff;
}

.theme-dark .workflow-step.current .workflow-number {
    border-color: #7398f2;
    background: #5f82dd;
    color: #ffffff;
    box-shadow: 0 0 0 4px #233253;
}

.theme-dark .workflow-step.complete .workflow-number {
    border-color: #5878c2;
    background: #233253;
    color: #b6c9ff;
}

.theme-dark .eyebrow,
.theme-dark .card-kicker,
.theme-dark .preview-kicker {
    color: #91adf4;
}

.theme-dark .page-heading h1,
.theme-dark .home-hero h1,
.theme-dark .section-heading h2,
.theme-dark .surface-card h2,
.theme-dark .surface-card h3,
.theme-dark .error-card h1,
.theme-dark .empty-state h1,
.theme-dark .empty-state h3 {
    color: #f2f5fa;
}

.theme-dark .page-heading p:not(.eyebrow),
.theme-dark .hero-lead,
.theme-dark .section-heading p:not(.eyebrow),
.theme-dark .feature-card p,
.theme-dark .safe-card p {
    color: #9ba8bc;
}

.theme-dark .surface-card,
.theme-dark .stat-card,
.theme-dark .job-chip {
    border-color: #2c3850;
    background: #151e31;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.theme-dark .stat-card strong,
.theme-dark .job-chip-name {
    color: #e7ecf5;
}

.theme-dark .stat-card,
.theme-dark .stat-label,
.theme-dark .job-chip {
    color: #98a5b9;
}

.theme-dark a.stat-card:hover {
    border-color: #51617a;
    background: #19243a;
    color: #bdc8d8;
}

.theme-dark .btn-primary {
    border-color: #6e93ec;
    background: #5e82db;
    color: #ffffff;
}

.theme-dark .btn-primary:hover,
.theme-dark .btn-primary:focus {
    border-color: #82a3f1;
    background: #7093e8;
}

.theme-dark .btn-secondary,
.theme-dark .btn-outline-primary {
    border-color: #40506a;
    background: #19243a;
    color: #d4ddeb;
}

.theme-dark .btn-secondary:hover,
.theme-dark .btn-outline-primary:hover {
    border-color: #61728d;
    background: #22304a;
    color: #ffffff;
}

.theme-dark .btn-link {
    color: #a7b4c8;
}

.theme-dark .btn-danger-outline {
    border-color: #7b4b4d;
    background: #2a1e25;
    color: #ffaaa5;
}

.theme-dark .btn-link-danger {
    color: #ffaaa5;
}

.theme-dark .form-control,
.theme-dark .form-select {
    border-color: #3a4860;
    background-color: #10192a;
    color: #edf2f7;
}

.theme-dark .form-control:focus,
.theme-dark .form-select:focus {
    border-color: #7799ec;
    background-color: #10192a;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(119, 153, 236, 0.16);
}

.theme-dark .form-control::placeholder {
    color: #707e94;
}

.theme-dark .form-label,
.theme-dark .form-check-label {
    color: #d4dce8;
}

.theme-dark .form-help,
.theme-dark .drop-zone-help,
.theme-dark .upload-options p,
.theme-dark .table-hint {
    color: #8f9caf;
}

.theme-dark .drop-zone {
    border-color: #46546b;
    background: #10192a;
}

.theme-dark .drop-zone:hover,
.theme-dark .drop-zone.drag-active {
    border-color: #7296ed;
    background: #17233b;
}

.theme-dark .drop-zone-mark,
.theme-dark .empty-mark {
    background: #263757;
    color: #a8beff;
}

.theme-dark .drop-zone-title {
    color: #eef2f8;
}

.theme-dark .drop-zone-or,
.theme-dark .file-status {
    color: #9eabc0;
}

.theme-dark .heading-assurance,
.theme-dark .app-alert-success,
.theme-dark .completion-banner {
    border-color: #345442;
    background: #15271e;
    color: #a9d2b5;
}

.theme-dark .heading-assurance strong {
    color: #c6e7cf;
}

.theme-dark .app-alert-warning {
    border-color: #66552e;
    background: #282417;
    color: #dfc887;
}

.theme-dark .app-alert-danger {
    border-color: #673d40;
    background: #2a1d23;
    color: #efa9a5;
}

.theme-dark .app-alert-info {
    border-color: #36516f;
    background: #15253a;
    color: #aac6e7;
}

.theme-dark .validation-summary,
.theme-dark .mapping-warning {
    border-color: #704448;
    background: #2a1d23;
    color: #efaaa5;
}

.theme-dark .check-list li,
.theme-dark .compact-check-list li,
.theme-dark .source-meta,
.theme-dark .domain-result,
.theme-dark .export-summary dl > div {
    border-color: #2b374c;
}

.theme-dark .check-list li,
.theme-dark .compact-check-list li,
.theme-dark .source-meta strong,
.theme-dark .domain-result strong,
.theme-dark .export-summary dt {
    color: #acb7c7;
}

.theme-dark .inline-note,
.theme-dark .retention-note {
    border-color: #303d53;
    background: #10192a;
    color: #8f9caf;
}

.theme-dark .automatic-note,
.theme-dark .split-suggestion {
    border-color: #354f75;
    background: #16263d;
    color: #9eb3cf;
}

.theme-dark .automatic-note strong,
.theme-dark .split-suggestion h3 {
    color: #c5d5ea;
}

.theme-dark .source-preview-wrap,
.theme-dark .history-card > .card-heading-row,
.theme-dark .suppression-table-card > .card-heading-row,
.theme-dark .review-toolbar,
.theme-dark .bulk-bar,
.theme-dark .table-footer {
    border-color: #2c3850;
}

.theme-dark .table,
.theme-dark .source-row-number {
    color: #cbd4e1;
}

.theme-dark .table > :not(caption) > * > * {
    border-bottom-color: #29354a;
}

.theme-dark .table thead th,
.theme-dark .bulk-bar,
.theme-dark .table-footer {
    background: #10192a;
    color: #98a5b9;
}

.theme-dark .source-preview-table tbody th {
    background: #111b2d;
    color: #8491a5;
}

.theme-dark .source-preview-table [data-column-role="name"] {
    background: #17243c;
}

.theme-dark .source-preview-table [data-column-role="email"] {
    background: #142b24;
}

.theme-dark .review-row:hover {
    background: #172238;
}

.theme-dark .review-row.selected-row {
    background: #1a2a47;
}

.theme-dark .original-value {
    color: #aab5c6;
}

.theme-dark .proposed-value {
    color: #adc2ff;
}

.theme-dark .value-label,
.theme-dark .issue-more,
.theme-dark .no-findings,
.theme-dark .decision-label,
.theme-dark .history-subline,
.theme-dark .history-error {
    color: #8390a5;
}

.theme-dark .issue-error,
.theme-dark .status-invalid {
    border-color: #71464a;
    background: #2c1f25;
    color: #f2aaa5;
}

.theme-dark .issue-warning,
.theme-dark .status-review {
    border-color: #695a35;
    background: #2a261a;
    color: #e0c47d;
}

.theme-dark .issue-info,
.theme-dark .status-duplicate {
    border-color: #405678;
    background: #1b2a43;
    color: #aac1f6;
}

.theme-dark .status-ready {
    border-color: #3c6249;
    background: #192b21;
    color: #add5b9;
}

.theme-dark .status-suppressed {
    border-color: #5d4d78;
    background: #262039;
    color: #cbb7e9;
}

.theme-dark .pagination-nav .page-link {
    border-color: #3a4860;
    background: #151e31;
    color: #bec8d7;
}

.theme-dark .source-field pre {
    border-color: #334057;
    background: #10192a;
    color: #c9d2df;
}

.theme-dark .candidate-list span {
    background: #1c2b43;
    color: #b3c1d5;
}

.theme-dark .finding-error {
    border-color: #684246;
    background: #291d23;
}

.theme-dark .finding-warning {
    border-color: #64552f;
    background: #292518;
}

.theme-dark .finding-info {
    border-color: #364f6f;
    background: #15253a;
}

.theme-dark .finding-heading strong,
.theme-dark .finding-list .finding-suggestion {
    color: #d6deea;
}

.theme-dark .finding-list p,
.theme-dark .domain-result p,
.theme-dark .split-suggestion p,
.theme-dark .decision-card p,
.theme-dark .export-card > p,
.theme-dark .export-detail-list li,
.theme-dark .empty-state p,
.theme-dark .error-card > p:not(.eyebrow) {
    color: #9ba8bb;
}

.theme-dark .finding-list code {
    background: #101827;
    color: #bac6d8;
}

.theme-dark .include-state.included {
    background: #1a3023;
    color: #b1d8bc;
}

.theme-dark .include-state.excluded {
    background: #301f25;
    color: #efaaa5;
}

.theme-dark .export-type {
    background: #23365a;
    color: #b5c9ff;
}

.theme-dark .export-type.report {
    background: #302740;
    color: #d0bce9;
}

.theme-dark .export-type.package {
    background: #17372f;
    color: #a7dfca;
}

.theme-dark .export-card .download-actions-secondary {
    border-top-color: #2c3850;
}

.theme-dark .export-summary dd {
    color: #e2e8f1;
}

.theme-dark .privacy-banner {
    border-color: #344b6b;
    background: linear-gradient(120deg, #14233a, #151e31);
}

.theme-dark .privacy-mark {
    background: #233757;
    color: #b2c7ff;
}

.theme-dark .privacy-banner h2 {
    color: #eef2f8;
}

.theme-dark .privacy-banner p {
    color: #a5b2c5;
}

.theme-dark .hero-preview {
    border-color: #344157;
    background: #151e31;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.theme-dark .hero-preview-header,
.theme-dark .sample-record {
    border-color: #2c384d;
}

.theme-dark .hero-preview-header strong,
.theme-dark .sample-record strong,
.theme-dark .preview-summary strong {
    color: #e4eaf3;
}

.theme-dark .sample-record div > span,
.theme-dark .sample-row-number {
    color: #8794a8;
}

.theme-dark .preview-summary {
    background: #10192a;
    color: #8f9caf;
}

.theme-dark .feature-number {
    color: #8faaf0;
}

.theme-dark .error-code {
    background: #321f25;
    color: #f1aaa5;
}

/* Responsive */

@media (max-width: 1199.98px) {
    .filter-form {
        grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(145px, 0.7fr)) auto;
    }

    .filter-form .filter-check {
        grid-column: 1 / 2;
    }

    .stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .decision-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .decision-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 991.98px) {
    .app-nav-row {
        min-height: 68px;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }

    .primary-navigation {
        position: absolute;
        top: calc(100% + 1px);
        right: 0.75rem;
        left: 0.75rem;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.65rem;
        border: 1px solid #d8e0ec;
        border-radius: 0 0 0.9rem 0.9rem;
        background: #ffffff;
        box-shadow: 0 18px 30px rgba(23, 32, 51, 0.15);
    }

    .primary-navigation.open {
        display: flex;
    }

    .primary-navigation .nav-link,
    .theme-toggle {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-divider {
        width: 100%;
        height: 1px;
        margin: 0.35rem 0;
    }

    .theme-dark .primary-navigation {
        border-color: #344057;
        background: #151e31;
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
    }

    .home-hero {
        padding: 4rem 0 3rem;
    }

    .hero-preview {
        max-width: 600px;
        margin: 0 auto;
        transform: none;
    }

    .sticky-actions {
        position: static;
    }

    .preview-card {
        margin-top: 0;
    }

    .filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .filter-search {
        grid-column: 1 / -1;
    }

    .filter-form .filter-check {
        grid-column: auto;
    }

    .export-grid {
        grid-template-columns: 1fr;
    }

    .export-card > p {
        min-height: 0;
    }

    .suppression-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .app-main {
        padding: 1.8rem 0 3rem;
    }

    .brand-tagline {
        display: none;
    }

    .workflow-step:not(:last-child)::after {
        right: -9%;
        width: 18%;
    }

    .workflow-step > a,
    .workflow-step > span {
        min-height: 58px;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.55rem 0.2rem;
        font-size: 0.64rem;
    }

    .workflow-number {
        width: 23px;
        height: 23px;
        font-size: 0.68rem;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 1.5rem;
    }

    .page-heading h1 {
        font-size: 2.15rem;
    }

    .heading-actions,
    .heading-assurance,
    .job-chip {
        width: 100%;
        max-width: none;
        align-items: flex-start;
    }

    .job-chip {
        align-items: flex-start;
    }

    .home-hero h1 {
        font-size: 3rem;
    }

    .home-section {
        padding: 2.5rem 0 3rem;
    }

    .privacy-banner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .privacy-banner .btn {
        grid-column: 1 / -1;
    }

    .drop-zone {
        min-height: 320px;
        padding: 1.5rem;
    }

    .safe-card,
    .mapping-card,
    .checks-card,
    .preview-card,
    .detail-panel,
    .decision-card,
    .export-card,
    .export-summary,
    .suppression-upload-card {
        padding: 1.25rem;
    }

    .stat-grid,
    .suppression-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .review-toolbar {
        padding: 1.2rem;
    }

    .filter-form {
        grid-template-columns: 1fr;
    }

    .filter-search,
    .filter-form .filter-check {
        grid-column: auto;
    }

    .filter-form .btn {
        width: 100%;
    }

    .bulk-bar {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 0.8rem 1.2rem;
    }

    .bulk-actions {
        width: 100%;
        margin-left: 0;
    }

    .bulk-actions .btn {
        flex: 1 1 auto;
    }

    .table-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 0.9rem 1.2rem;
    }

    .split-suggestion {
        align-items: flex-start;
        flex-direction: column;
    }

    .split-suggestion form,
    .split-suggestion .btn {
        width: 100%;
    }

    .decision-actions,
    .decision-actions form,
    .decision-actions .btn {
        width: 100%;
    }

    .footer-row {
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .eventos-logo {
        width: 145px;
    }

    .app-main {
        padding-top: 1.4rem;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .workflow-label {
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .home-hero {
        padding-top: 3rem;
    }

    .home-hero h1 {
        font-size: 2.55rem;
    }

    .hero-lead {
        font-size: 1.02rem;
    }

    .hero-actions,
    .hero-actions .btn {
        width: 100%;
    }

    .hero-preview-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .preview-summary {
        gap: 0.6rem;
        flex-wrap: wrap;
    }

    .privacy-banner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .privacy-mark {
        width: 50px;
        height: 50px;
    }

    .upload-card {
        padding: 0.8rem;
    }

    .drop-zone {
        min-height: 290px;
        padding: 1.2rem;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .stat-grid,
    .suppression-stats {
        grid-template-columns: 1fr;
    }

    .stat-card > span:last-child {
        white-space: normal;
    }

    .detail-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .card-heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .download-actions,
    .download-actions .btn {
        width: 100%;
    }

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

    .error-card {
        padding: 2rem 1.25rem;
    }

    .error-actions,
    .error-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    body,
    .theme-dark body {
        background: #ffffff;
        color: #000000;
    }

    .app-header,
    .workflow-shell,
    .app-footer,
    .heading-actions,
    .filter-form,
    .bulk-bar,
    .row-action,
    .record-navigation,
    .decision-card,
    .download-actions,
    .summary-actions {
        display: none !important;
    }

    .app-main {
        padding: 0;
    }

    .surface-card,
    .stat-card {
        border: 1px solid #b7b7b7;
        background: #ffffff;
        box-shadow: none;
        color: #000000;
    }

    .table-responsive {
        overflow: visible;
    }

    .review-table,
    .history-table,
    .suppression-table {
        min-width: 0;
        font-size: 8pt;
    }
}
