:root {
  --ink: #050805;
  --ink-2: #0c140c;
  --ivory: #d8ffd4;
  --ivory-2: #b6f0b0;
  --muted: #79c484;
  --quiet: #3f8a4c;
  --line: rgba(90, 255, 70, 0.18);
  --line-strong: rgba(90, 255, 70, 0.45);
  --phos: #5dff45;
  --phos-dim: #0e2c16;
  --amber: #e6c15a;
  --cyan: var(--phos);
  --lime: var(--phos);
  --magenta: var(--amber);
  --cinnabar: var(--phos);
  --sage: var(--phos);
  --pixel: "VT323", ui-monospace, monospace;
  --serif: "VT323", ui-monospace, monospace;
  --sans: "VT323", ui-monospace, monospace;
  --mono: "VT323", ui-monospace, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

html { background: var(--ink); }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(880px 380px at 100% -20%, rgba(80, 255, 60, 0.07), transparent 60%),
    var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  z-index: 8;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--phos);
  box-shadow: 0 0 12px rgba(93, 255, 69, 0.7);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  z-index: 7;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0, 0, 0, 0.22) 2px 3px
  );
}

::selection { background: var(--phos); color: var(--ink); }

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

button { background: none; border: 0; padding: 0; cursor: pointer; }

a { color: inherit; }

img { max-width: 100%; display: block; }

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

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 9;
  background: var(--ivory);
  color: var(--ink);
  padding: 8px 12px;
  text-decoration: none;
}

.skip:focus { top: 12px; }

.kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Header */

.top {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: none;
  padding: 16px 28px 14px 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.logo {
  width: 112px;
  height: 112px;
  flex: none;
  display: block;
}

.mark {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 0.9;
}

.mark::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 13px;
  margin-left: 8px;
  background: var(--phos);
  vertical-align: -1px;
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.tag {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag::before { content: "// "; color: var(--quiet); }

.nav { display: flex; gap: 20px; }

.nav button {
  font-size: 15px;
  color: var(--muted);
  padding: 6px 0;
}

.nav button[aria-current="page"] {
  color: var(--ink);
  background: var(--phos);
  padding: 2px 8px;
}

.nav button:hover { color: var(--ivory); }

.top-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.traveling {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

#agent-name,
#agent-edit {
  color: var(--ivory);
  border-bottom: 1px solid var(--line-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--mono);
  font-size: 11px;
  background: transparent;
  border-radius: 0;
  padding: 0 0 1px;
}

#agent-name { width: auto; white-space: nowrap; }
#agent-edit { width: 9em; }

.purse {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  font-family: var(--mono);
  font-style: normal;
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.purse.is-down { color: var(--magenta); }
.purse.is-up { color: var(--lime); }

.purse abbr {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--muted);
}

.solid {
  display: inline-block;
  background: transparent;
  color: var(--phos);
  padding: 6px 12px 4px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  line-height: 1;
  border: 1px solid var(--phos);
  box-shadow: 0 0 14px rgba(93, 255, 69, 0.22);
}

.solid:hover {
  background: var(--phos);
  color: var(--ink);
  box-shadow: 0 0 18px rgba(93, 255, 69, 0.45);
}

.solid:disabled,
.solid[aria-disabled="true"] {
  background: transparent;
  color: var(--quiet);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: not-allowed;
}

.texty {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.texty:hover { color: var(--ivory); }

/* Road */

.road {
  position: relative;
  flex: none;
  height: 104px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1.2px 1.2px at 7% 28%, rgba(255, 255, 255, 0.9), transparent 70%),
    radial-gradient(1px 1px at 18% 68%, rgba(180, 255, 160, 0.8), transparent 70%),
    radial-gradient(1.4px 1.4px at 31% 22%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(1px 1px at 46% 74%, rgba(120, 255, 90, 0.75), transparent 70%),
    radial-gradient(1.2px 1.2px at 63% 30%, rgba(255, 255, 255, 0.65), transparent 70%),
    radial-gradient(1px 1px at 78% 62%, rgba(180, 255, 160, 0.7), transparent 70%),
    radial-gradient(1.3px 1.3px at 91% 26%, rgba(255, 255, 255, 0.8), transparent 70%),
    var(--ink);
}

.road svg {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 6px;
  width: calc(100% - 56px);
  height: 64px;
}

.track,
.thread {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.track {
  stroke: rgba(80, 255, 70, 0.28);
  stroke-width: 7;
}

.thread {
  stroke: #d8ffc8;
  stroke-width: 2;
  stroke-dasharray: 10 16;
  filter: drop-shadow(0 0 4px #5dff45);
  animation: drift 14s linear infinite;
}

@keyframes drift {
  to { stroke-dashoffset: -280; }
}

.station {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
}

.station i {
  position: absolute;
  left: 0;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: #f4fff2;
  box-shadow: 0 0 8px #5dff45;
}

.station.is-house i {
  background: #fff;
  box-shadow: 0 0 8px #fff, 0 0 14px #5dff45;
}

.station.is-hot i { box-shadow: 0 0 0 4px rgba(93, 255, 69, 0.28), 0 0 12px #5dff45; }

.station span {
  position: absolute;
  bottom: 10px;
  left: 0;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.traveler {
  position: absolute;
  z-index: 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff, 0 0 16px #5dff45;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Shell */

.shell {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
}

.market {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.toolbar {
  flex: none;
  padding: 14px 22px 10px 28px;
  border-bottom: 1px solid var(--line);
}

.cats {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 10px;
}

.cats::-webkit-scrollbar { display: none; }

.cats button {
  flex: none;
  padding: 4px 0 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--quiet);
  border-bottom: 1px solid transparent;
}

.cats button[aria-current="true"] {
  color: var(--ink);
  background: var(--phos);
  border-bottom-color: transparent;
  padding: 2px 6px;
}

.cats button:hover { color: var(--ivory); }

.tools-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search input,
.sort select,
.field input,
.field textarea,
.field select {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line-strong);
}

.search input {
  width: min(240px, 36vw);
  padding: 6px 0;
}

.search input::placeholder { color: var(--quiet); }

.count {
  margin: 0;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sort {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sort select {
  border: 0;
  padding: 4px 0;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ivory);
}

.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
  border-bottom: 1px solid var(--cinnabar);
  padding-bottom: 2px;
}

.list {
  overflow: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #245c34 transparent;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px 88px 112px;
  gap: 8px 12px;
  width: 100%;
  text-align: left;
  padding: 15px 22px 15px 26px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  color: inherit;
}

.row:hover { background: rgba(109, 255, 145, 0.06); }

.row[aria-current="true"] {
  background: var(--phos);
  color: var(--ink);
  box-shadow: none;
}

.row[aria-current="true"] .row-summary,
.row[aria-current="true"] .row-vendor,
.row[aria-current="true"] .row-meta,
.row[aria-current="true"] .row-kicker,
.row[aria-current="true"] .row-ask,
.row[aria-current="true"] .row-ask small,
.row[aria-current="true"] .seal {
  color: var(--ink);
  stroke: var(--ink);
}

.row.is-gone .row-title { color: var(--muted); }

.row-main { min-width: 0; }

.row-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiet);
}

.row-title {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.row-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.4;
}

.row-vendor {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.row-vendor em {
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--quiet);
  text-align: right;
}

.row.is-gone .row-meta { color: var(--magenta); }

.row-ask {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.row-ask small,
.row-ask em {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--quiet);
}

.row-ask small { display: inline; margin-left: 4px; }

.seal {
  width: 22px;
  height: 22px;
  flex: none;
  stroke: var(--ivory);
  fill: none;
  stroke-width: 2;
  shape-rendering: crispEdges;
}

.empty {
  margin: 0;
  padding: 28px;
  color: var(--muted);
}

.empty button {
  color: var(--ivory);
  border-bottom: 1px solid var(--cinnabar);
}

/* Stage */

.stage {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 26px 32px 72px;
  border-left: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: #245c34 transparent;
  background: var(--ink-2);
}

.shell[data-view="caravans"] .market,
.shell[data-view="ledger"] .market,
.shell[data-view="compose"] .market { display: none; }

.shell[data-view="caravans"],
.shell[data-view="ledger"],
.shell[data-view="compose"] { grid-template-columns: 1fr; }

.shell[data-view="caravans"] .stage,
.shell[data-view="ledger"] .stage,
.shell[data-view="compose"] .stage {
  border-left: 0;
  background: var(--ink);
}

.measure { max-width: 760px; }

.hero {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 6px 0 8px;
}

.hero-mark {
  width: 188px;
  height: 188px;
  flex: none;
  display: block;
}

.dek {
  margin: 0;
  max-width: 16em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.2;
  color: var(--ivory-2);
}

.floor-head,
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.tick { padding: 13px 0; }

.tick-line {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.tape .tick .tick-line { color: #4e8f62; font-size: clamp(20px, 2vw, 26px); }

.tape .tick:nth-child(2) .tick-line,
.tape .tick:nth-child(3) .tick-line { color: #8ee0a4; font-size: clamp(22px, 2.2vw, 28px); }

.tape .tick:first-child .tick-line {
  color: var(--ivory);
  font-size: clamp(32px, 3.4vw, 46px);
}

.who, .what { font-style: italic; }

.tick-meta {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--quiet);
}

.tick-note .tick-line { font-style: italic; }

.ledger-tape .tick {
  padding: 16px 0 16px 12px;
  border-bottom: 1px solid var(--line);
}

.ledger-tape .tick-line {
  color: var(--ivory);
  font-size: clamp(26px, 3vw, 34px);
}

.ledger-tape .tick.is-mine { box-shadow: inset 2px 0 0 var(--lime); }

.colophon {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: 40em;
}

.colophon h2,
.page-title,
.detail-title,
.caravan h2,
.bill-no,
.pv-title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.colophon h2 {
  margin: 0 0 8px;
  font-style: italic;
  font-size: 28px;
}

.colophon ol,
.prose,
.lede,
.creed,
.fine,
.bill dd,
.bolt {
  color: var(--ivory-2);
}

.colophon ol { margin: 0 0 12px; padding-left: 18px; }

.colophon li { margin: 6px 0; }

.colophon p,
.lede,
.fine {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

.page-title {
  margin: 0;
  font-family: var(--mono);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.page-head { margin-bottom: 18px; display: block; }

.ledger-tools { margin: -6px 0 18px; }

.lede { max-width: 38em; margin-top: 10px; }

.back { display: inline-block; margin-bottom: 16px; }

.detail-kicker {
  display: flex;
  gap: 14px;
  align-items: center;
}

.detail-title {
  margin: 8px 0 14px;
  font-family: var(--mono);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 0.95;
  letter-spacing: 0;
}

.vendor-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.vendor-line .seal { width: 28px; height: 28px; }

.detail-price {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 42px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.detail-price small {
  margin-left: 6px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.unit-line {
  margin: 6px 0 0;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prose {
  margin: 18px 0 0;
  max-width: 40em;
  font-size: 16px;
  line-height: 1.55;
}

.section-label {
  margin: 22px 0 0;
}

.bolt { list-style: none; margin: 8px 0 0; padding: 0; }

.bolt li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}

.bolt li::before { content: "—  "; color: var(--cyan); }

.review { margin: 14px 0 0; padding: 0; }

.review p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
}

.review footer {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--quiet);
}

.offer { display: block; margin-top: 20px; }

.offer input[type="range"] {
  width: min(100%, 360px);
  margin: 12px 0 8px;
  accent-color: var(--cinnabar);
}

.offer-read {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  font-variant-numeric: tabular-nums;
}

.offer-read span {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.buy { margin-top: 18px; }

.buy .solid { padding: 8px 14px 6px; font-size: 22px; }

.notice {
  margin: 12px 0 0;
  max-width: 38em;
  color: var(--magenta);
  font-size: 15px;
  line-height: 1.4;
}

.notice:empty { display: none; }

.beats { list-style: none; margin: 8px 0 0; padding: 0; }

.beats li {
  position: relative;
  padding: 6px 0 6px 16px;
  color: var(--quiet);
}

.beats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: currentColor;
}

.beats li.on { color: var(--ivory); }
.beats li.on::before { background: var(--phos); }
.beats li.done { color: var(--muted); }

.beat-copy {
  margin: 12px 0 0;
  max-width: 16em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
}

.bill {
  margin: 8px 0 0;
  padding: 20px 20px 16px;
  border: 1px solid var(--phos);
  background: var(--ink);
  box-shadow: 0 0 18px rgba(93, 255, 69, 0.16);
}

.bill-no {
  margin: 6px 0 14px;
  font-style: italic;
  font-size: 40px;
  line-height: 1;
}

.bill dl { margin: 0; }

.bill dl > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.bill dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiet);
}

.bill dd { margin: 0; }

.bill-end {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
}

.caravan {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 72px 110px auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.caravan .seal { width: 36px; height: 36px; }

.caravan h2 {
  margin: 0;
  font-style: italic;
  font-size: 32px;
  line-height: 1;
}

.creed { margin: 4px 0 0; font-size: 14px; }

.rep, .settled-n {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rep {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1;
}

.rep small, .settled-n {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--quiet);
}

.field { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 10px 0;
}

.field textarea {
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--cinnabar); outline: none; }

.preview {
  margin: 8px 0 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pv-title {
  margin: 6px 0;
  font-style: italic;
  font-size: 36px;
  line-height: 1;
}

.pv-sum { margin: 0; color: var(--muted); max-width: 40em; }

.pv-ask {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
}

.form-err {
  min-height: 1.2em;
  margin: 0 0 8px;
  color: var(--magenta);
}

.noscript, .missing {
  max-width: 36em;
  margin: 12vh auto;
  padding: 0 24px;
}

.missing h1 {
  font-family: var(--mono);
  font-weight: 400;
  font-style: normal;
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0;
}

.hint-keys {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tools-row { flex-wrap: wrap; }

.colophon strong { color: var(--ivory); font-weight: 500; }

.missing .logo { margin-bottom: 18px; }
.missing .solid { margin-top: 22px; }

@media (max-width: 1100px) {
  .station span { display: none; }
  .station.is-house span { display: block; }
  .row { grid-template-columns: minmax(0, 1fr) 120px 108px; }
  .row-meta { display: none; }
}

@media (max-width: 860px) {
  body { display: block; height: auto; overflow: auto; }
  .shell, .market, .list, .stage { display: block; height: auto; overflow: visible; }
  .shell { grid-template-columns: 1fr; }
  .stage { border-left: 0; border-top: 1px solid var(--line); }
  .top { flex-wrap: wrap; align-items: center; }
  .logo { width: 88px; height: 88px; }
  .hero { align-items: flex-start; }
  .hero-mark { width: 148px; height: 148px; }
  .top-tools { width: 100%; justify-content: space-between; flex-wrap: wrap; row-gap: 12px; }
  .hint-keys { display: none; }
  .sort { margin-left: 0; }
  .cats { flex-wrap: wrap; row-gap: 2px; }
  .row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "main ask"
      "vendor vendor"
      "meta meta";
    align-items: start;
    padding-right: 16px;
  }
  .row-main { grid-area: main; }
  .row-ask { grid-area: ask; padding-top: 16px; }
  .row-vendor { grid-area: vendor; }
  .row-meta { grid-area: meta; display: block; text-align: left; }
  .caravan { grid-template-columns: 36px minmax(0, 1fr); }
  .rep, .settled-n { text-align: left; }
  .caravan .texty { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .thread, .mark::after, body::after { animation: none; }
}

em, i,
.dek, .tick-line, .who, .what, .review p, .beat-copy,
.bill-no, .bill-end, .caravan h2, .rep, .pv-title, .pv-ask, .offer-read {
  font-style: normal;
}

.dek, .tick-line, .review p, .beat-copy, .bill-end, .caravan h2, .offer-read {
  letter-spacing: 0;
}

.bill-no, .caravan h2, .pv-title {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0;
}

.bill-no { font-size: 28px; }
.caravan h2 { font-size: 32px; }
.pv-title { font-size: 32px; }
.dek { font-size: 22px; }
.review p, .beat-copy { font-size: 22px; }

.kicker,
.row-kicker,
.row-vendor,
.row-meta,
.tick-meta,
.count,
.sort,
.traveling,
.hint-keys,
.cats button,
.nav button,
.purse abbr,
.unit-line,
.vendor-line,
.review footer,
.bill dt,
.rep small,
.settled-n {
  font-size: 16px;
  letter-spacing: 0.04em;
}

.row-title { font-size: 22px; }

input, textarea, select { caret-color: var(--phos); }
