:root {
  color-scheme: light;
  --navy: #0b1f2a;
  --navy-2: #102a37;
  --brass: #b7791f;
  --brass-dark: #855615;
  --water: #2f6f8f;
  --water-pale: #dbe8ed;
  --paper: #f3f5f6;
  --sheet: #ffffff;
  --ink: #19333f;
  --ink-soft: #53666f;
  --line: #c8d1d5;
  --line-strong: #93a4ab;
  --risk: #c4493d;
  --ok: #2f735f;
  --focus: #ffc857;
  --display: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif;
  --body: Aptos, "Segoe UI", sans-serif;
  --max: 1480px;
  --pad: clamp(18px, 3vw, 46px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}

body.is-locked {
  overflow: hidden;
}

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

button,
a,
select,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--brass);
  color: var(--navy);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--sheet);
  color: var(--navy);
  transform: translateY(-150%);
}

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

.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;
}

.masthead {
  min-height: 78px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: var(--navy);
  color: var(--paper);
  border-bottom: 4px solid var(--water);
}

.masthead__rail,
.masthead__actions {
  display: flex;
  align-items: center;
}

.masthead__rail {
  min-width: 0;
  gap: 24px;
  padding-left: var(--pad);
}

.masthead__actions {
  border-left: 1px solid #3c505a;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--paper);
  text-decoration: none;
}

.brand__word {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.brand__mark {
  width: 28px;
  height: 32px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 0 4px 4px;
  border: 1px solid #6a808a;
  clip-path: polygon(0 0, 74% 0, 100% 24%, 100% 100%, 0 100%);
}

.brand__mark i {
  width: 4px;
  display: block;
  background: var(--water-pale);
}

.brand__mark i:nth-child(1) {
  height: 10px;
}

.brand__mark i:nth-child(2) {
  height: 17px;
  background: var(--brass);
}

.brand__mark i:nth-child(3) {
  height: 24px;
}

.brand__descriptor {
  color: #b7c4c9;
  font-size: .82rem;
  padding-left: 24px;
  border-left: 1px solid #52656e;
}

.button,
.icon-button,
.text-button,
.sort-button {
  border: 0;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--display);
  font-weight: 650;
  line-height: 1.1;
  text-decoration: none;
  border: 1px solid transparent;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}

.button--quiet {
  height: 100%;
  min-height: 48px;
  background: transparent;
  border-color: #4a606a;
  color: var(--paper);
  clip-path: none;
}

.button--quiet:hover {
  background: #183542;
}

.button--brass {
  height: 100%;
  min-height: 48px;
  background: var(--brass);
  color: var(--navy);
}

.button--brass:hover {
  background: #ca8d31;
}

.button--ink {
  background: var(--ink);
  color: var(--sheet);
}

.button--paper {
  background: var(--paper);
  color: var(--navy);
  border-color: var(--paper);
}

.button--reset {
  min-height: 40px;
  align-self: end;
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
  clip-path: none;
}

.command-intro,
.radar,
.method,
.pricing,
.pilot-band,
.footer,
.data-alert {
  width: min(calc(100% - (2 * var(--pad))), var(--max));
  margin-inline: auto;
}

.command-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(30px, 6vw, 100px);
  padding-block: clamp(38px, 6vw, 86px) clamp(30px, 4vw, 54px);
  align-items: end;
}

.command-intro__copy {
  max-width: 920px;
}

.section-index {
  margin: 0 0 10px;
  color: var(--water);
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .035em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.02;
}

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5.7vw, 5.75rem);
  font-weight: 720;
  letter-spacing: -.035em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 2.8vw, 2.65rem);
  font-weight: 680;
  letter-spacing: -.02em;
}

h3 {
  font-size: 1.1rem;
}

.lede {
  max-width: 740px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.55;
}

.system-stamp {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  min-height: 84px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--water);
  background: #e8edef;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.system-stamp__light {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(47, 115, 95, .14);
}

.system-stamp strong,
.system-stamp small {
  display: block;
}

.system-stamp strong {
  font-family: var(--display);
  font-size: .94rem;
}

.system-stamp small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: .76rem;
}

.data-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: #fff3d7;
  border-left: 5px solid var(--brass);
}

.data-alert[hidden] {
  display: none;
}

.data-alert strong,
.data-alert span {
  display: block;
}

.data-alert strong {
  font-family: var(--display);
  font-size: .9rem;
}

.data-alert span {
  color: #654c20;
  font-size: .84rem;
}

.text-button {
  flex: 0 0 auto;
  padding: 4px 0;
  background: transparent;
  color: var(--brass-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.radar {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--line-strong);
  box-shadow: 8px 8px 0 #d5dde0;
}

.radar::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -1px;
  right: -1px;
  width: 26px;
  height: 26px;
  background: var(--paper);
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.radar__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 24px clamp(18px, 2.4vw, 34px) 20px;
  color: var(--paper);
  background: var(--navy);
  border-bottom: 4px solid var(--water);
}

.radar__header .section-index {
  color: #7fb4ca;
}

.radar__header h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
}

.radar__readout {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
  font-size: .77rem;
  color: #b8c8cf;
}

.radar__readout span {
  min-width: 112px;
  padding: 0 16px;
  border-left: 1px solid #49606a;
}

.radar__readout strong {
  display: block;
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.18rem;
  font-variant-numeric: tabular-nums;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.65fr) repeat(4, minmax(128px, 1fr)) auto;
  gap: 1px;
  padding: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line-strong);
}

.field {
  display: grid;
  align-content: start;
  gap: 6px;
}

.filters .field {
  padding: 10px 12px 12px;
  background: var(--sheet);
}

.field span {
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 650;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  padding: 7px 9px;
  color: var(--ink);
  background: var(--sheet);
  border: 1px solid var(--line-strong);
  border-radius: 0;
}

.filters .field input,
.filters .field select {
  min-height: 28px;
  padding: 0;
  border: 0;
  outline-offset: 5px;
}

.filters .button--reset {
  margin: 9px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 48px;
  align-items: center;
  padding: 8px 14px;
  background: #e8eff2;
  border-bottom: 1px solid var(--line);
}

.active-filters[hidden] {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border: 1px solid #91aebc;
  background: var(--sheet);
  color: var(--ink);
  font-size: .76rem;
}

.filter-chip button {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--risk);
  font-weight: 800;
}

.radar__viewport {
  position: relative;
  min-height: 384px;
  overflow-x: auto;
}

.tender-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  table-layout: fixed;
}

.tender-table th,
.tender-table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.tender-table th {
  height: 48px;
  padding: 8px 14px;
  color: var(--ink-soft);
  background: #e9edef;
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 650;
}

.tender-table th:nth-child(1) {
  width: 118px;
}

.tender-table th:nth-child(2) {
  width: 34%;
}

.tender-table th:nth-child(3) {
  width: 22%;
}

.tender-table th:nth-child(4) {
  width: 140px;
}

.tender-table th:nth-child(5) {
  width: 150px;
}

.tender-table th:nth-child(6) {
  width: 58px;
}

.tender-table td {
  height: 88px;
  padding: 13px 14px;
  vertical-align: middle;
  background: var(--sheet);
}

.tender-table tbody tr {
  position: relative;
}

.tender-table tbody tr:hover td,
.tender-table tbody tr:focus-within td {
  background: #f0f5f7;
}

.tender-table tbody tr[data-urgent="true"] td:first-child {
  box-shadow: inset 4px 0 0 var(--risk);
}

.sort-button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 0;
  color: inherit;
  background: transparent;
  font-weight: inherit;
}

.sort-button.is-active {
  color: var(--ink);
}

.signal {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  gap: 2px 7px;
  align-items: center;
}

.signal__bar {
  grid-row: span 2;
  width: 6px;
  height: 36px;
  background: var(--water);
}

.signal--high .signal__bar {
  background: var(--brass);
}

.signal--low .signal__bar {
  background: var(--line-strong);
}

.signal strong {
  font-family: var(--display);
  font-size: 1.04rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.signal small {
  color: var(--ink-soft);
  font-size: .67rem;
}

.tender-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 5px;
  font-family: var(--display);
  font-size: .94rem;
  font-weight: 670;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tender-meta,
.buyer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--ink-soft);
  font-size: .73rem;
}

.buyer-name {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 4px;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 6px;
  border: 1px solid #9eb4bd;
  color: #31505d;
  background: #edf4f6;
  font-size: .65rem;
  line-height: 1;
}

.tag--risk {
  color: #803128;
  border-color: #d9a39d;
  background: #fff0ed;
}

.amount {
  font-family: var(--display);
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.amount--unknown {
  color: var(--ink-soft);
  font-weight: 500;
}

.deadline {
  display: grid;
  gap: 2px;
}

.deadline strong {
  font-family: var(--display);
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}

.deadline small {
  color: var(--ink-soft);
  font-size: .7rem;
}

.deadline--urgent strong,
.deadline--expired strong {
  color: var(--risk);
}

.deadline--expired small {
  font-weight: 700;
}

.row-open {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.1rem;
}

.row-open:hover {
  border-color: var(--water);
  background: var(--water);
  color: var(--sheet);
}

.empty-state,
.loading-state {
  min-height: 384px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 50px 20px;
  text-align: center;
}

.empty-state[hidden],
.loading-state[hidden] {
  display: none;
}

.empty-state h3 {
  margin: 18px 0 6px;
  font-size: 1.35rem;
}

.empty-state p {
  max-width: 560px;
  color: var(--ink-soft);
}

.empty-state__gauge {
  width: 66px;
  height: 36px;
  display: block;
  border: 5px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 66px 66px 0 0;
  transform: rotate(-5deg);
}

.loading-state {
  color: var(--ink-soft);
}

.scanner {
  width: 78px;
  height: 78px;
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: inset 0 0 0 18px var(--sheet), inset 0 0 0 19px var(--line);
  animation: scanner 1.6s steps(8) infinite;
}

.scanner::after {
  content: "";
  display: block;
  width: 38px;
  height: 2px;
  margin: 37px 0 0 38px;
  background: var(--water);
  transform-origin: left center;
}

@keyframes scanner {
  to { transform: rotate(360deg); }
}

.method {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(0, 2fr);
  gap: clamp(30px, 7vw, 110px);
  padding-block: clamp(80px, 11vw, 150px);
}

.method__heading h2 {
  max-width: 390px;
  font-size: clamp(2rem, 4vw, 4rem);
}

.method__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: start;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.method__steps article {
  min-height: 220px;
  padding: 22px 24px;
  border-left: 1px solid var(--line-strong);
}

.method__steps article:last-child {
  border-right: 1px solid var(--line-strong);
}

.method__steps article > span {
  display: block;
  margin-bottom: 55px;
  color: var(--brass-dark);
  font-family: var(--display);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}

.method__steps h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.method__steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .9rem;
}

.pricing {
  padding-bottom: clamp(72px, 10vw, 140px);
}

.pricing__header {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .7fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-strong);
}

.pricing__header h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 4.1rem);
}

.pricing__header > p {
  margin: 0;
  color: var(--ink-soft);
}

.pricing__ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.pricing__ledger article {
  min-height: 430px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 22px;
  padding: 28px;
  background: var(--sheet);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.pricing__ledger .pricing__featured {
  color: var(--paper);
  background: var(--navy);
  border-top: 6px solid var(--brass);
  margin-top: -6px;
}

.pricing__ledger h3 {
  margin-bottom: 6px;
  font-size: 1.55rem;
}

.pricing__ledger article > div p,
.pricing__ledger ul {
  margin: 0;
  color: var(--ink-soft);
  font-size: .88rem;
}

.pricing__ledger .pricing__featured > div p,
.pricing__ledger .pricing__featured ul {
  color: #bdcbd0;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.price strong {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price span {
  color: var(--ink-soft);
  font-size: .78rem;
}

.pricing__featured .price span {
  color: #bdcbd0;
}

.pricing__ledger ul {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-left: 18px;
}

.pricing__ledger li::marker {
  color: var(--brass);
}

.pilot-option {
  margin: 16px 0 0;
  padding: 15px 18px;
  color: var(--ink-soft);
  border-left: 5px solid var(--water);
  background: #e6edef;
  font-size: .86rem;
}

.pilot-option strong {
  color: var(--ink);
}

.pilot-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 1.4fr) minmax(280px, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  color: var(--paper);
  background: var(--navy);
  border-left: 9px solid var(--brass);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.pilot-band .section-index {
  color: #d5aa66;
}

.pilot-band h2 {
  max-width: 650px;
}

.pilot-band > p {
  margin: 0;
  color: #c2cdd1;
}

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding-block: 28px 38px;
  color: var(--ink-soft);
  font-size: .76rem;
}

.footer a {
  color: inherit;
  text-underline-offset: 3px;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--water);
}

.drawer-shell {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr minmax(360px, 620px);
}

.drawer-shell[hidden] {
  display: none;
}

.drawer-backdrop {
  border: 0;
  background: rgba(11, 31, 42, .64);
  cursor: default;
}

.detail-drawer {
  height: 100%;
  overflow-y: auto;
  background: var(--paper);
  border-left: 6px solid var(--water);
  box-shadow: -16px 0 0 rgba(11, 31, 42, .18);
}

.detail-drawer__header {
  position: sticky;
  z-index: 2;
  top: 0;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 24px;
  background: var(--navy);
  color: var(--paper);
  border-bottom: 4px solid var(--water);
}

.detail-drawer__header .section-index {
  margin-bottom: 2px;
  color: #82b7ca;
}

.detail-code {
  color: #b6c5ca;
  font-family: var(--display);
  font-size: .73rem;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  font-size: 1.5rem;
  line-height: 1;
}

.detail-drawer__body {
  padding: 28px 24px 60px;
}

.detail-priority {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.priority-meter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.priority-meter__track {
  width: 112px;
  height: 8px;
  background: var(--line);
}

.priority-meter__fill {
  display: block;
  height: 100%;
  background: var(--brass);
}

.priority-meter strong {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
}

.detail-drawer h2 {
  margin-bottom: 20px;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  line-height: 1.08;
}

.detail-summary {
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 26px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.detail-grid > div {
  min-height: 92px;
  padding: 14px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.detail-grid dt {
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: .7rem;
  font-weight: 650;
}

.detail-grid dd {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
}

.detail-section {
  margin-top: 28px;
}

.detail-section h3 {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
}

.signal-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.signal-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: .88rem;
}

.signal-list li::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 0;
  width: 8px;
  height: 2px;
  background: var(--brass);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 16px;
  color: var(--water);
  border: 1px solid var(--water);
  font-family: var(--display);
  font-weight: 650;
  text-decoration: none;
}

.source-link:hover {
  color: var(--sheet);
  background: var(--water);
}

.source-note {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: .74rem;
}

.pilot-dialog {
  width: min(calc(100% - 32px), 600px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-top: 6px solid var(--brass);
  border-radius: 0;
  box-shadow: 16px 16px 0 rgba(11, 31, 42, .24);
}

.pilot-dialog::backdrop {
  background: rgba(11, 31, 42, .72);
}

.pilot-dialog form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.dialog-rail {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.dialog-rail .icon-button {
  color: var(--ink);
}

.dialog-intro {
  margin-bottom: 2px;
  color: var(--ink-soft);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.country-fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--line-strong);
}

.country-fieldset legend {
  padding: 0 5px;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 650;
}

.country-fieldset label,
.pilot-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .86rem;
}

.country-fieldset input,
.pilot-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--water);
}

.pilot-check {
  padding: 12px;
  background: #e5ecef;
  border-left: 4px solid var(--water);
}

.sample-output {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.sample-output[hidden] {
  display: none;
}

.sample-output__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.sample-output__head h3 {
  margin: 0;
}

.sample-output > p {
  margin: 7px 0 14px;
  color: var(--ink-soft);
  font-size: .82rem;
}

.sample-output ol {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 1px;
  list-style: none;
  counter-reset: sample;
  background: var(--line);
}

.sample-output li {
  counter-increment: sample;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  background: var(--sheet);
  font-size: .78rem;
}

.sample-output li::before {
  content: counter(sample, decimal-leading-zero);
  color: var(--brass-dark);
  font-family: var(--display);
  font-weight: 700;
}

.sample-output li strong {
  display: block;
  font-family: var(--display);
}

.sample-output li span {
  color: var(--ink-soft);
}

.sample-upgrade {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.sample-upgrade[hidden] {
  display: none;
}

.sample-upgrade .button[aria-disabled="true"] {
  opacity: .5;
  pointer-events: none;
}

.license-dialog {
  width: min(calc(100% - 32px), 520px);
}

.pilot-dialog .button--quiet {
  color: var(--ink);
  border-color: var(--line-strong);
}

.pilot-dialog .button--quiet:hover {
  background: var(--water-pale);
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--ok);
  font-size: .82rem;
  font-weight: 600;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100% - 44px));
  padding: 13px 16px;
  color: var(--paper);
  background: var(--navy);
  border-left: 5px solid var(--brass);
  box-shadow: 6px 6px 0 rgba(11, 31, 42, .18);
}

.toast[hidden] {
  display: none;
}

@media (max-width: 1100px) {
  .brand__descriptor {
    display: none;
  }

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

  .field--search {
    grid-column: span 2;
  }

  .pilot-band {
    grid-template-columns: 1.3fr 1fr;
  }

  .pilot-band .button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 780px) {
  :root {
    --pad: 16px;
  }

  .masthead {
    min-height: auto;
    align-items: center;
  }

  .masthead__rail {
    padding: 12px 0 12px var(--pad);
  }

  .masthead__actions .button--quiet {
    display: none;
  }

  .masthead__actions .button--brass {
    min-height: 60px;
    padding-inline: 13px;
    font-size: .8rem;
  }

  .brand__word {
    font-size: 1.25rem;
  }

  .brand__mark {
    width: 24px;
    height: 28px;
  }

  .command-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  h1 {
    font-size: clamp(2.45rem, 13.2vw, 4.3rem);
  }

  .system-stamp {
    max-width: 420px;
  }

  .radar {
    width: 100%;
    border-inline: 0;
    box-shadow: none;
  }

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

  .radar__readout {
    width: 100%;
    justify-content: flex-start;
    border-top: 1px solid #49606a;
    padding-top: 12px;
  }

  .radar__readout span:first-child {
    padding-left: 0;
    border-left: 0;
  }

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

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

  .filters .button--reset {
    min-height: 52px;
  }

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

  .method__steps {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .method__steps article {
    min-height: 0;
    padding: 22px 10px;
    border-left: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .method__steps article:last-child {
    border-right: 0;
  }

  .method__steps article > span {
    margin-bottom: 20px;
  }

  .pricing__header,
  .pricing__ledger {
    grid-template-columns: 1fr;
  }

  .pricing__header {
    gap: 20px;
  }

  .pricing__ledger article {
    min-height: 0;
  }

  .pilot-band {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
  }

  .drawer-shell {
    grid-template-columns: 1fr;
  }

  .drawer-backdrop {
    display: none;
  }

  .detail-drawer {
    border-left: 0;
    border-top: 6px solid var(--water);
  }
}

@media (max-width: 520px) {
  .button {
    min-height: 48px;
  }

  .masthead__actions .button--brass {
    width: 118px;
  }

  .command-intro {
    padding-top: 30px;
  }

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

  .field--search {
    grid-column: auto;
  }

  .radar__readout span {
    min-width: 31%;
    padding-inline: 8px;
  }

  .data-alert {
    align-items: flex-start;
  }

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

  .detail-drawer__body {
    padding-inline: 18px;
  }

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

  .dialog-actions {
    flex-direction: column-reverse;
  }

  .country-fieldset {
    grid-template-columns: 1fr;
  }

  .sample-output li {
    grid-template-columns: 25px 1fr;
  }

  .sample-output li > span:last-child {
    grid-column: 2;
  }

  .dialog-actions .button {
    width: 100%;
  }

  .sample-upgrade {
    grid-template-columns: 1fr;
  }
}

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

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