/* Terminal prototype styles. System fonts only; no external resources. */

:root {
  color-scheme: dark;
  --bg: #0a0e13;
  --surface: #121821;
  --surface-2: #19212c;
  --border: #263241;
  --grid: #1b2430;
  --text: #e6edf3;
  --text-muted: #94a2b4;
  --accent: #dddde0;
  --accent-ink: #161617;
  --accent-text: #dddde0;
  --up: #22b39c;
  --down: #f0644d;
  --warn-bg: #2a2110;
  --warn-border: #6b5416;
  --warn-text: #f1cf7a;
  --bad: #f0644d;
  --pill: #2c3a4c;
  --focus: #8fc7ff;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f3f5f7;
    --surface: #ffffff;
    --surface-2: #eef1f4;
    --border: #d5dbe3;
    --grid: #e9edf1;
    --text: #131a22;
    --text-muted: #566273;
    --accent: #d1d1d4;
    --accent-ink: #161617;
    --accent-text: #555558;
    --up: #0b8f7e;
    --down: #d2452f;
    --warn-bg: #fff6dc;
    --warn-border: #e2c463;
    --warn-text: #6a4d00;
    --bad: #b93a26;
    --pill: #dfe5ec;
    --focus: #0b62c4;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-2: #eef1f4;
  --border: #d5dbe3;
  --grid: #e9edf1;
  --text: #131a22;
  --text-muted: #566273;
  --accent: #d1d1d4;
  --accent-ink: #161617;
  --accent-text: #555558;
  --up: #0b8f7e;
  --down: #d2452f;
  --warn-bg: #fff6dc;
  --warn-border: #e2c463;
  --warn-text: #6a4d00;
  --bad: #b93a26;
  --pill: #dfe5ec;
  --focus: #0b62c4;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--font);
  min-width: 320px;
}

h1,
h2,
p,
dl,
dd,
ul,
ol {
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 15px;
  font-weight: 650;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  left: 8px;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 12px;
}

/* ---- top bar ----------------------------------------------------------- */

.top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 5;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-mark {
  display: block;
  flex: none;
}

.brand-mark path {
  fill: var(--accent-text);
}

.brand-name {
  font-weight: 750;
  letter-spacing: 0.06em;
  font-size: 16px;
}

.brand-tag {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 2px;
  margin-left: 8px;
}

.nav button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: 550;
}

.nav button:hover {
  color: var(--text);
}

.nav button[aria-current="page"] {
  background: var(--surface-2);
  color: var(--accent-text);
}

.top-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 600;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex: none;
}

.chip[data-health="live"] .dot {
  background: var(--up);
}

.chip[data-health="fixture"] {
  border-color: var(--warn-border);
  color: var(--warn-text);
  background: var(--warn-bg);
}

.chip[data-health="fixture"] .dot,
.chip[data-health="stale"] .dot {
  background: var(--warn-text);
}

.chip[data-health="error"] .dot {
  background: var(--bad);
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 16px;
  line-height: 1;
  flex: none;
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--accent-text);
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 6px;
}

.text-btn:hover {
  text-decoration: underline;
}

.banner {
  margin: 12px 16px 0;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
  color: var(--text-muted);
}

.banner strong {
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-right: 8px;
  color: var(--text);
}

.banner[data-kind="fixture"],
.banner[data-kind="testonly"] {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-text);
}

.banner[data-kind="fixture"] strong,
.banner[data-kind="testonly"] strong {
  color: var(--warn-text);
}

/* ---- layout ------------------------------------------------------------ */

main {
  display: grid;
  gap: 12px;
  padding: 12px 16px 24px;
  grid-template-columns: minmax(0, 1fr);
  max-width: 1720px;
  margin: 0 auto;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  min-width: 0;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.wide-only {
  display: none;
}

/* Narrow: one view at a time. */
@media (max-width: 759px) {
  body[data-view="pairs"] .col:not(.col-pairs),
  body[data-view="chart"] .col:not(.col-chart),
  body[data-view="trade"] .col:not(.col-trade),
  body[data-view="launch"] .col:not(.col-launch) {
    display: none;
  }
}

@media (min-width: 760px) {
  body:not([data-view="launch"]) .col-launch,
  body[data-view="launch"] .col-pairs,
  body[data-view="launch"] .col-chart,
  body[data-view="launch"] .col-trade {
    display: none !important;
  }

  .wide-only {
    display: inline;
  }

  .narrow-only {
    display: none !important;
  }

  main {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
  }

  body:not([data-view="launch"]) .nav button[data-view="pairs"] {
    background: var(--surface-2);
    color: var(--accent-text);
  }

  .col-pairs {
    grid-row: 1 / span 2;
    position: sticky;
    top: 64px;
    max-height: calc(100vh - 76px);
  }

  .col-pairs > .card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100%;
  }

  .col-pairs .pair-list {
    overflow: auto;
    min-height: 0;
  }

  .col-trade {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .col-trade .disclosure {
    grid-column: 1 / -1;
  }

  body[data-view="launch"] main {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1040px;
  }

  body[data-view="launch"] .col-launch {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 1180px) {
  main {
    grid-template-columns: 290px minmax(0, 1fr) 340px;
  }

  .col-pairs {
    grid-row: auto;
  }

  .col-trade {
    grid-column: auto;
    display: flex;
  }
}

.launch-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* ---- forms ------------------------------------------------------------- */

.field {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.field > span {
  display: block;
  margin-bottom: 4px;
}

.field-row {
  display: flex !important;
  justify-content: space-between;
}

.field-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-inline > span {
  margin: 0;
}

.field-inline select {
  width: auto;
  min-width: 120px;
}

.field-pair {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 10px;
}

input,
select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 14px;
  color: var(--text);
  min-height: 38px;
}

input[aria-invalid="true"] {
  border-color: var(--bad);
}

input[type="radio"] {
  width: auto;
  min-height: 0;
  margin-top: 3px;
}

.hint {
  min-height: 0;
  font-size: 12px;
  color: var(--warn-text);
  margin-top: 4px;
}

.hint.err {
  color: var(--bad);
}

.hint:empty {
  display: none;
}

.primary {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  padding: 11px 14px;
}

.ghost {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 7px 14px;
  font-weight: 600;
}

.seg {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
  max-width: 100%;
  overflow-x: auto;
}

.seg button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  border-radius: 7px;
  padding: 5px 10px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.seg button[aria-pressed="true"] {
  background: var(--surface-2);
  color: var(--accent-text);
  box-shadow: inset 0 0 0 1px var(--border);
}

.seg-wide {
  display: flex;
  margin-top: 10px;
}

.seg-wide button {
  flex: 1;
  padding: 8px;
}

.proto {
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  margin-top: 12px;
}

.tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.tag-sim {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-text);
}

/* ---- pair list --------------------------------------------------------- */

.pair-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}

.pair-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 8px 9px;
}

.pair-row:hover {
  background: var(--surface-2);
}

.pair-row[aria-current="true"] {
  background: var(--surface-2);
  border-color: var(--border);
  box-shadow: inset 3px 0 0 var(--accent);
}

.pr-main,
.pr-nums {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pr-nums {
  align-items: flex-end;
  text-align: right;
  flex: none;
  max-width: 62%;
}

.pr-sym,
.pr-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pr-price,
.price-big,
.tape td,
.quote dd,
.stats dd {
  font-variant-numeric: tabular-nums;
}

.pr-price {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.pr-sub {
  white-space: nowrap;
}

.glyph {
  font-size: 0.72em;
  margin-right: 3px;
}

.glyph.up,
.lg-dir.up {
  color: var(--up);
}

.glyph.down,
.lg-dir.down {
  color: var(--down);
}

.glyph.flat {
  color: var(--text-muted);
}

.state {
  padding: 18px 6px;
  text-align: center;
  color: var(--text-muted);
}

.foot-note {
  margin-top: 10px;
}

/* ---- pair header ------------------------------------------------------- */

.pair-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: start;
}

.pair-price {
  text-align: right;
  min-width: 0;
}

.price-big {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.price-big .unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px 14px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.stat dt {
  font-size: 11px;
  color: var(--text-muted);
}

.stat dd {
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---- chart ------------------------------------------------------------- */

.chart-card {
  padding-bottom: 10px;
}

.chart-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chart-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart {
  display: flex;
  flex-direction: column;
  height: clamp(300px, 54vh, 580px);
  margin-top: 8px;
}

.chart-plot {
  position: relative;
  flex: 1;
  min-height: 0;
}

.chart canvas {
  position: absolute;
  inset: 0;
  display: block;
  touch-action: pan-y;
  cursor: crosshair;
  border-radius: 6px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0 10px;
  font-size: 12px;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
  /* Room for the wrapped legend so the plot does not jump while hovering. */
  min-height: 36px;
}

@media (min-width: 1180px) {
  .chart-legend {
    min-height: 18px;
  }
}

.lg-k {
  color: var(--text-muted);
  margin-right: 4px;
}

.lg-dir {
  font-size: 10px;
  align-self: center;
}

.chart-note {
  position: absolute;
  inset: 10px 70px 22px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.chart-foot {
  margin-top: 6px;
}

/* ---- tape -------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  max-height: 420px;
  overflow-y: auto;
}

.tape {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tape th {
  position: sticky;
  top: 0;
  background: var(--surface);
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.tape td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--grid);
  white-space: nowrap;
}

.tape .num {
  text-align: right;
}

/* ---- quote and status -------------------------------------------------- */

.quote {
  margin-top: 12px;
}

.quote:empty {
  display: none;
}

.quote > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--grid);
}

.quote dt {
  color: var(--text-muted);
  font-size: 12px;
  flex: none;
}

.quote dd {
  text-align: right;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.quote-note {
  margin-top: 6px;
}

.steps {
  list-style: none;
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.steps li {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.steps li span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.steps .pip {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}

.steps .done .pip {
  background: var(--text-muted);
}

.steps .now {
  color: var(--text);
  font-weight: 700;
}

.steps .now .pip {
  background: var(--accent);
}

.steps .bad {
  color: var(--bad);
  font-weight: 700;
}

.steps .stopped {
  color: var(--warn-text);
  font-weight: 700;
}

.steps .stopped .pip {
  background: var(--warn-text);
}

.steps .bad .pip {
  background: var(--bad);
}

.status-msg {
  font-size: 14px;
}

.fail-title {
  color: var(--bad);
}

.status-dyn:empty,
.status-extra:empty,
.status-actions:empty {
  display: none;
}

.status-dyn,
.status-extra {
  margin-top: 6px;
}

.status-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.bar {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin-top: 10px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.25s linear;
}

/* ---- disclosure -------------------------------------------------------- */

.disclosure summary {
  cursor: pointer;
  list-style-position: inside;
}

.disclosure summary h2 {
  display: inline;
}

.disclosure ul {
  margin-top: 10px;
  padding-left: 18px;
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
}

.disclosure b {
  color: var(--text);
  font-weight: 600;
}

/* ---- dialog and footer ------------------------------------------------- */

dialog {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  padding: 18px;
  width: min(440px, calc(100vw - 32px));
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.radio {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
}

.dlg-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.dlg-actions .primary {
  width: auto;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding: 14px 16px 28px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 759px) {
  .top {
    padding: 8px 12px;
    gap: 8px;
  }

  .brand-tag {
    display: none;
  }

  .nav {
    order: 3;
    width: 100%;
    margin: 0;
  }

  .nav button {
    flex: 1;
    padding: 7px 4px;
  }

  main {
    padding: 10px 12px 20px;
  }

  .banner {
    margin: 10px 12px 0;
    font-size: 12px;
  }

  .hide-narrow {
    display: none;
  }

  .chart-legend {
    min-height: 54px;
  }

  .chart {
    height: clamp(260px, 48vh, 420px);
  }

  .price-big {
    font-size: 19px;
  }

  .tape td,
  .tape th {
    padding: 6px 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bar i {
    transition: none;
  }
}

/* ---- launch pools ------------------------------------------------------ */

.pool-main,
.pool-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.pool-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.side-buy {
  color: var(--up);
  font-weight: 600;
}

.side-sell {
  color: var(--down);
  font-weight: 600;
}

.handoff {
  margin-top: 4px;
}

.handoff-link {
  color: var(--text-muted);
  text-decoration: underline;
}

.handoff-link[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

#poolGo,
#tradeGo {
  width: 100%;
  margin-top: 10px;
}

.pool-main .chart {
  height: clamp(260px, 42vh, 460px);
}

@media (max-width: 759px) {
  body[data-view="pools"] .col:not(.col-pools) {
    display: none;
  }
}

@media (min-width: 760px) {
  body:not([data-view="pools"]) .col-pools,
  body[data-view="pools"] .col-pairs,
  body[data-view="pools"] .col-chart,
  body[data-view="pools"] .col-trade,
  body[data-view="pools"] .col-launch {
    display: none !important;
  }

  body[data-view="pools"] .nav button[data-view="pairs"] {
    background: transparent;
    color: var(--text-muted);
  }

  body[data-view="pools"] main {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1320px;
  }

  body[data-view="pools"] .col-pools {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    align-items: start;
  }

  body[data-view="pools"] .pool-side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  body[data-view="pools"] .pool-side .disclosure {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1180px) {
  body[data-view="pools"] .col-pools {
    grid-template-columns: 270px minmax(0, 1fr) 340px;
  }

  body[data-view="pools"] .pool-side {
    grid-column: auto;
    display: flex;
  }
}

/* Wallet panel opener (the panel itself: src/wallet-panel.css). */
.wallet-btn[data-wallet-state="connected"] {
  border-color: var(--accent-text);
  color: var(--accent-text);
}

#mainSiteLink {
  color: var(--accent-text);
}

/* Bridge: an inert layout placeholder under a "Coming soon" overlay. */
body:not([data-view="bridge"]) .col-bridge {
  display: none !important;
}

body[data-view="bridge"] main > .col:not(.col-bridge) {
  display: none !important;
}

body[data-view="bridge"] main {
  grid-template-columns: minmax(0, 1fr);
  max-width: 560px;
}

body[data-view="bridge"] .nav button[data-view="pairs"] {
  background: transparent;
  color: var(--text-muted);
}

.bridge-stage {
  position: relative;
  margin-top: 10px;
}

.bridge-mock {
  opacity: 0.45;
  filter: saturate(0.4);
  pointer-events: none;
  user-select: none;
}

.bridge-leg {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.bridge-pick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bridge-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 6px 12px;
}

.bridge-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
}

.bridge-dot-b {
  border-style: dashed;
}

.bridge-dot-alt {
  border-radius: 3px;
}

.bridge-amount {
  width: 100%;
  box-sizing: border-box;
  font-size: 22px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 4px 0;
}

.bridge-flip-row {
  display: flex;
  justify-content: center;
  margin: -6px 0;
  position: relative;
  z-index: 1;
}

.bridge-flip {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.bridge-quote {
  margin: 12px 0;
}

.bridge-go {
  width: 100%;
}

.bridge-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(127, 127, 127, 0.35);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.bridge-soon {
  margin: 0;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
