:root {
  --ink: #14213d; --muted: #5b6475; --line: #dfe3ea; --bg: #f5f6f8; --card: #fff;
  --navy: #1F3864; --link: #2c4f8a; --gold: #F4B942;
  --ok: #1e7a46; --okbg: #e3f4ea; --warn: #8a5a00; --warnbg: #fff3d6; --bad: #a12a2a; --badbg: #fbe5e5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e7eaf0; --muted: #9aa3b2; --line: #2b3343; --bg: #11151c; --card: #171c25;
    --navy: #8fb0e8; --link: #a9c3ef; --okbg: #173626; --ok: #7ad3a0; --warnbg: #3a2e12; --warn: #f0c46a;
    --badbg: #3c1c1c; --bad: #f19a9a;
  }
}
:root[data-theme="dark"] {
  --ink: #e7eaf0; --muted: #9aa3b2; --line: #2b3343; --bg: #11151c; --card: #171c25;
  --navy: #8fb0e8; --link: #a9c3ef; --okbg: #173626; --ok: #7ad3a0; --warnbg: #3a2e12; --warn: #f0c46a;
  --badbg: #3c1c1c; --bad: #f19a9a;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--link); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.private { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ok); background: var(--okbg); padding: 4px 10px; border-radius: 999px; }
.private svg { width: 14px; height: 14px; fill: currentColor; }
.intro { padding: 28px 0 8px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; }
h2 { font-size: 18px; margin: 0; }
.lede { color: var(--muted); font-size: 17px; margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 16px 0; }
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.num { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--card); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed var(--line); border-radius: 10px; padding: 28px 16px; cursor: pointer; text-align: center; }
.drop:hover, .drop.over, .drop:focus-visible { border-color: var(--link); outline: none; }
.drop.has-file { border-style: solid; border-color: var(--ok); background: var(--okbg); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop-main { font-weight: 600; word-break: break-word; }
.drop-sub { color: var(--muted); font-size: 14px; }
.hint { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary .step-head { margin-bottom: 0; }
details[open] summary { margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.field small { font-weight: 400; color: var(--muted); }
input[inputmode] { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.check { display: block; margin: 16px 0 6px; font-size: 14px; }
.btn { display: inline-block; background: var(--navy); color: var(--card); border: 0; border-radius: 8px; padding: 12px 22px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
button.link { background: none; border: 0; color: var(--link); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; padding: 0; }
.status { margin-top: 14px; }
.bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar div { height: 100%; width: 0; background: var(--navy); transition: width .4s; }
.status p { margin: 8px 0 0; font-size: 14px; }
.alert { border-radius: 8px; padding: 10px 14px; margin: 14px 0 0; white-space: pre-wrap; }
.alert.error { background: var(--badbg); color: var(--bad); }
.alert.warn { background: var(--warnbg); color: var(--warn); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 18px 0; }
.stats div { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; }
.stats span { font-size: 13px; color: var(--muted); }
.stats b { font-size: 20px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#download { margin: 4px 0 16px; }
.lik { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 4px; }
.lik th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.lik td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); }
.lik th + th, .lik td + td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats small { font-size: 13px; color: var(--muted); }
.also { padding: 8px 0; }
.also h2 { margin-bottom: 6px; }
.foot { padding: 24px 16px 40px; font-size: 14px; }
@media (max-width: 560px) { h1 { font-size: 24px; } .card { padding: 16px; } }
.btn.gold { background: var(--gold); color: #14213d; }
.btn.small { padding: 7px 14px; font-size: 14px; }
.alert.ok { background: var(--okbg); color: var(--ok); }
.alert.info { background: var(--line); color: var(--ink); }
.unlock p { margin: 0 0 12px; }
details.code { margin-top: 12px; font-size: 14px; }
details.code summary { color: var(--link); text-decoration: underline; cursor: pointer; }
details.code textarea { width: 100%; margin: 10px 0 8px; font: 13px/1.4 ui-monospace, Consolas, monospace; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.price { font-size: 15px; font-weight: 600; }
.recovery p { margin: 6px 0 14px; }
input:not([type]), input[type=email], input[type=tel] { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
input.bad { border-color: var(--bad); }
.tablewrap { overflow-x: auto; }
.lik tfoot td { font-weight: 700; border-bottom: 0; }
.lik th { white-space: normal; }
.readme { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 13px; color: var(--muted); }
.readme b { color: var(--ink); }
.readme ul { margin: 6px 0 0; padding-left: 18px; }
.readme li { margin: 4px 0; }
.price { font-weight: 400; }
.price ul.bands { margin: 6px 0 8px; padding-left: 20px; }
.price ul.bands li { margin: 2px 0; }
.price .contingency { display: block; margin-top: 8px; }
.dupes-h { font-size: 16px; margin: 18px 0 4px; }
.risk { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.risk.high { background: #FFC000; color: #14213d; }
.risk.medium { background: #FFFF99; color: #14213d; }

/* Back to the main website */
.home-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.home-link { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: inherit; font-weight: 600; font-size: 14px; white-space: nowrap; }
.home-link:hover { background: rgba(127,127,127,.12); }
.home-close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; text-decoration: none; color: inherit; font-size: 26px; line-height: 1; }
.home-close:hover { background: rgba(127,127,127,.12); }
@media (max-width: 640px) { .home-link { padding: 6px 10px; font-size: 13px; } }
.private-row { flex-basis: 100%; justify-content: flex-start; width: fit-content; }

/* Export cut off by the source system - shown above the results */
.alert.export { background: var(--badbg); color: var(--bad); border-left: 5px solid var(--bad); font-weight: 600; margin: 0 0 14px; }
/* "You have changed some settings" note on the Settings heading (visible while the panel is closed) */
#settings summary .changed { display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; font-size: 13px;
  color: var(--warn); background: var(--warnbg); border-radius: 6px; padding: 3px 10px; }
#settings summary .changed[hidden] { display: none; }

/* Step 5: three options side by side (stacked on narrow screens) */
.options-intro { margin: 0 0 16px; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.opt { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 16px; background: var(--bg); min-width: 0; }
.opt h3 { margin: 6px 0 10px; font-size: 19px; }
.opt p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; }
.opt-tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.opt-foot { margin-top: auto; padding-top: 6px; }
.opt-foot p { margin: 8px 0 0; }
.opt #locked { display: flex; flex-direction: column; flex: 1; }
.btn.wide { display: block; width: 100%; text-align: center; box-sizing: border-box; }
.opt .price { font-size: 14px; margin: 0 0 12px; }
.opt .price .yourprice { display: block; margin-top: 6px; }
.opt details.code { margin-top: 10px; }
.opt .field { display: block; margin-top: 8px; }
.opt .field input { width: 100%; box-sizing: border-box; }
.plans { border: 0; padding: 0; margin: 0 0 12px; }
.plans legend { padding: 0; margin-bottom: 6px; }
.plan { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; background: var(--card); }
.plan:has(input:checked) { border-color: var(--link); box-shadow: 0 0 0 1px var(--link) inset; }
.plan b { font-size: 17px; }
#drop.pulse { animation: pulse 1.5s ease-out; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 160, 23, .7); } 100% { box-shadow: 0 0 0 18px rgba(212, 160, 23, 0); } }
@media (max-width: 700px) { .opts { grid-template-columns: 1fr; } }

/* File too big to buy a report online */
.overlimit { background: var(--warnbg); border-radius: 8px; padding: 12px 14px; font-size: 14.5px; line-height: 1.5; }
.overlimit-list { margin: 8px 0 0; padding-left: 20px; }
.overlimit-list li { margin: 6px 0; }
.btn[hidden], [hidden] { display: none !important; }
#options .step-head { margin-bottom: 16px; }
.report-shows { margin: 0 0 14px; padding-left: 22px; font-size: 14.5px; }
.report-shows li { margin: 3px 0; }
.overlimit-btn { display: block; width: 100%; box-sizing: border-box; vertical-align: top; margin-top: 2px; padding: 9px 16px; font-size: 14.5px; text-decoration: none; text-align: center; }
.overlimit-or { margin: 4px 0 8px; font-weight: 600; }
/* WARNING box in option 1 (always shown; highlighted when the checked file is over the limit) */
.limit-warning { border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; font-size: 14px; line-height: 1.5; background: var(--card); }
.limit-warning p { margin: 0 0 6px; font-size: 14px; }
.limit-warning ol { margin: 0; padding-left: 20px; }
.limit-warning li { margin: 4px 0; }
.limit-title { font-weight: 700; letter-spacing: .05em; color: var(--warn); }
.limit-warning.active { background: var(--warnbg); border-color: var(--warn); }
.no-fee { font-weight: 700; font-size: 16px !important; }
.report-shows { list-style-position: outside; }
/* "Powered by Velaron" in the footer */
.powered { margin: 18px 0 6px; text-align: center; }
.powered a { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); text-decoration: none; font-size: 15px; }
.powered img { display: block; height: 23px; width: auto; }
.powered a:hover { color: inherit; }

/* ===== Velaron theme: colours taken from www.velaron.co.uk (same in light and dark mode) =====
   background #0A1128, gold #C5A059, body text #CCD6F6, white #FFFFFF, text on gold #0A192F */
:root, :root[data-theme="light"], :root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ffffff; --muted: #ccd6f6; --line: #26315a; --bg: #0a1128; --card: #0f1937;
  --navy: #c5a059; --link: #d9bc7e; --gold: #c5a059; --head: #c5a059;
  --ok: #7ad3a0; --okbg: #12302f; --warn: #d9bc7e; --warnbg: #2e2a1c; --bad: #f19a9a; --badbg: #3a1b28;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ffffff; --muted: #ccd6f6; --line: #26315a; --bg: #0a1128; --card: #0f1937;
    --navy: #c5a059; --link: #d9bc7e; --gold: #c5a059; --head: #c5a059;
    --ok: #7ad3a0; --okbg: #12302f; --warn: #d9bc7e; --warnbg: #2e2a1c; --bad: #f19a9a; --badbg: #3a1b28;
  }
}
h1, h2, h3, .opt h3, .readme > b, .limit-title { color: var(--head); }
h1 { letter-spacing: .01em; }
.top { background: #070d20; border-bottom-color: var(--line); }
.brand { color: #ffffff; }
.num { color: #0a192f; }
.btn, .btn.gold { color: #0a192f; border-radius: 0; letter-spacing: .04em; }
.btn.small { border-radius: 0; }
.opt { background: #0c1530; }
.plan { background: var(--card); }
input, select, textarea { background: #0a1128; color: #fff; border-color: var(--line); }
.home-link { border-color: var(--line); color: #fff; border-radius: 0; }
.home-close { color: #fff; }
.private { color: var(--ok); background: var(--okbg); }
.limit-warning { background: #0c1530; }
.limit-warning.active { background: var(--warnbg); }
.overlimit { color: #fff; }
.drop.has-file { background: var(--okbg); }
.powered a { color: var(--muted); }
/* Good news: nothing worth recovering */
.alert.good { background: #12302f; color: #e9f7ef; border-left: 5px solid #7ad3a0; margin: 0 0 14px; font-size: 16px; line-height: 1.55; }
.alert.good b { color: #7ad3a0; display: block; font-size: 18px; margin-bottom: 4px; }
.alert.good .good-vat { display: block; margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.btn.quiet { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
/* Data security reassurance panel */
.trust { border: 1px solid var(--gold); border-radius: 12px; padding: 20px 22px; margin: 18px 0 8px; background: linear-gradient(180deg, rgba(197,160,89,.10), rgba(197,160,89,.03)); }
.trust-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.trust-head svg { width: 26px; height: 26px; fill: var(--gold); flex: none; }
.trust-head h2 { font-size: 21px; }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; }
.trust-item { padding-left: 26px; position: relative; }
.trust-item:before { content: "✓"; position: absolute; left: 0; top: 0; color: #7ad3a0; font-weight: 800; font-size: 17px; }
.trust-item b { color: #fff; display: block; margin-bottom: 2px; }
.trust-item p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.trust-more { margin-top: 14px; font-size: 14.5px; }
.trust-more summary { color: var(--link); text-decoration: underline; cursor: pointer; }
.trust-more[open] summary { margin-bottom: 8px; }
.trust-more ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.55; }
.trust-more li { margin: 6px 0; }
.trust-more li b { color: #fff; }
@media (max-width: 640px) { .trust-grid { grid-template-columns: 1fr; } }
