:root {
  color-scheme: light;
  --text: #163543;
  --subtle: #4d6874;
  --line: #d3e1e5;
  --bg: #f0f4f6;
  --surface: #fff;
  --brand: #006873;
  --sea: #123d48;
  --navy: #102b39;
  --gold: #e8bd65;
  --gold-line: #b28737;
  --danger: #a92e44;
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3, p, dl { margin: 0 0 0.85rem; }
h1 { font-size: 2.6rem; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.13; letter-spacing: -.025em; }
h2 { font-size: 1.35rem; line-height: 1.25; }
h3 { font-size: 1.05rem; }
button, input, textarea, select { font: inherit; }
button, .button, input, textarea, select {
  border: 1px solid #bfd2d9;
  border-radius: .55rem;
  padding: .55rem .8rem;
}
:focus-visible { outline: 3px solid #008a91; outline-offset: 3px; }
button, .button {
  color: var(--sea);
  background: var(--surface);
  cursor: pointer;
  font-weight: 650;
  text-decoration: none;
}
button:hover:not(:disabled), .button:hover { border-color: var(--brand); filter: brightness(.97); }
button:disabled { opacity: .48; cursor: not-allowed; }
.primary { color: #fff; background: var(--brand); border-color: var(--brand); }
.top { box-shadow: 0 3px 14px #102b390c; }
.top-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  padding-inline: max(1.15rem, calc((100vw - 81.3rem) / 2));
  min-height: 4.25rem;
  padding-block: .65rem;
  background: linear-gradient(100deg, #0b2331, #183c4a);
  color: #f7fcff;
  justify-content: space-between;
}
.top-line a { color: inherit; text-decoration: none; }
.top-line a:focus-visible { outline-color: var(--gold); }
.brand { display: inline-flex; align-items: center; gap: .75rem; }
.brand img { width: 104px; max-height: 41px; object-fit: contain; }
.brand span {
  border-left: 1px solid #ffffff40;
  padding-left: .75rem;
  font-size: 1.06rem;
  font-weight: 670;
  letter-spacing: .015em;
}
.account-nav, .tools { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.account-nav a, .return { font-size: .9rem; font-weight: 600; padding: .4rem .6rem; border-radius: .35rem; }
.account-nav a:hover, .return:hover { background: #ffffff1a; }
.account-nav a[aria-current="page"] { background: #ffffff24; box-shadow: inset 0 -2px var(--gold); }
.fira-frame {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  min-height: 100dvh;
}
.fira-frame.rail-collapsed { grid-template-columns: minmax(0, 1fr); }
.fira-frame.rail-collapsed .fira-rail { display: none; }
.fira-rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 1.5rem 1.15rem;
  background: linear-gradient(160deg, #123341, #0c212d);
  color: #d4e2ea;
}
.fira-rail-top { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.5rem; }
.fira-logo {
  display: grid;
  place-items: center;
  flex: 1;
  min-width: 0;
  min-height: 5.2rem;
  padding: .7rem;
  background: #080b0d;
  border: 1px solid #ffffff14;
  border-radius: .6rem;
}
.fira-logo img { display: block; width: 9.4rem; max-width: 100%; height: auto; }
.fira-nav, .fira-account-links { display: grid; gap: .3rem; }
.fira-nav a {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: inherit;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 640;
  min-height: 2.85rem;
  padding: .55rem .75rem;
  border-radius: .55rem;
}
.fira-nav a:hover { background: #ffffff10; color: #fff; }
.fira-nav a[aria-current="page"] { color: #ffe8b7; background: #ffffff16; box-shadow: inset 3px 0 var(--gold); }
.fira-nav svg, .fira-menu-toggle svg {
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fira-account-links { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid #ffffff25; }
.fira-rail :focus-visible { outline-color: var(--gold); }
.fira-rail-close, .fira-backdrop { display: none; }
.fira-workspace { min-width: 0; }
.fira-skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 25;
  transform: translateY(-200%);
  padding: .6rem .9rem;
  background: #fff;
  border-radius: .4rem;
}
.fira-skip-link:focus { transform: none; }
.fira-drawer-open .fira-skip-link { display: none; }
.fira-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .55rem 1rem;
  min-height: 3.7rem;
  padding: .6rem clamp(1rem, 2.4vw, 2rem);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.fira-context, .fira-context-text { display: flex; align-items: center; min-width: 0; }
.fira-context { gap: .65rem; flex: 1 1 14rem; }
.fira-topbar-logo { display: none; flex: 0 0 auto; background: #080b0d; padding: .3rem .38rem; border-radius: .4rem; }
.fira-topbar-logo img { display: block; width: 5rem; height: auto; }
.rail-collapsed .fira-topbar-logo { display: block; }
.fira-context-text { gap: .35rem .55rem; flex-wrap: wrap; font-size: .91rem; overflow-wrap: anywhere; }
.fira-context-text span {
  border: 1px solid var(--line);
  padding: .1rem .55rem;
  border-radius: 1rem;
  color: var(--subtle);
  background: var(--bg);
  font-size: .75rem;
}
.fira-menu-toggle, .fira-rail-close {
  place-items: center;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: #142f3d;
  border-color: #254553;
  color: #fff;
}
.fira-menu-toggle { display: grid; }
.tools { gap: .5rem; font-size: .875rem; }
.tools button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.4rem; padding: .4rem .75rem; }
.tools #upload {
  color: #182e37;
  background: #edca7e;
  border-color: #c29a4e;
}
#balance {
  color: #214d54;
  background: #e7f1f2;
  border-radius: 1rem;
  padding: .35rem .65rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.shell { max-width: 84rem; margin: 0 auto; padding: 2rem 1.35rem 3.5rem; }
.fira-workspace .shell { padding-inline: clamp(1rem, 2.7vw, 2rem); scroll-margin-top: 8rem; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.heading h1 { margin-bottom: 0; }
.overline { font-size: .85rem; font-weight: 650; color: var(--brand); margin-bottom: .3rem; }
.paper { background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; padding: 1.35rem; }
.case-heading {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .8rem;
  margin-bottom: 1.5rem;
}
.case-masthead { padding: clamp(1.05rem, 2.4vw, 1.65rem); background: #112b3a; color: #f5fbff; }
.case-masthead h1 { margin: 0 0 .25rem; font-size: 1.55rem; font-size: clamp(1.55rem, 3vw, 2.05rem); }
.case-masthead p { margin: 0; color: #c8d9e2; font-size: .85rem; font-weight: 600; }
.case-preferences { display: flex; justify-content: flex-end; padding: .55rem 1rem; background: var(--surface); }
.case-preferences .check { color: var(--subtle); font-size: .85rem; }
.cases-empty { padding: 2rem; }
.cases-empty p { color: var(--subtle); margin: 0; }
.welcome-target { outline: 2px solid var(--gold-line); outline-offset: 4px; }
#case-heading-title { width: fit-content; scroll-margin-top: 8rem; }
.welcome-bubble {
  position: fixed;
  z-index: 22;
  width: min(21rem, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: .9rem 1rem .85rem;
  border: 1px solid #b3cbd2;
  border-top: 3px solid var(--gold-line);
  border-radius: .75rem;
  background: var(--surface);
  box-shadow: 0 .75rem 1.9rem #0f2d3926;
  font-size: .9rem;
}
.welcome-bubble h2 { margin-bottom: .28rem; font-size: 1.06rem; }
.welcome-bubble p { margin-bottom: .65rem; }
.welcome-bubble .welcome-step { margin-bottom: .25rem; color: var(--subtle); font-size: .78rem; font-weight: 650; }
.welcome-error { color: var(--danger); }
.welcome-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .4rem; }
.welcome-actions button { min-height: 2.45rem; padding: .35rem .65rem; }
#welcome-skip { border-color: transparent; color: var(--subtle); }
.note { font-size: .91rem; color: var(--subtle); }
.signup { max-width: 48rem; margin: 0 auto; }
.signup-registration {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  max-width: 75rem;
}
.registration-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .85rem;
  margin-bottom: 1.45rem;
  background: #0b1721;
  box-shadow: 0 .5rem 1.5rem #142a3930;
}
.signup-intro, .signup-form-panel { min-width: 0; overflow-wrap: anywhere; }
.signup-intro h1 { font-size: 1.7rem; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.signup-intro > p { color: var(--subtle); }
.signup-example {
  background: linear-gradient(155deg, var(--surface) 60%, #f0f7f8);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-line);
  border-radius: .75rem;
  padding: clamp(1rem, 2.4vw, 1.45rem);
}
.signup-example-type { margin: 0 0 .38rem; color: var(--brand); font-size: .8rem; font-weight: 700; }
.signup-example h2 { font-size: clamp(1.08rem, 2vw, 1.35rem); margin-bottom: .6rem; }
.signup-example > p { font-size: .93rem; }
.signup-example-source {
  display: grid;
  justify-items: start;
  gap: .14rem;
  border-top: 1px solid var(--line);
  padding-top: .65rem;
  color: var(--subtle);
  font-size: .82rem;
}
.signup-example-source a { font-weight: 600; }
.signup-jump { display: none; }
.signup-form-panel { padding: clamp(1rem, 2.4vw, 1.6rem); }
#signup-form { grid-template-columns: minmax(0, 1fr); }
.signup-next {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: .65rem;
  background: #edf6f8;
}
.signup-next h3 { margin-bottom: .4rem; }
.form-error {
  width: 100%;
  margin: 0;
  padding: .65rem .75rem;
  border: 1px solid #efd1d7;
  border-radius: .5rem;
  background: #fbf0f2;
  color: var(--danger);
}
.signup-access {
  width: 100%;
  margin: 0 0 .4rem;
  padding: .75rem .9rem;
  border: 1px solid #c8dee4;
  border-left: 3px solid var(--brand);
  border-radius: .5rem;
  background: #edf6f8;
  color: var(--navy);
  font-size: .93rem;
}
.signup-access strong { display: block; }
#verified-login { display: inline-block; margin-top: .25rem; }
form { display: grid; justify-items: start; gap: .85rem; }
form > label, .fields, form > details, form > .finding { width: 100%; }
label { display: grid; gap: .3rem; font-size: .94rem; font-weight: 600; }
input, textarea, select { width: 100%; color: var(--text); background: #fcfefe; min-width: 0; }
textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: .6rem; }
.check input { width: auto; accent-color: var(--brand); flex: none; }
.fields { display: grid; gap: .65rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields .wide { grid-column: 1 / -1; }
details { border-top: 1px solid var(--line); padding: .75rem 0 0; }
summary { color: var(--brand); cursor: pointer; font-weight: 650; }
.disclaimer { white-space: pre-wrap; font-size: .91rem; padding: .85rem; max-height: 19rem; overflow: auto; background: var(--bg); margin-top: .5rem; }
#notice { padding: .75rem 1rem; border: 1px solid var(--line); background: #f8feff; border-radius: .65rem; }
#notice.error, .dialog-error { color: var(--danger); }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: 1.1rem; margin: 0 0 1rem; }
.case-card {
  padding: 0;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  text-align: left;
  min-width: 0;
  border-color: var(--line);
  border-radius: .82rem;
  box-shadow: 0 3px 14px #102b390c;
}
.case-card:hover:not(:disabled) { filter: none; border-color: #7c9fa9; box-shadow: 0 7px 22px #102b391a; }
.cover {
  position: relative;
  display: grid;
  place-items: center;
  height: 11rem;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at top, #f5fafb, #dae7ed);
}
.cover img {
  position: absolute;
  top: .75rem;
  left: 50%;
  height: calc(100% - 1.5rem);
  max-width: calc(100% - 2rem);
  transform: translateX(-50%);
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 4px 5px #102b3928);
}
.cover.has-image img { opacity: 1; }
.document-cover {
  display: grid;
  place-content: center;
  width: 90px;
  height: 116px;
  padding: .4rem;
  text-align: center;
  background: #fff;
  border: 1px solid #b8ced7;
  border-top: 5px solid #8eb5c2;
  color: var(--subtle);
  font-size: .78rem;
  font-weight: 600;
  box-shadow: 0 6px 16px #173b4a14;
}
.stamp {
  position: absolute;
  right: .75rem;
  bottom: .7rem;
  font-size: 1.35rem;
  line-height: 1;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 7px #102b3922;
}
.status-badge {
  display: inline-flex;
  border-radius: 2rem;
  padding: .25rem .6rem;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.checked { color: #086046; background: #e0f3e9; }
.fake { color: #922538; background: #f9e5eb; }
.in_progress { color: #684c12; background: #f9efd8; }
.card-label { display: grid; align-content: space-between; gap: .9rem; padding: 1rem; overflow-wrap: anywhere; }
.card-label strong { color: var(--navy); font-size: 1.02rem; line-height: 1.35; }
.card-meta, .case-detail-meta { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; }
.card-meta time, .case-detail-meta time { color: var(--subtle); font-size: .82rem; font-weight: 500; }
dialog {
  width: min(92vw, 47rem);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: .9rem;
  padding: 1.4rem;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 16px 60px #0d25344d;
}
dialog h2 { padding-right: 2.3rem; overflow-wrap: anywhere; }
dialog::backdrop { background: #0e2639a0; }
.close { position: absolute; right: .8rem; top: .8rem; width: 2.45rem; height: 2.45rem; padding: 0; font-size: 1.4rem; line-height: 1; }
.case-detail-heading { margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.case-detail-heading p { margin: .85rem 0 0; }
.case-findings {
  margin-bottom: 1.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid #d6e4e7;
  border-left: 4px solid var(--gold-line);
  border-radius: .55rem;
  background: #f5fafb;
}
.case-findings > :last-child { margin-bottom: 0; }
#buy-dialog { width: min(94vw, 55rem); padding: 0; }
#buy-dialog .close { border-color: #ffffff40; color: #fff; background: #ffffff12; }
#buy-dialog .close:focus-visible { outline-color: var(--gold); }
.buy-heading {
  padding: 1.45rem clamp(1rem, 3vw, 1.65rem);
  background: linear-gradient(110deg, #0e2938, #1d4b59);
  color: #fff;
}
.buy-heading h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin-bottom: .45rem; }
.buy-heading p { color: #cde1e9; margin: 0; font-size: .92rem; }
.packages { display: grid; gap: .8rem; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 1.3rem 1.4rem .7rem; }
.package-card {
  display: grid;
  align-content: start;
  grid-template-rows: auto auto 1fr;
  gap: .45rem;
  min-height: 8.7rem;
  text-align: left;
  padding: .95rem;
  border-color: var(--line);
  border-radius: .7rem;
  box-shadow: 0 2px 7px #102b3908;
}
.package-card:hover:not(:disabled) { filter: none; background: #f5fafb; box-shadow: 0 4px 12px #102b3915; }
.package-top { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .35rem .55rem; }
.package-label { color: var(--navy); font-weight: 700; }
.package-price { display: block; color: var(--navy); }
.package-price strong { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.025em; line-height: 1.15; }
.package-price small { font-size: .75rem; font-weight: 500; color: var(--subtle); }
.package-action { align-self: end; display: flex; justify-content: space-between; gap: .35rem; font-size: .85rem; color: var(--brand); }
.package-spotlight { position: relative; border-color: #b28737; background: #fff9ea; box-shadow: inset 0 3px #dfb75d; }
.package-spotlight:hover:not(:disabled) { border-color: #946d2e; background: #fff2d2; }
.package-spotlight .package-action { color: #6e4b15; }
.package-award {
  justify-self: start;
  padding: .15rem .5rem;
  border-radius: 1rem;
  color: #49330b;
  background: #f1cf82;
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.35;
}
.buy-foot, #buy-dialog .dialog-error { padding-inline: 1.4rem; font-size: .85rem; color: var(--subtle); }
#buy-dialog .dialog-error { color: var(--danger); }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; }
.readout { margin: .7rem 0; }
.readout dt { font-weight: 650; }
.readout dd { margin: 0 0 .55rem; }
.document-list, .case-list { padding-left: 0; list-style: none; }
.document-list li, .case-list li { padding: .55rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.document-list img { display: block; height: 130px; max-width: 100%; object-fit: contain; margin: .5rem 0; }
.iban-check { padding: .8rem 1rem; margin: .75rem 0; border: 1px solid var(--line); border-radius: .55rem; background: #f0f6f8; }
.iban-check h4 { margin: 0 0 .25rem; }
.iban-check p { margin: 0 0 .22rem; }
.iban-results { list-style: none; margin: .35rem 0; padding: 0; }
.iban-results li:last-child { border-bottom: 0; }
.iban-results strong { font-variant-numeric: tabular-nums; }
.operator-heading h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.operator-toolbar { margin-bottom: 1rem; }
.operator-toolbar label { display: flex; align-items: center; gap: .65rem; width: fit-content; max-width: 100%; }
.operator-toolbar select { min-width: 0; max-width: min(75vw, 21rem); }
.operator-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.fira-footer { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); padding: .85rem 1.25rem; font-size: .84rem; }
.attempts-toolbar, .attempts-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; }
.attempts-toolbar { justify-content: space-between; margin-bottom: .85rem; }
.attempts-pagination { margin-top: .85rem; }
.attempts-table-wrap { overflow-x: auto; }
.attempts-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.attempts-table th, .attempts-table td { padding: .62rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.attempts-table thead th { background: #eef5f7; }
.attempts-table input[type="checkbox"] { width: auto; accent-color: var(--brand); }
.attempts-table time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.attempts-table details { border: 0; padding: 0; }
.attempts-table details ul { max-height: 13rem; overflow-y: auto; padding-left: 1rem; }
.attempts-blocked { color: var(--danger); }
#attempts-empty { margin: 0; }
.operator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem); gap: 1rem; align-items: start; }
.operator-controls, #customer-settings { display: grid; gap: .6rem; }
.operator-setting { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; }
.operator-setting summary { padding: .7rem .8rem; font-size: .9rem; }
.operator-setting > form, .operator-setting > div { padding: .2rem .8rem .8rem; }
.operator-summary { float: right; color: var(--subtle); font-weight: 600; font-size: .8rem; }
.account-status {
  float: right;
  border-radius: 1rem;
  padding: .07rem .52rem;
  background: #e5f4ee;
  color: #175b49;
  font-size: .78rem;
  font-weight: 700;
}
.account-status[data-state="disabled"] { background: #f9efd6; color: #674a0f; }
.account-status[data-state="deleted"] { background: #eceff1; color: #455763; }
.account-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.account-controls select { width: auto; }
#account-form { gap: .25rem; margin-bottom: .65rem; }
#account-archive { margin: 0; }
.danger-button { color: var(--danger); border-color: #e4acba; }
.danger-button:hover:not(:disabled) { background: #fbeef1; }
.operator-cases .case-list { margin: 0 0 .65rem; }
.operator-cases .case-list:empty { margin: 0; }
.operator-case { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .6rem; text-align: left; }
.operator-case time { color: var(--subtle); font-size: .84rem; font-weight: 450; }
.operator-case .status-badge { width: fit-content; }
.finding { display: grid; gap: .5rem; border-top: 1px solid var(--line); padding: .65rem 0; }
#findings { width: 100%; }
.review-evidence { margin-bottom: 1rem; }
.review-evidence h3 { margin-top: .65rem; }
.review-sections { width: 100%; min-width: 0; }
.review-sections h3, .review-sections p { margin-bottom: .4rem; }
#review-sections { display: grid; gap: .7rem; }
.review-section {
  display: grid;
  gap: .6rem;
  min-width: 0;
  margin: 0;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #f5fafb;
}
.review-section legend { padding-inline: .3rem; color: var(--navy); font-weight: 700; }
.review-section textarea { background: var(--surface); font-weight: 400; }
.review-section .check { width: fit-content; min-height: 2.25rem; cursor: pointer; }
.source-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: clamp(1.2rem, 4vw, 2.25rem);
  border-radius: .86rem;
  background: linear-gradient(105deg, #102b39, #1a4957);
  color: #fafdff;
}
.source-hero > div { flex: 1 1 26rem; min-width: 0; }
.source-hero h1 { max-width: 33ch; overflow-wrap: anywhere; margin-bottom: 0; }
.source-hero .overline { color: #f4cd80; letter-spacing: .06em; }
.source-meta { display: flex; flex-wrap: wrap; gap: .8rem 1.8rem; margin: 1.05rem 0 0; }
.source-meta dt { color: #bbd3de; font-size: .8rem; }
.source-meta dd { margin: .1rem 0 0; color: #fafdff; font-size: .92rem; font-weight: 640; }
.europol-original {
  display: block;
  width: 100%;
  min-height: 36rem;
  height: 82vh;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--surface);
}
.source-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: .85rem; margin-bottom: 1rem; }
.source-metrics div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid #6d929c;
  border-radius: .65rem;
  padding: .9rem 1.05rem;
}
.source-metrics dt { color: var(--subtle); font-size: .86rem; }
.source-metrics dd { margin: 0; color: var(--navy); font-size: 1.6rem; font-weight: 730; overflow-wrap: anywhere; }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.source-card { background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; padding: clamp(1rem, 2.6vw, 1.55rem); }
.source-card > p:last-child { margin-bottom: 0; }
.source-card h2 { overflow-wrap: anywhere; }
.source-bars { list-style: none; padding: 0; margin: .3rem 0 0; }
.source-bars li {
  display: grid;
  grid-template-columns: minmax(5.3rem, 1.2fr) minmax(1rem, 2fr) auto;
  align-items: center;
  gap: .75rem;
  min-height: 2.25rem;
  padding: .4rem 0;
  border-bottom: 1px solid #e5edef;
  font-size: .9rem;
}
.source-bars li:last-child { border-bottom: 0; }
.source-bars li > span:first-child { overflow-wrap: anywhere; }
.source-track { height: .42rem; background: #e7f0f2; border-radius: 1rem; overflow: hidden; }
.source-track i { display: block; height: 100%; background: #23858f; border-radius: inherit; }
.source-bars strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.source-geography { margin-top: 1rem; }
.rw-filters {
  display: grid;
  grid-template-columns: minmax(12rem, 2fr) repeat(2, minmax(7rem, 1fr)) auto auto;
  align-items: end;
  gap: .65rem;
  margin: .9rem 0;
}
.rw-filters label { min-width: 0; }
.rw-victims { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(23rem, 100%), 1fr)); gap: .8rem; }
.rw-record { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .6rem; overflow-wrap: anywhere; }
.rw-record h3 { margin-bottom: .4rem; }
.rw-record .note { margin-block: .35rem; }
.rw-record-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin: .45rem 0; }
.rw-record-meta span { padding: .15rem .5rem; border-radius: .4rem; background: #edf4f6; color: var(--subtle); font-size: .8rem; }
.rw-record details { margin-block: .45rem; }
.rw-record > a { display: inline-block; margin-top: .35rem; }
.rw-pages { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1rem; }
.rw-group-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); gap: .45rem .8rem; list-style: none; padding: 0; }
.rw-group-list li { display: grid; gap: .15rem; padding: .45rem .6rem; background: #edf4f6; border-radius: .4rem; overflow-wrap: anywhere; }
.rw-group-list span { color: var(--subtle); font-size: .84rem; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: .5rem; }
@media (max-width: 900px) {
  .signup-registration { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
  .signup-jump { display: inline-block; margin-top: .8rem; }
  #signup-title { scroll-margin-top: 1rem; }
}
@media (max-width: 850px) {
  .operator { grid-template-columns: 1fr; }
  .rw-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rw-filters label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 1099px) {
  .fira-frame { display: block; }
  .fira-rail {
    visibility: hidden;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 31;
    width: min(18.5rem, 90vw);
  }
  .fira-rail-close { display: grid; align-self: flex-start; font-size: 1.35rem; }
  .fira-frame.drawer-open .fira-rail { visibility: visible; }
  .fira-backdrop { display: block; position: fixed; z-index: 30; inset: 0; background: #071d2e80; }
  body.fira-drawer-open { overflow: hidden; }
  .fira-topbar-logo { display: block; }
  .fira-menu-toggle, .fira-rail-close { flex-basis: 2.75rem; width: 2.75rem; height: 2.75rem; }
  .tools button { min-height: 2.75rem; }
}
@media (max-width: 650px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .heading { align-items: flex-start; }
  .heading { flex-direction: column; }
  .tools { width: 100%; }
  .fira-topbar { padding-block: .5rem .65rem; }
  .fira-workspace .shell { padding-top: 1.2rem; }
  .case-preferences { justify-content: flex-start; }
  .packages { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: .85rem; gap: .55rem; }
  .package-card { padding: .72rem; }
  .package-top { min-height: 2.75rem; align-content: start; }
  .buy-foot, #buy-dialog .dialog-error { padding-inline: .85rem; }
  .source-grid { grid-template-columns: 1fr; }
  .operator-case { grid-template-columns: minmax(0, 1fr) auto; }
  .operator-case time { grid-column: 1 / -1; }
  .europol-original { min-height: 22rem; }
}
@media (max-width: 380px) {
  .top-line, .fira-topbar { padding-inline: .8rem; }
  .fira-context { gap: .5rem; }
  .fira-topbar-logo img { width: 4.1rem; }
  .tools { gap: .4rem; font-size: .78rem; }
  .tools button { padding-inline: .55rem; }
  #balance { padding-inline: .45rem; }
  .brand { gap: .5rem; }
  .brand img { width: 80px; }
  .brand span { padding-left: .5rem; font-size: .95rem; }
}
