/*
 * Submit Evidence pages (/submit-evidence). Loaded only on those pages, so the
 * site's compiled app.css stays untouched.
 *
 * Type: Eurostile Bold (the site's face) for headings, labels and buttons;
 * the device's own UI sans for body text and form fields, which reads better.
 * Colour: the site's black, a blue-black "night", and the badge gold as accent.
 * Gold is only used as a fill behind dark text or on dark backgrounds.
 */

/* The site's Eurostile files have blank glyphs for · – — … ; cover just those. */
@font-face { font-family: "Eurostile"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"), local("DejaVu Sans"); unicode-range: U+00B7, U+2013-2014, U+2026; }
@font-face { font-family: "EurostileBold"; font-weight: normal; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold"), local("DejaVu Sans Bold"); unicode-range: U+00B7, U+2013-2014, U+2026; }

:root {
    --ev-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ev-display: "EurostileBold", "Eurostile", var(--ev-sans);
    --ev-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

    --ev-ink: #0d0f12;
    --ev-text: #1c2128;
    --ev-muted: #59616d;
    --ev-night: #10151c;
    --ev-night-2: #1a212b;
    --ev-night-line: rgba(255, 255, 255, .14);
    --ev-gold: #c9a24a;
    --ev-gold-hi: #dcb965;
    --ev-gold-soft: #f6efdc;
    --ev-gold-ink: #6b5212;
    --ev-bg: #f3f4f6;
    --ev-surface: #fff;
    --ev-line: #dde1e7;
    --ev-line-strong: #a9b1bc;
    --ev-err: #b42318;
    --ev-err-bg: #fdecea;
    --ev-ok: #1f7a4d;
    --ev-ok-bg: #dcf2e6;
    --ev-warn: #7a4f00;
    --ev-warn-bg: #fff4d6;
    --ev-focus: #2563eb;

    --ev-r: 6px;
    --ev-r-sm: 4px;
    --ev-shadow: 0 1px 2px rgba(16, 21, 28, .06), 0 1px 3px rgba(16, 21, 28, .05);
    --ev-shadow-lg: 0 10px 30px rgba(0, 0, 0, .28);
    --ev-nav-h: 78px;
}

/* ================================================================ base */
.ev-page { font-family: var(--ev-sans); font-size: 16px; line-height: 1.55; color: var(--ev-text); background: var(--ev-bg); }
.ev-page h1, .ev-page h2, .ev-page h3, .ev-page legend { font-family: var(--ev-display); font-weight: normal; color: inherit; }
.ev-page p { margin: 0 0 1em; }
.ev-page a { color: inherit; }
.ev-page strong { font-weight: 600; }
.ev-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ev-mono { font-family: var(--ev-mono) !important; letter-spacing: .02em; }
.ev-upper { text-transform: uppercase; }
.ev-upper::placeholder { text-transform: none; }
.ev-muted { color: var(--ev-muted); }
.ev-note { color: var(--ev-muted); font-size: .92rem; }
.ev-note a { color: var(--ev-ink); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ev-page :focus-visible { outline: 3px solid var(--ev-focus); outline-offset: 2px; }
/* Step headings get focus programmatically (for screen readers); no ring. */
.ev-page [data-ev-steptitle]:focus, .ev-page [data-ev-steptitle]:focus-visible { outline: none; }

/* file-type tones (icons, thumbnails) */
.ev-tone--video { background: #e5ecfb; color: #1d4396; }
.ev-tone--photo { background: #e2f3ea; color: #1d6a43; }
.ev-tone--audio { background: #f1e8fb; color: #5d2b86; }
.ev-tone--document { background: #fbefe2; color: #8a4a12; }

/* ================================================================ buttons */
.ev-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 11px 22px; border: 2px solid transparent; border-radius: var(--ev-r-sm);
    font-family: var(--ev-display); font-size: .92rem; letter-spacing: .07em; text-transform: uppercase; line-height: 1.1;
    text-decoration: none !important; cursor: pointer; white-space: nowrap;
    transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.ev-btn:active { transform: translateY(1px); }
.ev-btn[disabled] { opacity: .65; cursor: progress; }
.ev-btn--gold { background: var(--ev-gold); color: var(--ev-ink) !important; }
.ev-btn--gold:hover { background: var(--ev-gold-hi); }
.ev-btn--dark { background: var(--ev-ink); color: #fff !important; }
.ev-btn--dark:hover { background: #2a313b; }
.ev-btn--light { background: #fff; color: var(--ev-ink) !important; }
.ev-btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff !important; background: transparent; }
.ev-btn--outline { background: #fff; border-color: var(--ev-ink); color: var(--ev-ink) !important; }
.ev-btn--outline:hover { background: var(--ev-bg); }
.ev-btn--quiet { background: transparent; color: var(--ev-ink) !important; padding-left: 8px; padding-right: 8px; }
.ev-btn--quiet:hover { background: rgba(0, 0, 0, .05); }
.ev-btn--lg { min-height: 56px; padding: 14px 30px; font-size: 1rem; }
.ev-btn--sm { min-height: 34px; padding: 6px 12px; font-size: .74rem; border-width: 1px; }

.ev-link {
    display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 2px; cursor: pointer; color: var(--ev-ink);
    font-family: var(--ev-display); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
}
.ev-link i { font-size: .7rem; }
.ev-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ================================================================ hero */
.ev-hero {
    position: relative; color: #fff; padding: calc(var(--ev-nav-h) + 64px) 0 72px;
    background:
        linear-gradient(100deg, rgba(10, 13, 18, .94) 0%, rgba(10, 13, 18, .82) 50%, rgba(10, 13, 18, .55) 100%),
        url("/images/banners/general-investigations-unit-1.jpg") center 40% / cover no-repeat var(--ev-night);
}
.ev-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ev-gold); }
.ev-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 56px; align-items: center; }
.ev-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px !important; font-family: var(--ev-display); font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ev-gold-hi); }
.ev-eyebrow a { color: inherit; text-decoration: none; }
.ev-eyebrow a:hover { color: #fff; }
.ev-eyebrow__badge { width: 26px; height: auto; }
.ev-hero__title { margin: 0 0 18px; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -.01em; }
.ev-hero__lead { max-width: 560px; font-size: 1.2rem; line-height: 1.6; color: #dfe3e8; }
.ev-hero__facts { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.ev-hero__facts li { display: flex; align-items: center; gap: 14px; color: #cfd5dd; }
.ev-hero__facts i { flex: 0 0 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ev-night-line); border-radius: 50%; color: var(--ev-gold-hi); }
.ev-hero__facts strong { color: #fff; }

/* start card */
.ev-start { background: #fff; color: var(--ev-text); border-radius: var(--ev-r); padding: 28px; box-shadow: var(--ev-shadow-lg); border-top: 4px solid var(--ev-gold); }
.ev-start__title { margin: 0 0 4px; font-size: 1.5rem; color: var(--ev-ink); }
.ev-start__sub { color: var(--ev-muted); font-size: .95rem; margin-bottom: 20px !important; }
.ev-start__form label { display: block; margin-bottom: 6px; font-family: var(--ev-display); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ev-ink); }
.ev-start__fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-bottom: 14px; }
.ev-start__fields > div { min-width: 0; }
.ev-start__go { width: 100%; }
.ev-start__foot i { margin-right: 4px; color: var(--ev-gold-ink); }
.ev-start__or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ev-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.ev-start__or::before, .ev-start__or::after { content: ""; flex: 1; height: 1px; background: var(--ev-line); }
.ev-start__foot { margin: 18px 0 0 !important; font-size: .92rem; }
.ev-start__foot a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* compact hero (form page) */
.ev-hero--compact { padding: calc(var(--ev-nav-h) + 30px) 0 26px; }
.ev-hero__compact { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ev-hero--compact .ev-eyebrow { margin-bottom: 8px !important; }
.ev-hero--compact .ev-hero__title { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); }
.ev-hero__secure { margin: 0 !important; display: flex; align-items: center; gap: 8px; color: #cfd5dd; font-size: .92rem; }
.ev-hero__secure i { color: var(--ev-gold-hi); }

/* ================================================================ strips */
.ev-emergency { background: #000; color: #fff; }
.ev-emergency .ev-wrap, .ev-preview .ev-wrap { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.ev-emergency i { color: #ffcf33; }
.ev-emergency p, .ev-preview p { margin: 0 !important; font-size: .98rem; }
.ev-emergency a { color: #fff; font-weight: 700; text-decoration: underline; }
.ev-preview { background: var(--ev-warn-bg); color: var(--ev-warn); border-bottom: 1px solid #f0d58c; }

.ev-trust { background: var(--ev-night); color: #cfd5dd; border-bottom: 1px solid var(--ev-night-line); }
.ev-trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.ev-trust__grid > div { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px 22px 0; }
.ev-trust__grid > div + div { padding-left: 24px; border-left: 1px solid var(--ev-night-line); }
.ev-trust i { flex: 0 0 auto; margin-top: 3px; font-size: 1.15rem; color: var(--ev-gold-hi); }
.ev-trust p { margin: 0 !important; font-size: .94rem; }
.ev-trust strong { color: #fff; }

/* ================================================================ landing bands */
.ev-band { padding: 72px 0; background: #fff; }
.ev-band--grey { background: var(--ev-bg); }
.ev-band p { font-size: 1.04rem; }
.ev-band a:not(.ev-btn) { font-weight: 600; }
.ev-kicker { margin: 0 0 8px !important; font-family: var(--ev-display); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ev-gold-ink); }
.ev-h2 { margin: 0 0 40px; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; color: var(--ev-ink); }
.ev-h3 { margin: 0 0 20px; font-size: 1.7rem; line-height: 1.15; color: var(--ev-ink); }
.ev-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }

.ev-howto { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.ev-howto::before { content: ""; position: absolute; top: 24px; left: 24px; right: 33%; height: 2px; background: linear-gradient(90deg, var(--ev-gold), var(--ev-line)); }
.ev-howto li { position: relative; }
.ev-howto__n {
    position: relative; z-index: 1; width: 48px; height: 48px; margin-bottom: 18px;
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
    background: var(--ev-ink); color: var(--ev-gold-hi); font-family: var(--ev-display); font-size: 1.3rem;
    box-shadow: 0 0 0 6px #fff;
}
.ev-howto h3 { margin: 0 0 8px; font-size: 1.2rem; color: var(--ev-ink); }
.ev-howto p { margin: 0 !important; color: var(--ev-muted); }

.ev-typegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.ev-typegrid li { display: flex; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--ev-line); border-radius: var(--ev-r); box-shadow: var(--ev-shadow); }
.ev-typegrid__icon { flex: 0 0 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: var(--ev-r-sm); font-size: 1.05rem; }
.ev-typegrid strong { display: block; font-family: var(--ev-display); font-weight: normal; font-size: 1.05rem; color: var(--ev-ink); }
.ev-typegrid span { display: block; font-size: .9rem; color: var(--ev-muted); line-height: 1.4; }
.ev-typegrid code { display: block; margin-top: 8px; font-family: var(--ev-mono); font-size: .68rem; letter-spacing: .02em; color: #3a414c; }

.ev-checklist { margin: 0; padding: 0; list-style: none; counter-reset: ev; }
.ev-checklist li { position: relative; padding: 0 0 18px 46px; line-height: 1.55; }
.ev-checklist li::before {
    counter-increment: ev; content: counter(ev);
    position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--ev-gold-soft); color: var(--ev-gold-ink); font-family: var(--ev-display); font-size: .9rem;
}
.ev-checklist strong { color: var(--ev-ink); }

.ev-callout { padding: 28px; background: var(--ev-bg); border-left: 4px solid var(--ev-gold); border-radius: 0 var(--ev-r) var(--ev-r) 0; }
.ev-callout .ev-btn { margin-top: 6px; }

/* ================================================================ flow layout */
.ev-flow { background: var(--ev-bg); padding-bottom: 80px; }

.ev-stepper { background: var(--ev-night); border-bottom: 1px solid var(--ev-night-line); }
.ev-stepper ol { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.ev-stepper ol::before, .ev-stepper ol::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; }
.ev-stepper ol::before { right: 0; background: var(--ev-night-line); }
.ev-stepper ol::after { width: calc((var(--ev-progress, 0) * 66.667%) + 33.333%); background: var(--ev-gold); transition: width .3s; }
.ev-stepper__btn {
    width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 12px 18px 0;
    background: none; border: 0; color: #8b95a3; text-align: left; font: inherit;
}
button.ev-stepper__btn { cursor: pointer; }
button.ev-stepper__btn:hover { color: #fff; }
.ev-stepper__n {
    flex: none; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
    border: 2px solid currentColor; font-family: var(--ev-display); font-size: .95rem;
}
.ev-stepper__label { display: flex; flex-direction: column; font-family: var(--ev-display); font-size: .98rem; letter-spacing: .02em; line-height: 1.2; }
.ev-stepper__label small { font-family: var(--ev-sans); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.is-current .ev-stepper__btn { color: #fff; }
.is-current .ev-stepper__n { background: var(--ev-gold); border-color: var(--ev-gold); color: var(--ev-ink); }
.is-done .ev-stepper__btn { color: #dfe3e8; }
.is-done .ev-stepper__n { background: transparent; border-color: var(--ev-gold); color: var(--ev-gold-hi); }

.ev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; padding-top: 36px; align-items: start; }
.ev-layout--single { grid-template-columns: minmax(0, 1fr); max-width: 880px; }

.ev-stephead { margin-bottom: 22px; }
.ev-steptitle { margin: 0 0 6px; font-size: 2rem; line-height: 1.15; color: var(--ev-ink); outline: none; }
.ev-stepintro { margin: 0 !important; color: var(--ev-muted); max-width: 640px; }

/* cards */
.ev-card { margin: 0 0 18px; padding: 24px; background: var(--ev-surface); border: 1px solid var(--ev-line); border-radius: var(--ev-r); box-shadow: var(--ev-shadow); min-width: 0; }
.ev-card__title {
    float: left; width: 100%; display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px solid var(--ev-line);
    font-family: var(--ev-display); font-size: .92rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ev-ink);
}
.ev-card__title i { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ev-gold-soft); color: var(--ev-gold-ink); font-size: .78rem; }
.ev-card__title + * { clear: both; }
.ev-count { margin-left: 4px; font-family: var(--ev-sans); font-size: .85rem; letter-spacing: 0; text-transform: none; color: var(--ev-muted); }

/* grid */
.ev-grid { display: grid; gap: 0 20px; }
.ev-grid--2 { grid-template-columns: 1fr 1fr; }
.ev-grid--top { align-items: start; }
.ev-grid--file { grid-template-columns: minmax(0, 1fr) 230px; }
.ev-either { grid-template-columns: 1fr auto 1fr; }
.ev-either__or {
    align-self: start; margin-top: 33px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--ev-bg); color: var(--ev-muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}

.ev-casenote { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0 !important; padding: 10px 12px; border-radius: var(--ev-r-sm); background: var(--ev-gold-soft); color: var(--ev-gold-ink); font-size: .9rem; }
.ev-casenote i { margin-top: 3px; }

/* fields */
.ev-field { display: flex; flex-direction: column; margin-bottom: 18px; min-width: 0; }
.ev-field > label { margin: 0 0 6px; font-weight: 600; font-size: .95rem; color: var(--ev-ink); }
.ev-req { color: var(--ev-err); margin-left: 2px; }
.ev-opt { font-weight: 400; color: var(--ev-muted); }
.ev-page input[type="text"], .ev-page input[type="email"], .ev-page input[type="tel"],
.ev-page input[type="datetime-local"], .ev-page select, .ev-page textarea {
    width: 100%; min-height: 48px; padding: 10px 12px; margin: 0;
    font-family: var(--ev-sans); font-size: 1rem; line-height: 1.4; color: var(--ev-ink);
    background: #fff; border: 1.5px solid var(--ev-line-strong); border-radius: var(--ev-r-sm);
    transition: border-color .12s, box-shadow .12s;
}
.ev-page input.ev-mono { font-size: .98rem; }
.ev-page select { appearance: none; -webkit-appearance: none; padding-right: 40px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231c2128' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }
.ev-page textarea { resize: vertical; min-height: 128px; }
.ev-page input::placeholder, .ev-page textarea::placeholder { color: #8a929d; }
.ev-page input:hover, .ev-page select:hover, .ev-page textarea:hover { border-color: #6b7380; }
.ev-page input:focus, .ev-page select:focus, .ev-page textarea:focus { outline: none; border-color: var(--ev-ink); box-shadow: 0 0 0 3px rgba(37, 99, 235, .3); }
.ev-help { margin-top: 6px; font-size: .86rem; color: var(--ev-muted); }
.ev-help--right { text-align: right; }
.ev-err { display: flex; gap: 6px; align-items: baseline; margin-top: 6px; color: var(--ev-err); font-weight: 600; font-size: .88rem; }
.ev-err::before { content: "\f071"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: .78rem; }
.ev-err--block { margin: 12px 0 0; padding: 10px 14px; background: var(--ev-err-bg); border-left: 4px solid var(--ev-err); border-radius: 0 var(--ev-r-sm) var(--ev-r-sm) 0; }
.has-error > input, .has-error > select, .has-error > textarea { border-color: var(--ev-err) !important; background-color: #fffafa !important; }

.ev-errorsum { display: flex; gap: 14px; margin: 0 0 20px; padding: 14px 18px; background: var(--ev-err-bg); border-left: 5px solid var(--ev-err); border-radius: 0 var(--ev-r-sm) var(--ev-r-sm) 0; color: #6b130d; }
.ev-errorsum i { margin-top: 3px; font-size: 1.15rem; color: var(--ev-err); }
.ev-errorsum strong { font-weight: 700; }
.ev-errorsum > div > strong:first-child { display: block; }

/* switch + check cards */
.ev-toggle, .ev-check { position: relative; display: flex; gap: 14px; align-items: flex-start; margin: 0 0 18px; padding: 14px 16px; border: 1.5px solid var(--ev-line); border-radius: var(--ev-r); cursor: pointer; line-height: 1.5; transition: border-color .12s, background-color .12s; }
.ev-toggle:hover, .ev-check:hover { border-color: var(--ev-line-strong); }
.ev-toggle input, .ev-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ev-toggle strong { display: block; color: var(--ev-ink); }
.ev-toggle small { display: block; color: var(--ev-muted); font-size: .9rem; }
.ev-toggle__track { flex: 0 0 44px; height: 26px; margin-top: 1px; position: relative; border-radius: 13px; background: #c6ccd4; transition: background-color .15s; }
.ev-toggle__track span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.ev-toggle input:checked + .ev-toggle__track { background: var(--ev-ink); }
.ev-toggle input:checked + .ev-toggle__track span { transform: translateX(18px); }
.ev-toggle input:focus-visible + .ev-toggle__track, .ev-check input:focus-visible + .ev-check__box { outline: 3px solid var(--ev-focus); outline-offset: 2px; }
.ev-toggle.is-on { border-color: var(--ev-ink); background: var(--ev-bg); }
.ev-check { margin-bottom: 10px; font-size: .97rem; }
.ev-check__box { flex: 0 0 24px; height: 24px; margin-top: 1px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--ev-line-strong); border-radius: var(--ev-r-sm); background: #fff; color: transparent; font-size: .72rem; transition: all .12s; }
.ev-check input:checked + .ev-check__box { background: var(--ev-ink); border-color: var(--ev-ink); color: var(--ev-gold-hi); }
.ev-check.is-on { border-color: var(--ev-ink); background: #fafbfc; }
.ev-check.has-error { border-color: var(--ev-err); background: #fffafa; }

.ev-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* nav row */
.ev-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--ev-line); }
.ev-nav--center { justify-content: center; flex-wrap: wrap; border-top: 0; }

/* ================================================================ files */
.ev-drop {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
    margin: 0; padding: 40px 24px 32px; text-align: center; cursor: pointer;
    background: #fff; border: 2px dashed var(--ev-line-strong); border-radius: var(--ev-r);
    transition: border-color .12s, background-color .12s, box-shadow .12s;
}
.ev-drop:hover { border-color: var(--ev-ink); }
.ev-drop.is-over { border-style: solid; border-color: var(--ev-gold); background: var(--ev-gold-soft); box-shadow: 0 0 0 4px rgba(201, 162, 74, .2); }
.ev-drop__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ev-drop__input:focus-visible ~ .ev-drop__icon { outline: 3px solid var(--ev-focus); outline-offset: 4px; }
.ev-drop__icon { width: 64px; height: 64px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ev-ink); color: var(--ev-gold-hi); font-size: 1.6rem; }
.ev-drop__title { font-family: var(--ev-display); font-size: 1.3rem; color: var(--ev-ink); }
.ev-drop__link { text-decoration: underline; text-decoration-color: var(--ev-gold); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.ev-drop__meta { font-size: .95rem; color: var(--ev-muted); }
.ev-drop__types { display: flex; gap: 8px; margin-top: 12px; }
.ev-drop__types span { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: .8rem; }

.ev-rejects { margin: 12px 0 0; padding: 12px 16px; background: var(--ev-err-bg); border-left: 4px solid var(--ev-err); border-radius: 0 var(--ev-r-sm) var(--ev-r-sm) 0; color: #6b130d; font-size: .94rem; }
.ev-rejects strong { font-weight: 700; }
.ev-rejects ul { margin: 6px 0 0; padding-left: 20px; }
.ev-rejects li span { font-weight: 700; word-break: break-all; }

.ev-filehead { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 28px 0 12px; flex-wrap: wrap; }
.ev-filehead h3 { margin: 0; font-size: 1.2rem; color: var(--ev-ink); }
.ev-filehead h3 span { margin-left: 6px; padding: 2px 8px; border-radius: 10px; background: var(--ev-ink); color: #fff; font-family: var(--ev-sans); font-size: .78rem; font-weight: 600; vertical-align: middle; }
.ev-meter { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.ev-meter__label { color: var(--ev-ink); font-weight: 600; white-space: nowrap; }
.ev-meter__label small { color: var(--ev-muted); font-weight: 400; font-size: inherit; }
.ev-meter__bar { width: 140px; height: 6px; border-radius: 3px; background: #dfe3e8; overflow: hidden; }
.ev-meter__bar span { display: block; height: 100%; background: var(--ev-gold); }
.ev-empty { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px 0 0 !important; padding: 18px; border: 1px dashed var(--ev-line-strong); border-radius: var(--ev-r); color: var(--ev-muted); background: #fff; }

.ev-files { margin: 0; padding: 0; list-style: none; }
.ev-file { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; margin: 0 0 12px; padding: 16px; background: #fff; border: 1px solid var(--ev-line); border-radius: var(--ev-r); box-shadow: var(--ev-shadow); }
.ev-file.has-error { border-color: var(--ev-err); box-shadow: inset 4px 0 0 var(--ev-err); }
.ev-file__body { min-width: 0; }
.ev-file__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.ev-file__name { flex: 1 1 auto; min-width: 0; }
.ev-file__name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.02rem; color: var(--ev-ink); }
.ev-file__name span { font-size: .86rem; color: var(--ev-muted); }
.ev-file .ev-field { margin-bottom: 4px; }

.ev-thumb { position: relative; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; border-radius: var(--ev-r-sm); overflow: hidden; font-size: 1.6rem; }
.ev-thumb img, .ev-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.ev-thumb.is-video::after { content: "\f04b"; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; display: flex; align-items: center; justify-content: center; padding-left: 2px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: .7rem; }
.ev-thumb--sm { width: 48px; height: 48px; font-size: 1rem; }
.ev-thumb--sm.is-video::after { width: 20px; height: 20px; margin: -10px 0 0 -10px; font-size: .5rem; }

.ev-badge { flex: 0 0 auto; padding: 4px 10px; border-radius: 12px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ev-badge--ok { background: var(--ev-ok-bg); color: #145a37; }
.ev-badge--neutral { background: #e5e7eb; color: #1f2937; }
.ev-badge--err { background: var(--ev-err-bg); color: var(--ev-err); }
.ev-iconbtn { flex: 0 0 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--ev-line); border-radius: var(--ev-r-sm); color: var(--ev-muted); cursor: pointer; transition: all .12s; }
.ev-iconbtn:hover { background: var(--ev-err-bg); border-color: var(--ev-err); color: var(--ev-err); }

/* ================================================================ uploading */
.ev-bar { height: 6px; border-radius: 3px; background: #e5e7eb; overflow: hidden; }
.ev-bar span { display: block; height: 100%; width: 0; background: var(--ev-ink); transition: width .25s linear; }
.ev-bar--lg { height: 10px; border-radius: 5px; margin: 14px 0 12px; }
.ev-bar--lg span { background: linear-gradient(90deg, var(--ev-gold), var(--ev-gold-hi)); }
.ev-upload__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ev-upload__row strong { font-family: var(--ev-display); font-weight: normal; font-size: 1.15rem; color: var(--ev-ink); }
.ev-upload__ref { display: flex; gap: 10px; align-items: baseline; margin: 0 !important; font-size: .9rem; color: var(--ev-muted); }
.ev-upload__ref .ev-mono { color: var(--ev-ink); font-weight: 700; }
.ev-files--upload .ev-file { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; }
.ev-upfile .ev-file__head { align-items: center; margin-bottom: 10px; }
.ev-upfile[data-state="done"] { border-color: #bfe3cf; }
.ev-upfile[data-state="done"] .ev-bar span { background: var(--ev-ok); }
.ev-upfile[data-state="failed"] { border-color: var(--ev-err); }
.ev-upfile[data-state="uploading"] .ev-badge { min-width: 112px; text-align: center; }
.ev-upload__note { display: flex; gap: 10px; margin-top: 18px !important; }
.ev-upload__note i { margin-top: 4px; color: var(--ev-ink); }

/* ================================================================ review */
.ev-review__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ev-line); }
.ev-review__head .ev-card__title { float: none; width: auto; margin: 0; padding: 0; border: 0; }
.ev-dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px 16px; margin: 0; }
.ev-dl dt { font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ev-muted); padding-top: 2px; }
.ev-dl dd { margin: 0; word-break: break-word; color: var(--ev-ink); }
.ev-pre { white-space: pre-line; }
.ev-anon { margin: 0 !important; display: flex; gap: 12px; align-items: flex-start; color: var(--ev-muted); }
.ev-anon i { font-size: 1.3rem; color: var(--ev-ink); }
.ev-anon strong { color: var(--ev-ink); }
.ev-rfiles { margin: 0; padding: 0; list-style: none; }
.ev-rfiles li { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--ev-line); }
.ev-rfiles li:first-child { border-top: 0; padding-top: 0; }
.ev-rfiles__name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ev-ink); }
.ev-rfiles__name span { font-size: .85rem; color: var(--ev-muted); }
.ev-rfiles__desc { font-size: .96rem; }

/* ================================================================ done / receipt */
.ev-receipt { position: relative; background: #fff; border: 1px solid var(--ev-line); border-radius: var(--ev-r); box-shadow: var(--ev-shadow); overflow: hidden; }
.ev-receipt::before { content: ""; display: block; height: 6px; background: var(--ev-gold); }
.ev-receipt__top { padding: 36px 36px 24px; text-align: center; }
.ev-done__icon { width: 64px; height: 64px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ev-ok); color: #fff; font-size: 1.7rem; box-shadow: 0 0 0 8px var(--ev-ok-bg); }
.ev-receipt__top .ev-steptitle { font-size: 2.1rem; }
.ev-receipt__top p { max-width: 560px; margin: 8px auto 0 !important; color: var(--ev-muted); font-size: 1.05rem; }
.ev-receipt__ref { margin: 0 36px; padding: 22px; border: 2px dashed var(--ev-line-strong); border-radius: var(--ev-r); text-align: center; background: #fafbfc; }
.ev-receipt__ref > span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ev-muted); }
.ev-receipt__ref strong { display: block; margin: 6px 0 14px; font-size: 2rem; letter-spacing: .08em; color: var(--ev-ink); }
.ev-ref__actions { display: flex; gap: 8px; justify-content: center; }
.ev-receipt__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 24px 36px 0; border-top: 1px solid var(--ev-line); border-bottom: 1px solid var(--ev-line); }
.ev-receipt__facts > div { padding: 14px 0; }
.ev-receipt__facts > div + div { padding-left: 16px; border-left: 1px solid var(--ev-line); }
.ev-receipt__facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ev-muted); }
.ev-receipt__facts dd { margin: 2px 0 0; color: var(--ev-ink); font-weight: 600; }
.ev-receipt__next { padding: 24px 36px 32px; }
.ev-receipt__next h3 { margin: 0 0 10px; font-size: 1.1rem; color: var(--ev-ink); }
.ev-next { margin: 0; padding-left: 22px; line-height: 1.6; }
.ev-next li { margin-bottom: 6px; }
.ev-done .ev-nav { margin-top: 24px; padding-top: 0; }
.ev-done__foot { margin-top: 18px !important; text-align: center; }

/* ================================================================ aside */
.ev-aside { position: sticky; top: calc(var(--ev-nav-h) + 16px); display: flex; flex-direction: column; gap: 12px; padding-top: 76px; }
.ev-summary { background: var(--ev-night); color: #cfd5dd; border-radius: var(--ev-r); padding: 20px; box-shadow: var(--ev-shadow); }
.ev-summary h3 { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--ev-night-line); font-size: .86rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ev-gold-hi); }
.ev-summary dl { margin: 0; display: grid; gap: 12px; }
.ev-summary dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.ev-summary dt { font-size: .8rem; font-weight: 600; color: #8b95a3; }
.ev-summary dt i { width: 16px; margin-right: 4px; text-align: center; }
.ev-summary dd { margin: 0; color: #8b95a3; font-size: .94rem; word-break: break-word; }
.ev-summary dd small { display: block; font-size: .8rem; color: #8b95a3; }
.ev-summary .is-set dt i { color: var(--ev-gold-hi); }
.ev-summary .is-set dd { color: #fff; font-weight: 600; }
.ev-tip { padding: 16px 18px; background: #fff; border: 1px solid var(--ev-line); border-radius: var(--ev-r); font-size: .93rem; line-height: 1.5; }
.ev-tip h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .98rem; color: var(--ev-ink); }
.ev-tip h3 i { color: var(--ev-gold-ink); }
.ev-tip p { margin: 0 !important; color: #3a414c; }
.ev-tip a { font-weight: 600; }
.ev-tip--warn { background: var(--ev-warn-bg); border-color: #f0d58c; }
.ev-tip--warn p, .ev-tip--warn h3, .ev-tip--warn h3 i { color: var(--ev-warn); }
.ev-helpline { display: flex; align-items: center; gap: 8px; margin: 4px 0 0 !important; padding: 0 4px; font-size: .9rem; color: var(--ev-muted); }
.ev-helpline a { color: var(--ev-ink); font-weight: 700; }

/* ================================================================ responsive */
@media (max-width: 1080px) {
    .ev-hero__grid { grid-template-columns: 1fr; gap: 36px; }
    .ev-start { max-width: 560px; }
}
@media (max-width: 991px) {
    .ev-layout { grid-template-columns: minmax(0, 1fr); }
    .ev-aside { position: static; padding-top: 0; order: -1; }
    .ev-aside .ev-tip, .ev-aside .ev-helpline { display: none; }
    .ev-summary dl { grid-template-columns: 1fr 1fr; }
    .ev-split { grid-template-columns: 1fr; gap: 48px; }
    .ev-howto { grid-template-columns: 1fr; gap: 28px; }
    .ev-howto::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--ev-gold), var(--ev-line)); }
    .ev-howto li { padding-left: 72px; }
    .ev-howto__n { position: absolute; left: 0; top: 0; margin: 0; }
    .ev-trust__grid { grid-template-columns: 1fr; }
    .ev-trust__grid > div { padding: 16px 0; }
    .ev-trust__grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--ev-night-line); }
}
@media (max-width: 767px) {
    :root { --ev-nav-h: 64px; }
    .ev-wrap { padding: 0 16px; }
    .ev-hero { padding: calc(var(--ev-nav-h) + 36px) 0 40px; }
    .ev-hero__lead { font-size: 1.06rem; }
    .ev-start { padding: 22px 18px; }
    .ev-band { padding: 48px 0; }
    .ev-h2 { margin-bottom: 28px; }
    .ev-typegrid { grid-template-columns: 1fr; }
    .ev-stepper__btn { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 6px 14px 0; }
    .ev-stepper__label { font-size: .8rem; }
    .ev-stepper__label small { display: none; }
    .ev-hero__secure { display: none; }
    .ev-layout { padding-top: 24px; gap: 20px; }
    .ev-summary { padding: 16px; }
    .ev-aside--step1 { display: none; }
    .ev-summary dl > div { grid-template-columns: 1fr; gap: 0; }
    .ev-steptitle { font-size: 1.65rem; }
    .ev-card { padding: 18px 16px; }
    .ev-grid--2, .ev-grid--file, .ev-either { grid-template-columns: 1fr; }
    .ev-either__or { margin: -6px 0 12px; width: auto; height: auto; border-radius: 0; background: none; justify-content: flex-start; }
    .ev-drop { padding: 28px 16px 24px; }
    .ev-drop__desk { display: none; }
    .ev-drop__link { text-transform: capitalize; }
    .ev-file { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px; }
    .ev-file > .ev-thumb { width: 64px; height: 64px; font-size: 1.2rem; }
    .ev-meter__bar { width: 90px; }
    .ev-rfiles li { grid-template-columns: 48px minmax(0, 1fr); }
    .ev-rfiles__desc { grid-column: 2; }
    .ev-dl { grid-template-columns: 1fr; gap: 2px; }
    .ev-dl dd { margin-bottom: 10px; }
    .ev-nav { flex-direction: column-reverse; align-items: stretch; }
    .ev-nav .ev-btn { width: 100%; }
    .ev-receipt__top { padding: 28px 18px 18px; }
    .ev-receipt__ref { margin: 0 16px; padding: 18px 12px; }
    .ev-receipt__ref strong { font-size: 1.45rem; }
    .ev-receipt__facts { margin: 20px 16px 0; grid-template-columns: 1fr 1fr; }
    .ev-receipt__facts > div:nth-child(odd) { padding-left: 0; border-left: 0; }
    .ev-receipt__next { padding: 20px 18px 24px; }
}

/* ================================================================ print (receipt) */
@media print {
    nav.navbar, footer, .ev-emergency, .ev-preview, .ev-stepper, .ev-aside, .ev-nav, .ev-ref__actions, .ev-done__foot { display: none !important; }
    .ev-page, .ev-flow { background: #fff; padding: 0; }
    .ev-hero { padding: 0 0 12px; background: none; color: #000; }
    .ev-hero::after, .ev-hero__secure { display: none; }
    .ev-eyebrow { color: #000; }
    .ev-receipt { box-shadow: none; border: 1px solid #000; }
}
