:root {
  color-scheme: light;
  --paper: #f4efe2;
  --paper-bright: #fffdf5;
  --paper-deep: #e8dfca;
  --ink: #17212b;
  --ink-soft: #55616b;
  --ink-faint: #8a918f;
  --blue: #173f73;
  --blue-dark: #0e2c51;
  --blue-wash: #e6edf5;
  --red: #b33b32;
  --red-dark: #84281f;
  --green: #2f7056;
  --yellow: #f0c94b;
  --metal: #b7aa8a;
  --metal-dark: #706957;
  --line: rgba(23, 33, 43, 0.18);
  --line-soft: rgba(23, 33, 43, 0.1);
  --line-blue: rgba(23, 63, 115, 0.3);
  --shadow: 0 18px 45px rgba(77, 62, 35, 0.12);
  --shadow-small: 0 8px 20px rgba(77, 62, 35, 0.1);
  --focus: rgba(23, 63, 115, 0.35);
  font-family: "Libre Franklin", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(
      90deg,
      transparent 49.85%,
      rgba(255, 255, 255, 0.52) 50%,
      transparent 50.15%
    ) center / 280px 100%,
    radial-gradient(
    circle at 8% 4%,
    rgba(255, 255, 255, 0.92),
    transparent 28rem
  ),
    var(--paper);
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 245, 0.92);
  box-shadow: 0 5px 20px rgba(77, 62, 35, 0.05);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

.brand-mark {
  width: 52px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 3px;
  border: 2px solid var(--metal);
  border-radius: 7px;
  background: var(--paper-bright);
  box-shadow: inset 0 0 0 1px #fff, var(--shadow-small);
  transform: rotate(-2deg);
}

.brand-mark span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue);
  border-radius: 3px;
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 16px;
  font-weight: 500;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand small {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.topbar-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.wallet-menu {
  position: relative;
}

.wallet-menu-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: 180px;
  padding: 7px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 6px;
  background: var(--paper-bright);
  box-shadow: var(--shadow-small);
}

.wallet-menu-popover button {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

.wallet-menu-popover button:hover {
  color: var(--blue);
  background: var(--blue-wash);
}

.info-button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.info-button:hover,
.info-button.is-active {
  border-color: var(--blue);
  background: var(--blue-wash);
}

.wallet-error {
  max-width: 260px;
  color: var(--red-dark);
  font-size: 11px;
}

.wallet-button,
.primary-action {
  min-height: 44px;
  padding: 0 19px;
  border: 1px solid var(--blue-dark);
  border-radius: 5px;
  color: var(--paper-bright);
  background: var(--blue);
  box-shadow: 0 4px 0 var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wallet-button:hover,
.primary-action:hover:not(:disabled) {
  background: #1d4d88;
  transform: translateY(-1px);
  box-shadow: 0 6px 0 var(--blue-dark);
}

.wallet-button:active,
.primary-action:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--blue-dark);
}

.main-grid {
  min-height: calc(100vh - 122px);
}

.initial-loading {
  display: grid;
  place-items: center;
  padding: 62px clamp(24px, 5vw, 76px);
}

.initial-loading .loading-panel {
  width: min(100%, 760px);
  min-height: 210px;
}

.workspace {
  width: min(100%, 1440px);
  min-width: 0;
  margin: 0 auto;
  padding: 62px clamp(24px, 5vw, 76px) 64px;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
}

.hero-copy {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

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

.hero-copy h1,
.admin-intro h1 {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(46px, 6.2vw, 86px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.hero-copy > p:last-child,
.admin-intro > p:last-child {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.68;
}

.hero-plate {
  position: relative;
  display: grid;
  place-items: center;
  width: 470px;
  max-width: 100%;
  aspect-ratio: 2.1 / 1;
  min-height: 0;
  padding: 28px 30px;
  border: 5px solid var(--metal);
  border-radius: 18px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.018) 0 1px,
      transparent 1px 5px
    ),
    linear-gradient(145deg, #fff 0%, #f5f0e4 48%, #fffdf5 100%);
  box-shadow:
    inset 0 0 0 2px #fff,
    inset 0 0 0 4px rgba(23, 63, 115, 0.68),
    0 22px 35px rgba(77, 62, 35, 0.17);
  transform: rotate(3deg);
  animation: plate-arrive 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-plate small,
.hero-plate > span:last-child {
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.hero-plate-code {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  color: var(--ink-faint);
  font-family: "DM Mono", monospace;
  font-size: clamp(23px, 2.2vw, 34px);
  letter-spacing: 0;
  text-shadow: 0 1px 0 #fff, 0 2px 1px rgba(23, 33, 43, 0.18);
  animation: plate-code-change 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-plate-prefix {
  color: var(--ink);
  white-space: nowrap;
}

.hero-plate-ending {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  min-width: 0;
}

.hero-plate-ending > span {
  text-align: center;
}

.hero-plate-ending > .is-highlighted {
  color: var(--blue);
}

.plate-screw {
  position: absolute;
  z-index: 2;
  width: 8px;
  height: 8px;
  border: 1px solid #6d716f;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    #fff 0 12%,
    #a8aca8 38%,
    #5e625f 100%
  );
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.plate-screw-nw {
  top: 10px;
  left: 12px;
}

.plate-screw-ne {
  top: 10px;
  right: 12px;
}

.plate-screw-sw {
  bottom: 10px;
  left: 12px;
}

.plate-screw-se {
  right: 12px;
  bottom: 10px;
}

.search-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 310px);
  gap: 22px;
  align-items: stretch;
  margin: 58px 0 20px;
}

.search-instrument {
  position: relative;
  margin: 0;
  padding: 17px 38px 15px;
  border: 5px solid var(--metal);
  border-radius: 15px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.014) 0 1px,
      transparent 1px 6px
    ),
    var(--paper-bright);
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--blue), var(--shadow);
}

.availability-odometer {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px 18px;
  border: 4px solid #343a3a;
  border-radius: 16px;
  background: #d5d0c3;
  box-shadow:
    inset 0 0 0 2px #777a76,
    inset 0 0 18px rgba(0, 0, 0, 0.22),
    var(--shadow);
}

.odometer-label,
.odometer-unit {
  color: #343a3a;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-align: center;
}

.odometer-window {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  overflow: hidden;
  border: 3px solid #1e2425;
  border-radius: 6px;
  background: #13191a;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.8);
}

.odometer-window > span {
  min-width: 0;
  padding: 9px 1px;
  border-right: 1px solid #343b3b;
  color: #f3eee0;
  background: linear-gradient(#080b0c 0 46%, #293031 49% 52%, #080b0c 55%);
  font-family: "DM Mono", monospace;
  font-size: clamp(17px, 1.45vw, 23px);
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 5px rgba(255, 253, 245, 0.4);
}

.odometer-window > span:last-child {
  border-right: 0;
}

.search-plate-heading,
.search-plate-footer {
  display: flex;
  justify-content: space-between;
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.search-plate-footer {
  justify-content: center;
  padding-top: 6px;
}

.search-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 70px;
}

.search-prefix,
.search-state {
  font-family: "DM Mono", monospace;
}

.search-prefix {
  color: var(--ink-soft);
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.06em;
}

.search-state {
  min-width: 82px;
  color: var(--ink-faint);
  font-size: 10px;
  text-align: right;
  text-transform: uppercase;
}

.search-entry input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-family: "DM Mono", monospace;
  font-size: clamp(27px, 4.6vw, 54px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-entry input::placeholder {
  color: rgba(23, 33, 43, 0.18);
}

.search-entry input.is-long-value {
  font-size: clamp(23px, 3.7vw, 43px);
  letter-spacing: 0.045em;
}

.catalog-explorer {
  min-height: 360px;
}

.length-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 24px;
  padding: 0;
  border-bottom: 1px solid var(--line-soft);
}

.length-filter button {
  min-width: 68px;
  padding: 9px 12px 10px;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--ink-faint);
  background: transparent;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.length-filter button:hover,
.length-filter button.is-active {
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
}

.length-filter button span {
  display: block;
  font-family: "DM Mono", monospace;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-transform: uppercase;
}

.length-filter-divider {
  width: 1px;
  height: 22px;
  margin: 0 5px;
  background: var(--line);
}

.length-filter .length-filter-all {
  min-width: 58px;
  padding-inline: 10px;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-content {
  max-width: 760px;
  margin: 0 auto;
}

.catalog-content.has-selection {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: 32px;
  max-width: none;
  animation: catalog-expand 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.rules-column,
.inventory-column {
  min-width: 0;
}

.catalog-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.catalog-results-toolbar {
  display: grid;
  gap: 11px;
  margin-bottom: 14px;
}

.catalog-results-toolbar .catalog-panel-heading {
  margin-bottom: 0;
}

.catalog-sort {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.catalog-sort > span {
  color: var(--ink-faint);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-sort-trigger {
  min-width: 178px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 6px 4px 6px 10px;
  border: 0;
  border-bottom: 1px solid rgba(31, 74, 125, 0.28);
  border-radius: 0;
  color: var(--blue);
  background: transparent;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.catalog-sort-trigger:hover,
.catalog-sort-trigger[aria-expanded="true"] {
  border-color: var(--blue);
  background: rgba(31, 74, 125, 0.045);
}

.catalog-sort-trigger:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: inset 0 -1px 0 var(--blue);
}

.catalog-sort-chevron {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translate(-2px, -2px) rotate(45deg);
}

.catalog-sort-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  right: 0;
  width: 230px;
  padding: 4px;
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: 4px;
  background: rgba(239, 233, 218, 0.97);
  box-shadow: 0 8px 20px rgba(77, 62, 35, 0.11);
  backdrop-filter: blur(12px);
}

.catalog-sort-menu button {
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 3px;
  color: var(--ink-muted);
  background: transparent;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  text-align: left;
  cursor: pointer;
}

.catalog-sort-menu button:hover,
.catalog-sort-menu button.is-selected {
  color: var(--blue);
  background: rgba(255, 253, 245, 0.55);
}

.catalog-sort-menu button.is-selected::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 1px;
  margin: 0 7px 3px 0;
  background: currentColor;
}

.catalog-panel-heading h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.catalog-panel-heading span {
  color: var(--ink-faint);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}

.section-heading > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper-bright);
  background: var(--red);
  font-family: "DM Mono", monospace;
  font-size: 9px;
}

.section-heading h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rule-list,
.address-list {
  display: grid;
  gap: 9px;
}

.rule-list {
  max-height: 590px;
  padding-right: 6px;
  overflow: auto;
  scrollbar-color: var(--metal) transparent;
}

.address-list {
  max-height: 590px;
  padding-right: 6px;
  overflow: auto;
  scrollbar-color: var(--metal) transparent;
}

.infinite-scroll-sentinel {
  min-height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rule-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 253, 245, 0.72);
  box-shadow: 0 2px 0 rgba(77, 62, 35, 0.08);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 140ms ease,
    transform 140ms ease,
    background 140ms ease;
}

.rule-result:hover {
  border-color: var(--blue);
  background: var(--paper-bright);
  transform: translateX(3px);
}

.rule-result.is-selected {
  border-color: var(--blue);
  background: var(--blue-wash);
  box-shadow: inset 4px 0 0 var(--blue);
}

.rule-identity,
.rule-data {
  display: grid;
}

.rule-word {
  color: var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.rule-data {
  justify-items: end;
  color: var(--ink-faint);
  font-size: 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.rule-data strong {
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 15px;
}

.rule-data .sold-stamp {
  padding: 3px 7px;
  border: 2px solid var(--red-dark);
  border-radius: 3px;
  color: var(--red-dark);
  font-size: 11px;
  letter-spacing: 0.12em;
  transform: rotate(-4deg);
}

.address-select {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

.address-select:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
  border-radius: 14px;
}

.address-ribbon {
  position: relative;
  min-height: 170px;
  padding: 20px 34px 17px;
  border: 4px solid var(--metal);
  border-radius: 14px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.014) 0 1px,
      transparent 1px 6px
    ),
    linear-gradient(145deg, #fff 0%, #f2ede1 54%, #fffdf5 100%);
  box-shadow:
    inset 0 0 0 2px #fff,
    inset 0 0 0 4px rgba(23, 63, 115, 0.76),
    var(--shadow-small);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.address-select:hover .address-ribbon {
  transform: translateY(-3px) rotate(-0.25deg);
  box-shadow:
    inset 0 0 0 2px #fff,
    inset 0 0 0 4px var(--blue),
    0 15px 28px rgba(77, 62, 35, 0.17);
}

.address-ribbon.is-compact {
  min-height: 135px;
  padding: 15px 28px 13px;
  border-width: 3px;
  border-radius: 11px;
}

.plate-heading {
  display: flex;
  justify-content: space-between;
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.13em;
}

.plate-vanity {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  margin: 12px 0 11px;
  color: var(--ink);
  font-family: "DM Mono", monospace;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 0 #fff, 0 2px 1px rgba(23, 33, 43, 0.18);
}

.plate-abbreviated {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.plate-full-address {
  display: none;
  width: 100%;
  height: 34px;
  margin: 12px 0 11px;
  overflow: hidden;
}

.plate-full-address text {
  fill: var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 20px;
  font-weight: 500;
}

.plate-full-address .plate-full-suffix {
  fill: var(--blue);
}

@media (hover: hover) {
  .address-ribbon:hover .plate-vanity {
    display: none;
  }

  .address-ribbon:hover .plate-full-address {
    display: block;
  }

  .address-ribbon:hover .address-code {
    display: none;
  }
}

.plate-vanity strong {
  color: var(--blue);
  font-weight: 500;
}

.plate-dots {
  color: var(--ink-faint);
}

.address-ribbon.is-compact .plate-vanity {
  margin: 8px 0 7px;
  font-size: clamp(17px, 2.2vw, 26px);
}

.address-ribbon.has-long-suffix .plate-vanity {
  font-size: clamp(16px, 2.3vw, 27px);
  letter-spacing: 0.035em;
}

.address-ribbon.is-compact .plate-full-address {
  height: 28px;
  margin: 8px 0 7px;
}

.address-code {
  overflow: hidden;
  color: var(--ink-faint);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
}

.address-code strong {
  color: var(--blue);
  font-weight: 500;
}

.address-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 8px;
  color: var(--ink-faint);
  font-size: 8px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.status {
  color: var(--green);
  font-weight: 800;
}

.status-sold {
  color: var(--red);
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.metric {
  min-height: 105px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 253, 245, 0.67);
  box-shadow: 0 2px 0 rgba(77, 62, 35, 0.08);
}

.metric span,
.metric small {
  display: block;
  color: var(--ink-faint);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin: 12px 0 4px;
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 24px;
  font-weight: 500;
}

.admin-metrics .metric:last-child strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.4;
}

.transfer-note {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: center;
  margin: 28px 0 38px;
  padding: 16px;
  border: 1px solid var(--line-blue);
  border-radius: 8px;
  background: var(--blue-wash);
}

.transfer-note-number {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 3px double var(--red);
  border-radius: 50%;
  color: var(--red);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  transform: rotate(-6deg);
}

.transfer-note strong {
  color: var(--blue);
  font-size: 11px;
  text-transform: uppercase;
}

.transfer-note p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.recent-strip {
  min-width: 0;
  margin-top: 0;
}

.recent-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 52px;
}

.recent-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.recent-strip.is-vertical .recent-list {
  grid-template-columns: 1fr;
}

.empty-state,
.notice {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: rgba(255, 253, 245, 0.5);
  font-size: 12px;
  line-height: 1.58;
}

.notice {
  border-style: solid;
  border-color: var(--line-blue);
  background: var(--blue-wash);
}

.notice-error {
  margin-bottom: 20px;
  border-color: rgba(179, 59, 50, 0.35);
  color: var(--red-dark);
  background: #f8e9e4;
}

.loading-panel {
  min-height: 184px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(232, 223, 202, 0.45);
}

.speedometer-loader {
  display: inline-grid;
  justify-items: center;
  gap: 10px;
  vertical-align: middle;
}

.speedometer-loader > small {
  color: var(--ink-faint);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.speedometer-loader-dial {
  position: relative;
  width: 190px;
  height: 112px;
  overflow: hidden;
  border: 5px solid #343a3a;
  border-radius: 105px 105px 18px 18px;
  background:
    radial-gradient(circle at 50% 100%, #20292a 0 8%, transparent 8.5%),
    radial-gradient(circle at 50% 82%, #f9f3e5 0 48%, #e3dac5 72%);
  box-shadow:
    inset 0 0 0 2px var(--metal),
    inset 0 -12px 24px rgba(77, 62, 35, 0.15),
    0 8px 18px rgba(77, 62, 35, 0.16);
}

.speedometer-loader-ticks {
  position: absolute;
  inset: 10px 15px 0;
  border-radius: 100px 100px 0 0;
  background: repeating-conic-gradient(
    from 225deg at 50% 100%,
    var(--blue) 0 1deg,
    transparent 1deg 12deg
  );
  mask: radial-gradient(
    circle at 50% 100%,
    transparent 0 68%,
    #000 69% 76%,
    transparent 77%
  );
}

.speedometer-loader-needle {
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: 70px;
  height: 3px;
  border-radius: 3px;
  background: var(--red);
  box-shadow: 0 1px 2px rgba(77, 20, 14, 0.3);
  transform: rotate(200deg);
  transform-origin: 0 50%;
  animation: speedometer-sweep 1.25s ease-in-out infinite alternate;
}

.speedometer-loader-hub {
  position: absolute;
  left: 50%;
  bottom: 25px;
  width: 17px;
  height: 17px;
  border: 4px solid var(--metal);
  border-radius: 50%;
  background: var(--blue-dark);
  transform: translateX(-50%);
  box-shadow: 0 2px 4px rgba(23, 33, 43, 0.28);
}

.speedometer-loader-odometer {
  position: absolute;
  left: 50%;
  bottom: 9px;
  display: grid;
  grid-template-columns: repeat(5, 16px);
  gap: 1px;
  overflow: hidden;
  padding: 3px;
  border: 2px solid #343a3a;
  border-radius: 4px;
  background: #13191a;
  transform: translateX(-50%);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.75);
}

.odometer-loader-reel {
  height: 20px;
  overflow: hidden;
  border-right: 1px solid #343b3b;
  background: #080b0c;
}

.odometer-loader-reel:last-child {
  border-right: 0;
}

.odometer-loader-track {
  display: grid;
  animation: odometer-roll 1.15s steps(10) infinite;
}

.odometer-loader-reel:nth-child(2) .odometer-loader-track {
  animation-duration: 0.92s;
  animation-delay: -0.24s;
}

.odometer-loader-reel:nth-child(3) .odometer-loader-track {
  animation-duration: 0.68s;
  animation-delay: -0.41s;
}

.odometer-loader-reel:nth-child(4) .odometer-loader-track {
  animation-duration: 0.81s;
  animation-delay: -0.33s;
}

.odometer-loader-reel:nth-child(5) .odometer-loader-track {
  animation-duration: 1.04s;
  animation-delay: -0.57s;
}

.odometer-loader-track > span {
  height: 20px;
  display: grid;
  place-items: center;
  color: #f3eee0;
  background: linear-gradient(#080b0c 0 46%, #293031 49% 52%, #080b0c 55%);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  line-height: 1;
  text-shadow: 0 0 4px rgba(255, 253, 245, 0.45);
}

.tire-spinner {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: repeating-conic-gradient(
    #f8f1df 0 12deg,
    #8ea1b8 12deg 21deg
  );
  animation: tire-spin 0.72s linear infinite;
  box-shadow: inset 0 0 0 2px rgba(14, 44, 81, 0.52);
}

.tire-spinner-rim {
  width: 11px;
  height: 11px;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper-bright);
  border-radius: 50%;
  background: var(--blue-dark);
}

.tire-spinner-rim > span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--paper-bright);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  background: rgba(23, 33, 43, 0.48);
  backdrop-filter: blur(5px);
}

.claim-drawer {
  position: relative;
  width: min(560px, 100%);
  min-height: 100%;
  padding: 58px 34px 34px;
  border-left: 6px solid var(--blue);
  background:
    linear-gradient(rgba(23, 63, 115, 0.035) 1px, transparent 1px) 0 0 / 100%
    32px,
    var(--paper);
  box-shadow: -18px 0 50px rgba(23, 33, 43, 0.17);
  overflow: auto;
  animation: enter 260ms ease-out;
}

.claim-drawer h2 {
  margin-bottom: 24px;
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0.09em;
}

.drawer-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-bright);
  cursor: pointer;
  font-size: 23px;
}

.address-details {
  margin: 25px 0;
  border-top: 2px solid var(--ink);
}

.address-details > div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.address-details dt {
  color: var(--ink-faint);
  font-size: 10px;
  text-transform: uppercase;
}

.address-details dd {
  margin: 0;
  color: var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  text-align: right;
}

.asset-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 24px 0 13px;
}

.asset-toggle button {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-bright);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.asset-toggle button.is-active {
  border-color: var(--blue);
  color: var(--paper-bright);
  background: var(--blue);
}

.claim-drawer .primary-action {
  width: 100%;
  margin: 18px 0 12px;
}

.claim-handover {
  margin: 24px 0;
}

.searching-ticket,
.request-ticket-prompt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 180px;
  padding: 28px;
  border: 1px dashed var(--line-blue);
  border-radius: 8px;
  background: rgba(230, 237, 245, 0.58);
}

.searching-ticket h3,
.request-ticket-prompt h3 {
  margin: 4px 0 8px;
  font-size: 24px;
}

.searching-ticket p:last-child,
.request-ticket-prompt p:last-child {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.request-ticket-prompt {
  grid-template-columns: minmax(0, 1fr) auto;
  border-style: solid;
  border-left: 6px solid var(--red);
  background: rgba(255, 253, 245, 0.8);
}

.search-map {
  position: relative;
  width: 104px;
  height: 92px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(
      35deg,
      transparent 45%,
      var(--line-blue) 46% 48%,
      transparent 49%
    ),
    linear-gradient(
    -25deg,
    transparent 48%,
    var(--line) 49% 51%,
    transparent 52%
  ),
    var(--paper-bright);
  overflow: hidden;
}

.search-map span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 52px;
}

.search-map i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.search-map i:nth-of-type(1) {
  top: 20px;
  left: 18px;
}
.search-map i:nth-of-type(2) {
  right: 17px;
  bottom: 18px;
}
.search-map i:nth-of-type(3) {
  top: 14px;
  right: 27px;
}

.request-page,
.account-page {
  width: min(100%, 1440px);
  min-height: calc(100vh - 122px);
  margin: 0 auto;
  padding: 70px clamp(24px, 6vw, 86px) 90px;
}

.secure-page {
  width: min(100%, 1440px);
  min-height: calc(100vh - 122px);
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.secure-access-card {
  width: min(100%, 620px);
  padding: clamp(30px, 5vw, 48px);
  border: 1px solid var(--line);
  border-top: 6px solid var(--blue);
  border-radius: 9px;
  background: var(--paper-bright);
  box-shadow: var(--shadow);
}

.secure-access-card h1 {
  max-width: 480px;
  margin: 8px 0 16px;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.secure-access-card > p:not(.eyebrow) {
  max-width: 510px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.secure-access-card .primary-action {
  width: 100%;
  margin-top: 18px;
}

.secure-access-card .muted {
  margin-top: 14px;
}

.secure-account {
  display: block;
  width: fit-content;
  margin-top: 18px;
  padding: 7px 10px;
  border: 1px solid var(--line-blue);
  border-radius: 4px;
  color: var(--blue);
  background: var(--blue-wash);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ignition-key {
  height: 88px;
  display: flex;
  align-items: center;
  margin: 0 0 28px 8px;
  filter: drop-shadow(0 8px 8px rgba(77, 62, 35, 0.16));
  transform: rotate(-7deg);
  transform-origin: left center;
}

.ignition-key-bow {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 10px solid var(--metal-dark);
  border-radius: 50%;
  background: var(--paper-deep);
  box-shadow: inset 0 0 0 3px var(--metal), 0 0 0 2px var(--paper-bright);
}

.ignition-key-bow > i {
  width: 25px;
  height: 25px;
  border: 5px solid var(--blue);
  border-radius: 50%;
}

.ignition-key-stem {
  position: relative;
  width: 118px;
  height: 20px;
  margin-left: -4px;
  border: 3px solid var(--metal-dark);
  background: linear-gradient(#f7f1df, var(--metal));
}

.ignition-key-stem::after {
  position: absolute;
  top: -3px;
  right: -18px;
  width: 20px;
  height: 20px;
  border: 3px solid var(--metal-dark);
  border-left: 0;
  background: linear-gradient(#f7f1df, var(--metal));
  content: "";
}

.ignition-key-stem > i {
  position: absolute;
  right: 18px;
  bottom: -14px;
  width: 18px;
  height: 13px;
  border: 3px solid var(--metal-dark);
  border-top: 0;
  background: var(--metal);
}

.ignition-key-stem > i:last-child {
  right: 52px;
  height: 9px;
  bottom: -10px;
}

.request-intro {
  max-width: 820px;
  margin-bottom: 46px;
}

.request-intro h1,
.account-heading h1 {
  margin: 8px 0 20px;
  font-size: clamp(48px, 7vw, 88px);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.request-intro > p:last-child {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.request-order-form {
  display: grid;
  grid-template-columns: minmax(430px, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.request-plate-input {
  position: relative;
  display: grid;
  gap: 24px;
  min-height: 300px;
  padding: 42px 50px 35px;
  border: 6px solid var(--metal);
  border-radius: 18px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(23, 33, 43, 0.025) 0 2px,
      transparent 2px 8px
    ),
    var(--paper-bright);
  box-shadow: inset 0 0 0 2px var(--blue), var(--shadow);
  transform: rotate(-1deg);
}

.request-plate-input > small {
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-align: center;
}

.request-plate-input label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.request-plate-input label > span,
.request-plate-input input {
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: 0.08em;
}

.request-plate-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 2px solid var(--line-blue);
  background: transparent;
  text-transform: uppercase;
}

.request-plate-input input.is-long-value {
  font-size: clamp(24px, 3.8vw, 43px);
  letter-spacing: 0.04em;
}

.request-estimate {
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 8px;
  background: rgba(255, 253, 245, 0.82);
  box-shadow: var(--shadow-small);
}

.difficulty-gauge {
  height: 12px;
  margin-bottom: 25px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--red));
  overflow: hidden;
}

.difficulty-gauge span {
  display: block;
  width: 5px;
  height: 100%;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--paper-bright);
}

.difficulty-gauge .difficulty-moderate {
  margin-left: 22%;
}
.difficulty-gauge .difficulty-challenging {
  margin-left: 46%;
}
.difficulty-gauge .difficulty-hard {
  margin-left: 70%;
}
.difficulty-gauge .difficulty-very-hard {
  margin-left: calc(100% - 5px);
}

.request-estimate dl {
  margin: 0 0 22px;
  border-top: 2px solid var(--ink);
}

.request-estimate dl > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.request-estimate dt {
  color: var(--ink-faint);
  font-size: 10px;
  text-transform: uppercase;
}

.request-estimate dd {
  margin: 0;
  color: var(--blue);
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
}

.request-disclaimer {
  padding: 15px 17px;
  border: 1px dashed var(--metal-dark);
  background: var(--paper-deep);
}

.request-disclaimer strong {
  color: var(--red-dark);
  font-size: 10px;
  text-transform: uppercase;
}

.request-disclaimer p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.request-estimate .primary-action {
  width: 100%;
  margin-top: 20px;
}

.account-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 52px;
  border-bottom: 2px solid var(--ink);
}

.account-heading > span {
  padding-bottom: 28px;
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 11px;
}

.account-section {
  margin-bottom: 52px;
}

.account-section > h2 {
  margin-bottom: 20px;
  font-size: 26px;
}

.request-records,
.private-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.request-record {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 7px;
  background: rgba(255, 253, 245, 0.75);
}

.request-record > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.request-record > div:first-child strong {
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 24px;
}

.request-record p,
.request-record small {
  color: var(--ink-soft);
}

.request-record .private-address-grid {
  margin-top: 20px;
}

.request-address-scroll {
  max-height: 360px;
  padding-right: 6px;
  overflow-y: auto;
  scrollbar-color: var(--metal) transparent;
}

.request-address-scroll .infinite-scroll-sentinel,
.request-address-scroll .notice {
  grid-column: 1 / -1;
}

.request-address-loading {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.request-search-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 10px;
  width: fit-content;
  max-width: 100%;
  margin: 16px 0;
  padding: 13px 15px;
  border: 1px solid var(--line-blue);
  border-radius: 5px;
  background: var(--blue-wash);
}

.request-search-progress > strong {
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 19px;
}

.request-search-progress > span {
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.request-search-progress > small {
  grid-column: 1 / -1;
  font-size: 10px;
  line-height: 1.5;
}

.transaction-ledger {
  border-top: 2px solid var(--ink);
}

.transaction-ledger > div:not(.empty-state) {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  font-family: "DM Mono", monospace;
  font-size: 10px;
}

.transaction-ledger span {
  color: var(--red-dark);
  text-transform: uppercase;
}

.transaction-ledger a {
  color: var(--blue);
}

.request-settings-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-deep);
}

.request-settings-form > div span,
.request-settings-form > div small {
  display: block;
}

.request-settings-form > div span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.request-settings-form > div small {
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 8px;
}

.request-settings-form label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-faint);
  font-size: 9px;
}

.request-settings-form input {
  width: 62px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-bright);
}

.how-page {
  padding: 70px clamp(24px, 7vw, 110px) 90px;
}

.how-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(380px, 1.14fr);
  align-items: center;
  gap: clamp(45px, 8vw, 120px);
  max-width: 1450px;
  margin: 0 auto 100px;
}

.how-hero h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.how-hero > div:first-child > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.how-hero .primary-action {
  width: fit-content;
  margin-top: 32px;
}

.address-anatomy {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 42px 38px 34px;
  border: 5px solid var(--metal);
  border-radius: 18px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.018) 0 1px,
      transparent 1px 5px
    ),
    var(--paper-bright);
  box-shadow:
    inset 0 0 0 2px #fff,
    inset 0 0 0 4px rgba(23, 63, 115, 0.68),
    var(--shadow);
  transform: rotate(1.5deg);
}

.address-anatomy small,
.anatomy-caption {
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-align: center;
}

.address-anatomy strong {
  min-width: 0;
  font-family: "DM Mono", monospace;
  font-size: clamp(12px, 1.35vw, 20px);
  font-weight: 500;
  overflow-wrap: anywhere;
  text-align: center;
}

.address-anatomy strong > span {
  color: var(--ink-faint);
}

.address-anatomy strong > b {
  color: var(--blue);
  font-weight: 700;
}

.anatomy-caption {
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  line-height: 1.55;
}

.how-section,
.safety-card {
  max-width: 1180px;
  margin: 0 auto 100px;
}

.how-section-heading {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--ink);
}

.how-section-heading > span {
  color: var(--red);
  font-family: "DM Mono", monospace;
  font-size: 26px;
}

.how-section-heading .eyebrow {
  margin-bottom: 10px;
}

.how-section h2,
.safety-card h2 {
  margin-bottom: 0;
  font-size: clamp(31px, 4vw, 52px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.section-intro {
  max-width: 800px;
  margin: 30px 0 42px 84px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.rarity-meter {
  display: grid;
  gap: 9px;
  margin-left: 84px;
}

.rarity-step {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 145px 160px;
  align-items: center;
  gap: 18px;
}

.rarity-bar {
  position: relative;
  height: 18px;
}

.rarity-bar > span {
  display: block;
  height: 18px;
  border: 2px solid var(--blue-dark);
  border-radius: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--blue) 0 12px,
    var(--blue-dark) 12px 14px
  );
}

.rarity-bar.is-overflow > span {
  width: 100%;
}

.rarity-bar.is-overflow::after {
  position: absolute;
  top: 4px;
  right: 8px;
  color: var(--paper-bright);
  content: "CONTINUES  ›";
  font-family: "DM Mono", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.rarity-step strong,
.rarity-step small {
  font-family: "DM Mono", monospace;
  font-size: 10px;
}

.rarity-step small {
  color: var(--ink-soft);
  text-align: right;
}

.claim-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 38px 0 0 84px;
}

.claim-steps article {
  min-height: 230px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 7px;
  background: var(--paper-bright);
  box-shadow: var(--shadow-small);
}

.claim-steps article > span {
  color: var(--red);
  font-family: "DM Mono", monospace;
  font-size: 22px;
}

.claim-steps h3 {
  margin: 32px 0 12px;
  font-size: 20px;
  text-transform: uppercase;
}

.claim-steps p {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.safety-card {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 38px;
  border: 1px solid var(--line-blue);
  border-radius: 10px;
  background: var(--blue-wash);
}

.safety-card .transfer-note-number {
  width: 88px;
  height: 88px;
}

.safety-card > div > p:last-child {
  max-width: 850px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.muted {
  display: block;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.admin-shell {
  min-height: calc(100vh - 122px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
  padding: 80px clamp(24px, 7vw, 110px);
}

.admin-intro h1 {
  max-width: 760px;
}

.admin-shell:has(.admin-workspace) {
  display: block;
  padding-top: 56px;
}

.admin-intro-authenticated {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
  border-bottom: 2px solid var(--ink);
}

.admin-intro-authenticated h1 {
  margin-bottom: 28px;
  font-size: clamp(44px, 6vw, 76px);
}

.admin-session-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 32px;
  font-family: "DM Mono", monospace;
  font-size: 10px;
}

.admin-session-line span {
  color: var(--blue);
}

.admin-session-line button,
.admin-module button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-soft);
  background: var(--paper-bright);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.admin-workspace {
  display: grid;
  gap: 24px;
}

.admin-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-module {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 245, 0.75);
  box-shadow: var(--shadow-small);
}

.price-module {
  min-height: 520px;
}

.rules-module {
  min-height: 620px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.price-grid form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--paper);
}

.price-grid label {
  color: var(--ink-faint);
  font-size: 9px;
  text-transform: uppercase;
}

.price-fields {
  display: grid;
  gap: 8px;
}

.price-fields > label {
  display: grid;
  gap: 4px;
}

.price-fields > label > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-grid input,
.rule-create input,
.rule-create select,
.rule-bulk select,
.rule-bulk textarea {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper-bright);
}

.admin-rule-tools input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper-bright);
}

.price-grid input {
  width: 94px;
  padding: 7px;
  font-family: "DM Mono", monospace;
}

.price-fields span {
  color: var(--ink-faint);
  font-size: 8px;
}

.price-grid form > button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.rule-create {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 140px auto;
  gap: 8px;
  margin-bottom: 18px;
}

.rule-create input,
.rule-create select {
  padding: 11px 12px;
}

.rule-bulk {
  display: grid;
  gap: 9px;
  margin-bottom: 22px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-deep);
}

.rule-bulk > div:first-child,
.rule-bulk-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.rule-bulk label,
.rule-bulk small,
.rule-bulk p {
  color: var(--ink-faint);
  font-size: 9px;
}

.admin-rule-tools {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.admin-rule-tools label,
.admin-rule-tools span {
  color: var(--ink-faint);
  font-size: 9px;
  text-transform: uppercase;
}

.admin-rule-tools input {
  padding: 10px 12px;
  font-family: "DM Mono", monospace;
}

.rule-bulk select {
  padding: 7px 10px;
}

.rule-bulk textarea {
  min-height: 150px;
  padding: 12px;
  resize: vertical;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  line-height: 1.55;
}

.rule-bulk p {
  margin: 0;
  color: var(--green);
}

.admin-rule-list {
  max-height: 620px;
  overflow: auto;
  border-top: 2px solid var(--ink);
}

.admin-rule-header,
.admin-rule-row {
  display: grid;
  grid-template-columns: minmax(100px, 1.4fr) 90px 72px 72px 72px;
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line-soft);
}

.admin-rule-header {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--paper-bright);
  background: var(--blue);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-rule-row {
  color: var(--ink-soft);
  font-size: 10px;
}

.admin-rule-row strong {
  overflow: hidden;
  color: var(--blue);
  font-family: "DM Mono", monospace;
  text-overflow: ellipsis;
}

.admin-rule-row button {
  color: var(--ink-faint);
  font-family: "DM Mono", monospace;
  font-size: 8px;
}

.admin-rule-row button.is-enabled {
  border-color: var(--green);
  color: var(--green);
  background: #e9f2ec;
}

.admin-rule-empty {
  padding: 24px 8px;
  color: var(--ink-faint);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  text-align: center;
}

.admin-scroll-sentinel {
  position: relative;
  min-height: 52px;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-deep);
  box-shadow: var(--shadow-small);
}

.admin-tabs button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 13px 16px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--ink-faint);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-tabs button:last-child {
  border-right: 0;
}

.admin-tabs button small {
  padding: 3px 5px;
  border-radius: 3px;
  color: var(--paper-bright);
  background: var(--ink-faint);
  font-family: "DM Mono", monospace;
  font-size: 7px;
}

.admin-tabs button.is-active {
  color: var(--blue);
  background: var(--paper-bright);
  box-shadow: inset 0 -3px 0 var(--red);
}

.admin-tabs button.is-active small {
  background: var(--blue);
}

.admin-module-heading {
  margin-bottom: 20px;
}

.admin-audit-module,
.admin-actions-module {
  min-height: 560px;
}

.admin-search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.admin-search-field > span {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-search-field input {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: var(--paper-bright);
  font-family: "DM Mono", monospace;
}

.admin-ledger {
  overflow-x: auto;
  border-top: 2px solid var(--ink);
}

.admin-ledger-header,
.admin-ledger-row {
  display: grid;
  grid-template-columns: 145px 80px minmax(150px, 1fr) 125px 100px 105px;
  gap: 12px;
  min-width: 820px;
  align-items: center;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-soft);
}

.admin-ledger-header {
  color: var(--paper-bright);
  background: var(--blue);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-ledger-row {
  color: var(--ink-soft);
  font-family: "DM Mono", monospace;
  font-size: 9px;
}

.admin-ledger-row strong,
.admin-ledger-row a {
  color: var(--blue);
}

.admin-request-ledger .admin-ledger-header,
.admin-request-ledger .admin-ledger-row {
  grid-template-columns: 145px 100px 145px 100px 145px 145px;
}

.admin-load-more {
  display: block;
  margin: 20px auto 0;
  padding: 10px 22px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-action-warning {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid var(--line-blue);
  border-radius: 7px;
  background: var(--blue-wash);
}

.admin-action-warning strong {
  color: var(--blue);
  text-transform: uppercase;
}

.admin-action-warning p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.admin-address-results {
  display: grid;
  gap: 8px;
}

.admin-address-results article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--paper);
}

.admin-address-results article > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.admin-address-results article strong {
  color: var(--blue);
  font-family: "DM Mono", monospace;
}

.admin-address-results article span,
.admin-address-results article small {
  overflow: hidden;
  color: var(--ink-faint);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  text-overflow: ellipsis;
}

.admin-claim-receipt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(180px, auto);
  gap: 18px;
  align-items: center;
  margin: 20px 0;
  padding: 20px;
  border: 2px solid var(--green);
  border-radius: 8px;
  background: #edf5ef;
}

.admin-claim-receipt > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.admin-claim-receipt small {
  color: var(--ink-faint);
  font-size: 8px;
  text-transform: uppercase;
}

.admin-claim-receipt strong,
.admin-claim-receipt code {
  overflow: hidden;
  color: var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  text-overflow: ellipsis;
}

.admin-claim-receipt code {
  grid-column: 2 / -1;
  padding: 10px;
  border-radius: 4px;
  background: var(--paper-bright);
}

.admin-claim-history {
  margin-top: 34px;
  border-top: 2px solid var(--ink);
}

.admin-claim-history h3 {
  margin: 0;
  padding: 14px 10px;
  color: var(--paper-bright);
  background: var(--blue);
  font-size: 10px;
  text-transform: uppercase;
}

.admin-claim-history > div:not(.empty-state) {
  display: grid;
  grid-template-columns: 150px minmax(120px, 1fr) 140px 130px;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-faint);
  font-family: "DM Mono", monospace;
  font-size: 9px;
}

.admin-claim-history strong {
  color: var(--blue);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  background: var(--paper-bright);
  font-family: "DM Mono", monospace;
  font-size: 9px;
}

.footer-network {
  color: var(--blue);
  font-weight: 500;
}

@keyframes odometer-roll {
  to {
    transform: translateY(-200px);
  }
}

@keyframes speedometer-sweep {
  from {
    transform: rotate(200deg);
  }

  to {
    transform: rotate(340deg);
  }
}

@keyframes tire-spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes enter {
  from {
    transform: translateX(45px);
    opacity: 0;
  }
}

@keyframes plate-arrive {
  from {
    transform: translateY(25px) rotate(6deg);
    opacity: 0;
  }
}

@keyframes plate-code-change {
  from {
    transform: translateY(7px);
    opacity: 0;
  }
}

@keyframes catalog-expand {
  from {
    transform: translateY(8px);
    opacity: 0.72;
  }
}

@media (max-width: 1120px) {
  .hero-stage {
    grid-template-columns: minmax(0, 1fr) 390px;
  }

  .hero-plate {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .search-dashboard {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .recent-strip.is-vertical .recent-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .length-filter {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .length-filter button {
    min-width: 76px;
  }

  .how-hero {
    grid-template-columns: 1fr;
  }

  .address-anatomy {
    max-width: 720px;
  }

  .claim-steps {
    grid-template-columns: 1fr 1fr;
  }

  .request-order-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    background: var(--paper);
  }

  .topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px 16px;
  }

  .topbar-actions {
    gap: 7px;
  }

  .info-button {
    padding-inline: 10px;
    font-size: 8px;
  }

  .brand strong {
    font-size: 11px;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 45px;
    height: 30px;
  }

  .topbar nav button {
    flex: 1;
  }

  .wallet-error {
    display: none;
  }

  .wallet-button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 9px;
  }

  .wallet-menu {
    display: flex;
    flex: 1;
  }

  .wallet-menu .wallet-button {
    flex: 1;
  }

  .workspace {
    padding: 46px 16px 42px;
  }

  .hero-stage {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .admin-intro h1 {
    font-size: 49px;
  }

  .hero-plate {
    width: min(380px, 92%);
    justify-self: center;
  }

  .search-dashboard {
    grid-template-columns: 1fr;
    margin: 42px 0 18px;
  }

  .search-instrument {
    padding: 17px 30px 14px;
  }

  .availability-odometer {
    width: min(100%, 340px);
    justify-self: center;
  }

  .search-entry {
    grid-template-columns: auto 1fr;
    gap: 9px;
  }

  .search-state {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .search-prefix {
    font-size: 21px;
  }

  .search-entry input {
    font-size: clamp(25px, 9vw, 35px);
    letter-spacing: 0.045em;
  }

  .search-entry input.is-long-value {
    font-size: clamp(17px, 5.5vw, 24px);
    letter-spacing: 0.025em;
  }

  .catalog-content {
    grid-template-columns: 1fr;
  }

  .catalog-content.has-selection {
    grid-template-columns: 1fr;
  }

  .catalog-sort {
    justify-content: space-between;
  }

  .rule-list {
    max-height: 310px;
  }

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

  .recent-list,
  .recent-strip.is-vertical .recent-list {
    grid-template-columns: 1fr;
  }

  .recent-dashboard {
    grid-template-columns: 1fr;
  }

  .address-ribbon {
    min-height: 150px;
    padding-inline: 28px;
  }

  .claim-drawer {
    padding-inline: 20px;
  }

  .address-details > div {
    grid-template-columns: 115px 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 50px 16px;
  }

  .admin-intro-authenticated {
    display: block;
  }

  .admin-session-line {
    padding-bottom: 22px;
  }

  .admin-workspace {
    gap: 18px;
  }

  .admin-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .admin-tabs {
    grid-template-columns: 1fr;
  }

  .admin-tabs button {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-tabs button:last-child {
    border-bottom: 0;
  }

  .rule-create {
    grid-template-columns: 1fr;
  }

  .rule-bulk > div:first-child,
  .rule-bulk-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-rule-tools {
    grid-template-columns: 1fr auto;
  }

  .admin-rule-tools label {
    grid-column: 1 / -1;
  }

  .admin-rule-header,
  .admin-rule-row {
    grid-template-columns: minmax(90px, 1fr) 64px 58px 58px;
  }

  .admin-rule-header span:nth-child(2),
  .admin-rule-row > span:nth-child(2) {
    display: none;
  }

  .admin-search-field,
  .admin-action-warning,
  .admin-claim-receipt,
  .admin-address-results article {
    grid-template-columns: 1fr;
  }

  .admin-claim-receipt code {
    grid-column: auto;
  }

  .admin-claim-history > div:not(.empty-state) {
    grid-template-columns: 1fr 1fr;
  }

  footer {
    flex-direction: column;
  }

  .how-page {
    padding: 50px 16px 70px;
  }

  .how-hero {
    gap: 44px;
    margin-bottom: 70px;
  }

  .how-hero h1 {
    font-size: 49px;
  }

  .address-anatomy {
    padding: 36px 22px 28px;
  }

  .how-section,
  .safety-card {
    margin-bottom: 70px;
  }

  .how-section-heading {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .section-intro,
  .rarity-meter,
  .claim-steps {
    margin-left: 0;
  }

  .rarity-step {
    grid-template-columns: minmax(80px, 1fr) 105px 86px;
    gap: 9px;
  }

  .claim-steps {
    grid-template-columns: 1fr;
  }

  .claim-steps article {
    min-height: 0;
  }

  .safety-card {
    grid-template-columns: 1fr;
  }

  .request-page,
  .account-page {
    padding: 50px 16px 70px;
  }

  .request-plate-input {
    min-height: 240px;
    padding: 36px 30px 30px;
  }

  .request-records,
  .private-address-grid {
    grid-template-columns: 1fr;
  }

  .account-heading {
    display: block;
  }

  .account-heading > span {
    display: block;
  }

  .transaction-ledger > div:not(.empty-state) {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .transaction-ledger a {
    grid-column: 2;
  }

  .request-settings-form {
    grid-template-columns: 1fr auto;
  }

  .request-settings-form > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    justify-content: stretch;
  }

  .topbar-actions > button {
    flex: 1;
  }

  .searching-ticket,
  .request-ticket-prompt {
    grid-template-columns: 1fr;
  }

  .search-map {
    width: 100%;
  }

  .request-plate-input label > span,
  .request-plate-input input {
    font-size: clamp(24px, 8vw, 38px);
  }

  .request-plate-input input.is-long-value {
    font-size: clamp(17px, 5.2vw, 25px);
    letter-spacing: 0.025em;
  }

  .request-intro h1,
  .account-heading h1 {
    font-size: 46px;
  }

  .hero-plate {
    width: 100%;
    padding-inline: 22px;
  }

  .hero-plate-code {
    gap: 5px;
    font-size: clamp(18px, 5.5vw, 25px);
  }

  .length-filter {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .length-filter button {
    min-width: 64px;
    padding-inline: 10px;
  }

  .catalog-sort {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-sort-trigger {
    width: 100%;
  }

  .catalog-sort-menu {
    width: min(230px, calc(100vw - 32px));
  }

  .rarity-step {
    grid-template-columns: 1fr auto;
  }

  .rarity-bar {
    grid-column: 1 / -1;
  }

  .rarity-bar.is-overflow::after {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .odometer-loader-track {
    animation: none !important;
    transform: translateY(-40px);
  }

  .speedometer-loader-needle {
    animation: none !important;
    transform: rotate(280deg);
  }

  .tire-spinner {
    animation: none !important;
  }
}
