.cross-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 24px auto 80px;
}
.cross-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  padding: 34px 0 28px;
}
.cross-hero h1 {
  margin: 9px 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.055em;
}
.cross-hero p {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.65;
  margin: 0;
}
.cross-status,
.variable-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.cross-status.ready { color: #08775f; background: #e5faf4; border-color: #b6eadc; }
.cross-status.locked { color: #915f05; background: #fff6df; border-color: #f0d89f; }
.cross-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0 22px;
}
.cross-metric { padding: 21px; display: grid; gap: 8px; }
.cross-metric span, .cross-metric small { color: var(--muted); }
.cross-metric span { font-size: 12px; font-weight: 750; }
.cross-metric strong { font-size: 26px; letter-spacing: -0.04em; }
.cross-metric small { font-size: 11px; }
.cross-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 18px;
  align-items: start;
}
.cross-panel { padding: 25px; }
.cross-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.cross-panel h2 { margin: 5px 0 0; letter-spacing: -0.035em; }
.cross-panel-head p { margin: 8px 0 0; }
.variable-badge { color: var(--navy); background: var(--ice); }
.wallet-cards { display: grid; gap: 12px; margin-top: 20px; }
.cross-wallet {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 17px;
  background: linear-gradient(135deg, #fff, #f7fffd);
}
.cross-wallet-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.cross-wallet-head > div { display: grid; gap: 4px; }
.cross-wallet-head small { color: var(--muted); }
.address-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.address-row span { font-size: 11px; font-weight: 850; color: var(--muted); }
.address-row code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.address-row button {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.cross-form { display: grid; gap: 14px; }
.cross-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-result {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
  display: grid;
  gap: 13px;
}
.quote-result > div:not(.field) { display: flex; justify-content: space-between; gap: 12px; }
.quote-result > div > span { color: var(--muted); font-size: 12px; }
.quote-result p {
  padding: 12px;
  margin: 0;
  border-radius: 12px;
  color: #7a550e;
  background: #fff7e5;
  font-size: 12px;
  line-height: 1.5;
}
.cross-alert { margin-bottom: 18px; }
.order-panel { margin-top: 18px; }
.cross-table th, .cross-table td { vertical-align: top; }
.cross-table td strong, .cross-table td small { display: block; }
.cross-table td small { color: var(--muted); margin-top: 5px; }
.route-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--ice);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
}
.order-action {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 9px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
}
.order-action:disabled { opacity: .5; cursor: not-allowed; }
.cross-dialog {
  width: min(520px, calc(100% - 28px));
  border: 0;
  border-radius: 22px;
  padding: 25px;
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(8, 51, 68, .3);
}
.cross-dialog::backdrop { background: rgba(5, 31, 40, .62); backdrop-filter: blur(4px); }
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding: 0;
}
.dialog-head button {
  border: 0;
  background: transparent;
  font-size: 25px;
  cursor: pointer;
}
.recovery-dialog p, .danger-copy { color: var(--muted); line-height: 1.55; }
.recovery-dialog > code {
  display: block;
  word-break: break-all;
  padding: 15px;
  background: var(--navy);
  color: #d8fff8;
  border-radius: 12px;
  margin: 15px 0;
}
.recovery-check { display: flex; gap: 9px; margin: 16px 0; font-size: 13px; }
.funding-review { display: grid; gap: 12px; }
.funding-review > div { display: grid; gap: 5px; }
.funding-review span { color: var(--muted); font-size: 11px; }
.funding-review code { overflow-wrap: anywhere; font-size: 11px; }
.danger-copy { padding: 12px; background: #fff0ee; border-radius: 12px; color: #8f2c24; font-size: 12px; }

@media (max-width: 920px) {
  .cross-metrics { grid-template-columns: 1fr 1fr; }
  .cross-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .cross-shell { width: min(100% - 24px, 1240px); margin-top: 0; }
  .cross-hero { display: grid; padding-top: 18px; }
  .cross-metrics { grid-template-columns: 1fr 1fr; gap: 9px; }
  .cross-metric { padding: 15px; }
  .cross-form-row { grid-template-columns: 1fr; }
  .cross-panel { padding: 18px; }
  .links .nav-link { display: none; }
  .address-row { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .cross-table thead { display: none; }
  .cross-table,
  .cross-table tbody,
  .cross-table tr,
  .cross-table td { display: block; width: 100%; }
  .cross-table tr {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 7px 14px;
  }
  .cross-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
  }
  .cross-table td:last-child { border-bottom: 0; }
  .cross-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .cross-table .order-action { width: 100%; }
}
