:root {
    --navy: #0c2b4f;
    --navy-2: #123c68;
    --blue: #1769aa;
    --sky: #e9f4fb;
    --ink: #172536;
    --muted: #68798b;
    --line: #dce5ee;
    --surface: #ffffff;
    --canvas: #f3f7fa;
    --green: #147d64;
    --red: #c53b49;
    --shadow: 0 18px 48px rgba(18, 52, 80, .10);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
    height: 76px;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid rgba(12,43,79,.08);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
}
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
    color: #fff; font-weight: 800; font-size: 21px;
    background: linear-gradient(145deg, var(--navy), #1a6c9e);
    box-shadow: 0 8px 20px rgba(12,43,79,.18);
}
.brand strong { display: block; color: var(--navy); font-size: 16px; letter-spacing: .06em; }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.nav-links { display: flex; gap: 8px; }
.nav-links a { text-decoration: none; color: #536579; font-size: 13px; font-weight: 700; padding: 11px 14px; border-radius: 10px; }
.nav-links a:hover, .nav-links a.active { background: #edf5fa; color: var(--navy); }

.hero {
    color: #fff;
    background:
        radial-gradient(circle at 78% 28%, rgba(58,157,198,.28), transparent 25%),
        linear-gradient(118deg, #0a2748 0%, #103b66 58%, #145b7c 100%);
}
.compact-hero { padding: 52px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 70px; }
.eyebrow { display: inline-block; color: #8fd2ee; font-size: 11px; font-weight: 800; letter-spacing: .16em; margin-bottom: 12px; }
.eyebrow.dark { color: #2676a4; }
.hero h1 { margin: 0 0 13px; max-width: 720px; font-size: clamp(30px, 4vw, 47px); line-height: 1.08; letter-spacing: -.035em; }
.hero p { margin: 0; color: rgba(255,255,255,.72); max-width: 720px; font-size: 15px; line-height: 1.75; }
.hero-status { display: flex; gap: 14px; }
.hero-status > div { width: 132px; min-height: 100px; padding: 18px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.07); }
.status-dot { display: block; width: 6px; height: 6px; background: #68d2b3; border-radius: 50%; margin-bottom: 11px; box-shadow: 0 0 0 5px rgba(104,210,179,.1); }
.hero-status strong { display: block; font-size: 22px; }
.hero-status small { display: block; color: rgba(255,255,255,.6); font-size: 10px; margin-top: 4px; }

.content-section { padding: 48px 0 68px; }
.form-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 30px; align-items: start; }
.info-card, .form-card, .table-card, .stat-card { background: var(--surface); border: 1px solid rgba(26,67,99,.09); box-shadow: var(--shadow); }
.info-card { border-radius: var(--radius); padding: 28px 25px; }
.step-label { color: var(--blue); font-size: 10px; letter-spacing: .12em; font-weight: 800; text-transform: uppercase; }
.info-card h2 { color: var(--navy); font-size: 21px; letter-spacing: -.025em; margin: 9px 0 23px; }
.requirements-list { list-style: none; margin: 0; padding: 0; }
.requirements-list li { display: flex; gap: 13px; align-items: center; padding: 14px 0; border-top: 1px solid #edf1f4; }
.requirements-list li > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; background: #edf6fb; color: #24749f; font-size: 10px; font-weight: 800; }
.requirements-list strong { display: block; font-size: 13px; color: #253b51; }
.requirements-list small { color: #7c8b99; font-size: 10px; line-height: 1.45; }
.text-link { display: inline-flex; gap: 9px; margin-top: 22px; text-decoration: none; color: var(--blue); font-size: 12px; font-weight: 800; }

.form-card { border-radius: var(--radius); padding: 32px 36px 34px; }
.form-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid #e9eef2; }
.form-card-header h2 { margin: 0; color: var(--navy); font-size: 25px; letter-spacing: -.025em; }
.required-note { font-size: 10px; color: #718091; white-space: nowrap; }
.required-note span, .required { color: var(--red); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 28px; margin-top: 28px; }
.form-group label { display: block; margin-bottom: 9px; color: #2d4054; font-size: 12px; font-weight: 800; }
.input-wrap { position: relative; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #7890a3; font-size: 14px; font-weight: 700; pointer-events: none; }
.form-group input:not([type="hidden"]), .form-group select, .table-search input {
    width: 100%; height: 48px; border: 1px solid #ccd8e2; border-radius: 11px; background: #fbfdff; color: #18324b; outline: none; transition: border-color .18s, box-shadow .18s, background .18s;
}
.form-group input:not([type="hidden"]) { padding: 0 14px 0 42px; }
.form-group input:focus, .form-group select:focus, .table-search input:focus { border-color: #4b93bb; background: #fff; box-shadow: 0 0 0 4px rgba(59,139,183,.11); }
.form-group input.input-validation-error, .date-picker.invalid select { border-color: #db6973; box-shadow: 0 0 0 3px rgba(197,59,73,.08); }
.field-error { display: block; min-height: 17px; margin-top: 6px; color: var(--red); font-size: 10px; font-weight: 600; }
.field-hint { display: block; color: #8a99a7; font-size: 9.5px; margin-top: 1px; }
.date-picker { display: grid; grid-template-columns: 1.15fr 1.4fr .8fr; gap: 9px; }
.date-picker > div { position: relative; }
.picker-label { position: absolute; z-index: 1; top: 5px; left: 12px; color: #8797a7; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; pointer-events: none; }
.form-group .date-picker select { appearance: none; padding: 13px 28px 0 12px; background-image: linear-gradient(45deg, transparent 50%, #71879a 50%),linear-gradient(135deg, #71879a 50%, transparent 50%); background-position: calc(100% - 15px) 22px,calc(100% - 11px) 22px; background-size: 4px 4px,4px 4px; background-repeat: no-repeat; }
.form-actions { display: flex; justify-content: flex-end; gap: 11px; margin-top: 32px; padding-top: 25px; border-top: 1px solid #e9eef2; }
.btn { min-height: 45px; border: 0; border-radius: 11px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; text-decoration: none; font-size: 12px; font-weight: 800; transition: transform .18s, box-shadow .18s, background .18s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #0e416f, #176e9d); box-shadow: 0 8px 22px rgba(17,83,126,.18); }
.btn-primary:hover { box-shadow: 0 11px 28px rgba(17,83,126,.25); }
.btn-secondary { background: #eef3f6; color: #526777; }
.btn-light { background: #fff; color: var(--navy); }
.btn.compact { min-height: 38px; padding: 0 16px; font-size: 11px; }

.alert { display: flex; align-items: flex-start; gap: 12px; position: relative; margin: 22px 0 0; padding: 14px 42px 14px 14px; border-radius: 12px; font-size: 12px; transition: opacity .3s, transform .3s; }
.alert-success { color: #195c4c; background: #eaf8f3; border: 1px solid #cceade; }
.alert-error { color: #8a2f38; background: #fff0f1; border: 1px solid #f0cdd1; }
.alert-icon { display: grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: rgba(20,125,100,.12); font-weight: 900; }
.alert strong { display: block; margin-bottom: 2px; }
.alert p { margin: 0; font-size: 10px; }
.alert-close { position: absolute; right: 12px; top: 10px; border: 0; background: transparent; cursor: pointer; color: currentColor; font-size: 19px; opacity: .55; }
.alert.fade-out { opacity: 0; transform: translateY(-5px); pointer-events: none; }
.validation-summary-errors ul { margin: 0; padding-left: 17px; }

.data-hero { padding-bottom: 48px; }
.download-hero-btn { min-width: 190px; min-height: 65px; justify-content: flex-start; padding: 0 20px; }
.download-symbol { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #eaf4fa; color: #17699b; font-size: 18px; }
.download-hero-btn strong, .download-hero-btn small { display: block; }
.download-hero-btn strong { font-size: 12px; }
.download-hero-btn small { color: #718394; font-size: 9px; margin-top: 2px; }
.data-section { padding-top: 34px; }
.data-toolbar { display: flex; justify-content: space-between; align-items: stretch; gap: 20px; margin-bottom: 22px; }
.stats-row { display: flex; gap: 12px; }
.stat-card { min-width: 145px; border-radius: 14px; padding: 15px 18px; box-shadow: 0 8px 26px rgba(18,52,80,.06); }
.stat-card span { display: block; color: #7c8c9b; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stat-card strong { display: block; color: var(--navy); margin-top: 5px; font-size: 20px; }
.stat-card strong small { font-size: 11px; color: #8091a0; }
.table-search { position: relative; width: min(300px, 100%); align-self: center; }
.table-search span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #7b8f9f; }
.table-search input { padding: 0 14px 0 38px; }
.table-card { border-radius: var(--radius); overflow: hidden; }
.table-card-header { padding: 21px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid #e6edf2; }
.table-card-header h2 { margin: 0; color: var(--navy); font-size: 18px; }
.table-card-header p { margin: 4px 0 0; color: #8494a2; font-size: 10px; }
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { background: #f5f8fa; color: #65798c; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; text-align: left; padding: 13px 17px; border-bottom: 1px solid #dfe7ed; white-space: nowrap; }
td { padding: 15px 17px; border-bottom: 1px solid #edf1f4; color: #384e62; vertical-align: middle; }
tbody tr:hover { background: #fbfdff; }
.row-number { color: #91a0ad; font-size: 10px; }
.mono-value, .date-value { font-variant-numeric: tabular-nums; font-weight: 700; color: #25445e; }
.saved-date, .saved-time { display: block; white-space: nowrap; }
.saved-time { margin-top: 2px; color: #8b9aa7; font-size: 8.5px; }
.pagination-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 22px; background: #fbfcfd; }
.pagination-summary { color: #788b9b; font-size: 10px; }
.pagination { display: flex; gap: 5px; }
.page-btn { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid #dbe4ea; background: #fff; color: #556b7d; border-radius: 8px; text-decoration: none; font-size: 10px; font-weight: 800; }
.page-btn:hover { border-color: #8ab2c9; color: var(--navy); }
.page-btn.current { border-color: var(--navy); background: var(--navy); color: #fff; }
.page-btn.disabled { pointer-events: none; opacity: .38; }
.empty-state { padding: 55px 20px; text-align: center; color: #8796a4; }
.empty-state > span { display: block; font-size: 34px; color: #a8bac7; }
.empty-state strong { display: block; color: #40586a; margin-top: 10px; }
.empty-state p { font-size: 10px; }
.empty-state a { color: var(--blue); font-weight: 800; }

.footer { border-top: 1px solid #dfe7ed; background: #fff; }
.footer-inner { min-height: 65px; display: flex; justify-content: space-between; align-items: center; color: #8795a3; font-size: 9px; }
.error-page { max-width: 600px; padding: 60px 0; text-align: center; }
.error-code { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 18px; background: #fff0f1; color: var(--red); font-size: 30px; font-weight: 900; }
.error-page h1 { color: var(--navy); }
.error-page p { color: var(--muted); line-height: 1.7; }
.error-page small { display: block; margin: 20px 0; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero-status { display: none; }
    .form-layout { grid-template-columns: 1fr; }
    .info-card { display: none; }
    .data-toolbar { flex-direction: column; }
    .table-search { width: 100%; }
}
@media (max-width: 680px) {
    .shell { width: min(100% - 24px, 1180px); }
    .topbar { height: auto; }
    .topbar-inner { padding: 12px 0; align-items: flex-start; }
    .brand small { display: none; }
    .nav-links { gap: 3px; }
    .nav-links a { padding: 9px 8px; font-size: 10px; }
    .compact-hero { padding: 38px 0 42px; }
    .hero h1 { font-size: 32px; }
    .form-card { padding: 24px 18px; }
    .form-card-header { flex-direction: column; }
    .field-grid { grid-template-columns: 1fr; }
    .date-picker { grid-template-columns: 1fr 1.2fr .8fr; }
    .form-actions { flex-direction: column-reverse; }
    .btn { width: 100%; }
    .download-hero-btn { width: 100%; }
    .stats-row { display: grid; grid-template-columns: 1fr 1fr; }
    .stat-card { min-width: 0; }
    .stat-card:last-child { grid-column: 1 / -1; }
    .table-card-header { align-items: flex-start; }
    .table-card-header .btn { width: auto; }
    .pagination-bar { flex-direction: column; align-items: flex-start; }
    .footer-inner { flex-direction: column; justify-content: center; gap: 5px; }
}

/* Persistent post-save confirmation state */
.success-shell {
    display: flex;
    justify-content: center;
}
.success-card {
    width: min(780px, 100%);
    padding: 48px 52px 42px;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(20,125,100,.16);
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(18,52,80,.11);
}
.success-check {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #128069, #1a9b7e);
    box-shadow: 0 14px 32px rgba(20,125,100,.22);
    font-size: 35px;
    font-weight: 900;
}
.success-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--green);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
}
.success-card h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(25px, 4vw, 34px);
    line-height: 1.2;
    letter-spacing: -.035em;
}
.success-card > p {
    max-width: 610px;
    margin: 15px auto 0;
    color: #708294;
    font-size: 13px;
    line-height: 1.75;
}
.success-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    margin-top: 30px;
}
.submit-another-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #0e416f, #176e9d);
    box-shadow: 0 10px 26px rgba(17,83,126,.20);
    text-decoration: none;
    font-size: 13px;
    transition: transform .18s, box-shadow .18s;
}
.submit-another-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(17,83,126,.26);
}
.submit-another-link strong { font-weight: 900; }
.success-records-link { min-width: 210px; }
.success-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e8eef2;
    color: #82919f;
    font-size: 10px;
}
.success-note-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #39aa8d;
    box-shadow: 0 0 0 4px rgba(57,170,141,.10);
}

@media (max-width: 680px) {
    .success-card { padding: 34px 20px 30px; }
    .submit-another-link { width: 100%; padding: 12px 18px; line-height: 1.45; }
    .success-records-link { width: 100%; }
}


/* Professional data-table zebra rows and hover state */
#recordsTable tbody .data-row:nth-child(odd) { background: #ffffff; }
#recordsTable tbody .data-row:nth-child(even) { background: #f7f9fc; }
#recordsTable tbody .data-row {
    transition: background-color .18s ease, box-shadow .18s ease;
}
#recordsTable tbody .data-row:hover {
    background: #edf5ff;
    box-shadow: inset 4px 0 0 #2563eb, inset 0 1px 0 rgba(37,99,235,.07), inset 0 -1px 0 rgba(37,99,235,.07);
}
#recordsTable tbody .data-row:hover td { color: #0f2942; }

/* Delete-success message on /download */
.download-success-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    padding: 16px 18px;
    border: 1px solid #c8e8dc;
    border-radius: 14px;
    color: #185d4b;
    background: linear-gradient(135deg, #eefaf5, #f8fffc);
    box-shadow: 0 8px 28px rgba(20,125,100,.08);
}
.download-success-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: #168064;
    font-size: 18px;
    font-weight: 900;
}
.download-success-banner strong { display: block; font-size: 12px; }
.download-success-banner p { margin: 3px 0 0; color: #54796f; font-size: 10px; }

/* Hidden direct /delete page */
.delete-hero { background: radial-gradient(circle at 80% 25%, rgba(214,91,91,.20), transparent 24%), linear-gradient(118deg, #102a46 0%, #153e62 57%, #5a3243 100%); }
.delete-hero-badge {
    width: 170px;
    min-height: 110px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 14px 35px rgba(0,0,0,.08);
}
.delete-hero-badge > span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    border-radius: 50%;
    color: #fff;
    background: #cf5964;
    font-weight: 900;
}
.delete-hero-badge strong, .delete-hero-badge small { display: block; }
.delete-hero-badge strong { font-size: 14px; }
.delete-hero-badge small { margin-top: 4px; color: rgba(255,255,255,.62); font-size: 9px; line-height: 1.5; }
.delete-section { padding-top: 40px; }
.delete-shell { display: flex; justify-content: center; }
.delete-card, .delete-state-card {
    width: min(900px, 100%);
    background: #fff;
    border: 1px solid rgba(26,67,99,.10);
    border-radius: 20px;
    box-shadow: 0 22px 60px rgba(18,52,80,.11);
}
.delete-card { overflow: hidden; }
.delete-card-head { display: flex; justify-content: space-between; gap: 26px; padding: 30px 32px 25px; border-bottom: 1px solid #e8eef2; }
.delete-card-head h2, .delete-state-card h2 { margin: 6px 0 8px; color: var(--navy); font-size: clamp(23px, 3vw, 30px); letter-spacing: -.03em; }
.delete-card-head p, .delete-state-card > p { margin: 0; max-width: 650px; color: #708294; font-size: 12px; line-height: 1.7; }
.delete-kicker { color: #b84955; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.delete-risk-pill { height: fit-content; padding: 8px 11px; border-radius: 999px; color: #a33b45; background: #fff0f1; border: 1px solid #f0cdd1; font-size: 9px; font-weight: 800; white-space: nowrap; }
.delete-record-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; margin: 0 32px; background: #e8eef2; border: 1px solid #e8eef2; border-radius: 14px; overflow: hidden; }
.delete-record-item { min-height: 86px; padding: 18px 20px; background: #fbfdff; }
.delete-record-item.wide { grid-column: span 1; }
.delete-record-item span { display: block; color: #8292a0; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.delete-record-item strong { display: block; margin-top: 7px; color: #233d54; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.delete-warning-box { display: flex; gap: 14px; margin: 25px 32px 0; padding: 17px 18px; border: 1px solid #f0d6d8; border-radius: 13px; background: #fff8f8; }
.delete-warning-symbol { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; background: #ffe8ea; color: #b8454f; font-weight: 900; }
.delete-warning-box strong { display: block; color: #7f3038; font-size: 11px; }
.delete-warning-box p { margin: 4px 0 0; color: #936369; font-size: 10px; line-height: 1.6; }
.delete-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 26px 32px 18px; }
.btn-danger { color: #fff; background: linear-gradient(135deg, #a93643, #cf4d59); box-shadow: 0 8px 22px rgba(174,54,67,.19); }
.btn-danger:hover { box-shadow: 0 12px 28px rgba(174,54,67,.28); }
.btn-danger-solid { color: #fff; background: #bc3f4b; box-shadow: 0 8px 22px rgba(174,54,67,.20); }
.btn-danger-solid:hover { background: #a93440; box-shadow: 0 12px 28px rgba(174,54,67,.28); }
.delete-security-note { display: flex; justify-content: flex-end; align-items: center; gap: 7px; padding: 0 32px 28px; color: #8796a3; font-size: 9px; }
.delete-security-note > span:first-child { color: #d1a348; font-size: 8px; }
.delete-inline-error { display: flex; gap: 10px; align-items: center; margin: 22px 32px 0; padding: 12px 14px; color: #8a2f38; background: #fff0f1; border: 1px solid #f0cdd1; border-radius: 11px; }
.delete-inline-error > span { font-weight: 900; }
.delete-inline-error p { margin: 0; font-size: 10px; }
.delete-state-card { padding: 48px 44px; text-align: center; }
.delete-state-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; font-size: 27px; font-weight: 900; }
.delete-state-error .delete-state-icon { color: #a73742; background: #fff0f1; }
.delete-state-neutral .delete-state-icon { color: #466879; background: #eef5f8; }
.delete-state-card > p { margin-left: auto; margin-right: auto; }
.delete-url-example, .delete-query-chip { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding: 12px 15px; border-radius: 11px; background: #f5f8fa; border: 1px solid #e4ebf0; }
.delete-url-example span, .delete-query-chip span { color: #8594a1; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.delete-url-example code, .delete-query-chip strong { color: #28465e; font-size: 11px; }
.confirm-modal[hidden] { display: none; }
.confirm-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 22px; }
.confirm-modal-backdrop { position: absolute; inset: 0; background: rgba(8,28,47,.60); backdrop-filter: blur(4px); }
.confirm-dialog { position: relative; width: min(520px, 100%); padding: 32px; text-align: center; background: #fff; border-radius: 20px; box-shadow: 0 28px 80px rgba(5,25,43,.28); animation: deleteModalIn .16s ease-out; }
@keyframes deleteModalIn { from { transform: translateY(8px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.confirm-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 15px; border-radius: 50%; color: #fff; background: #c34651; box-shadow: 0 10px 26px rgba(195,70,81,.22); font-size: 24px; font-weight: 900; }
.confirm-dialog h3 { margin: 7px 0 9px; color: var(--navy); font-size: 23px; letter-spacing: -.025em; }
.confirm-dialog > p { margin: 0; color: #708294; font-size: 11px; line-height: 1.7; }
.confirm-summary { display: flex; flex-direction: column; gap: 4px; margin: 20px 0 0; padding: 13px 15px; border-radius: 11px; background: #f6f9fb; color: #486075; font-size: 10px; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
body.modal-open { overflow: hidden; }

@media (max-width: 680px) {
    .delete-card-head { flex-direction: column; padding: 25px 20px 21px; }
    .delete-risk-pill { align-self: flex-start; }
    .delete-record-grid { grid-template-columns: 1fr; margin: 0 20px; }
    .delete-record-item.wide { grid-column: auto; }
    .delete-warning-box { margin: 20px 20px 0; }
    .delete-actions { flex-direction: column-reverse; padding: 22px 20px 15px; }
    .delete-security-note { justify-content: flex-start; padding: 0 20px 24px; }
    .delete-state-card { padding: 35px 20px; }
    .delete-url-example, .delete-query-chip { flex-direction: column; gap: 5px; }
    .confirm-dialog { padding: 27px 19px; }
    .confirm-actions { flex-direction: column-reverse; }
}

/* Date-range filtering on /download */
.date-range-card {
    margin-bottom: 22px;
    padding: 24px 26px;
    border: 1px solid rgba(26,67,99,.10);
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbfd 100%);
    box-shadow: 0 14px 40px rgba(18,52,80,.07);
}
.date-range-intro { display: flex; align-items: flex-start; gap: 14px; }
.date-range-icon {
    display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto;
    border-radius: 12px; color: #17699b; background: #eaf4fa; font-size: 16px; font-weight: 900;
}
.date-range-kicker { color: #2c7aa4; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.date-range-intro h2 { margin: 4px 0 5px; color: var(--navy); font-size: 19px; letter-spacing: -.02em; }
.date-range-intro p { margin: 0; color: #7b8d9c; font-size: 10px; line-height: 1.6; }
.date-range-form {
    display: grid;
    grid-template-columns: minmax(190px,1fr) 30px minmax(190px,1fr) auto;
    gap: 14px;
    align-items: end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8eef2;
}
.date-range-field label { display: block; margin-bottom: 7px; color: #334b60; font-size: 10px; font-weight: 800; }
.date-range-field small { display: block; margin-top: 5px; color: #92a0ac; font-size: 8.5px; }
.date-input-wrap { position: relative; }
.date-input-wrap > span {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%); z-index: 1;
    color: #7890a3; font-size: 12px; pointer-events: none;
}
.date-input-wrap input {
    width: 100%; height: 46px; padding: 0 12px 0 38px;
    border: 1px solid #ccd8e2; border-radius: 11px; outline: none;
    background: #fff; color: #18324b; font-size: 11px;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.date-input-wrap input:focus { border-color: #4b93bb; box-shadow: 0 0 0 4px rgba(59,139,183,.11); }
.date-input-wrap input:invalid:not(:focus):not(:placeholder-shown) { border-color: #db6973; }
.date-range-separator { align-self: center; margin-top: 16px; text-align: center; color: #8da0ae; font-size: 17px; }
.date-range-actions { display: flex; gap: 8px; align-items: center; }
.date-filter-btn, .date-clear-btn { white-space: nowrap; min-height: 46px; }
.date-range-message {
    display: flex; align-items: center; gap: 11px; margin-top: 17px; padding: 12px 14px;
    border-radius: 11px; font-size: 10px;
}
.date-range-message > span {
    display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto;
    border-radius: 50%; font-weight: 900;
}
.date-range-message strong { display: block; font-size: 10.5px; }
.date-range-message p { margin: 2px 0 0; line-height: 1.55; }
.date-range-error { color: #8a2f38; background: #fff1f2; border: 1px solid #f0cdd1; }
.date-range-error > span { color: #fff; background: #c54b56; }
.date-range-active { color: #185d4b; background: #eefaf5; border: 1px solid #c8e8dc; }
.date-range-active > span { color: #fff; background: #168064; }
.download-disabled { opacity: .58; cursor: not-allowed; pointer-events: none; box-shadow: none !important; transform: none !important; }

@media (max-width: 980px) {
    .date-range-form { grid-template-columns: 1fr 30px 1fr; }
    .date-range-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 680px) {
    .date-range-card { padding: 20px 16px; }
    .date-range-form { grid-template-columns: 1fr; gap: 12px; }
    .date-range-separator { display: none; }
    .date-range-actions { grid-column: auto; flex-direction: column; }
    .date-range-actions .btn { width: 100%; }
}
