:root { color-scheme: light; font-family: system-ui, sans-serif; color: #17233b; background: #f1f4f8; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
.shell { width: min(92%, 1320px); margin-inline: auto; }
.top { background: white; border-bottom: 1px solid #dce3ed; }
.top-inner { min-height: 76px; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: .5rem; }
.phoenix { grid-column: 2; grid-row: 1; width: 142px; height: auto; display: block; }
.user { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; font-size: .875rem; }
main { flex: 1; padding-top: 1.5rem; }
.brand { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: end; gap: .4rem; white-space: nowrap; }
.echo-wordmark { display: grid; justify-items: center; color: #173159; }
.echo-wordmark strong { font-size: 27px; line-height: .95; font-weight: 700; }
.echo-wordmark span { font-size: .5rem; line-height: 1.15; letter-spacing: .02em; }
.kyte-credit { display: flex; align-items: end; gap: .25rem; margin-bottom: .575rem; font-size: .68rem; line-height: 1; }
.kyte-credit img { display: block; width: 23px; height: auto; }
.trade-title { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; }
.trade-title span { font-size: .75rem; color: #465772; white-space: nowrap; }
@media (max-width: 480px) {
  .phoenix { width: 82px; }
  .brand { gap: .2rem; }
  .echo-wordmark strong { font-size: 23px; }
  .echo-wordmark span { font-size: .44rem; }
  .kyte-credit { gap: .15rem; margin-bottom: .506rem; font-size: .56rem; }
  .kyte-credit img { width: 17px; }
  .user { grid-column: 1 / -1; grid-row: 2; padding-bottom: .5rem; }
  .trade-title h1 { font-size: 1.1rem; }
}

p { color: #465772; margin: .5rem 0 0; }
.card { background: white; border: 1px solid #dce3ed; border-radius: 1rem; overflow: hidden; }
.account, .detail { padding: clamp(1rem, 4vw, 2rem); }
.account { max-width: 30rem; }
h1 { font-size: 1.55rem; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.account form { display: grid; gap: .6rem; margin: 1.5rem 0; }
.account input { margin-bottom: .55rem; }
.account > a { display: inline-block; margin-top: .75rem; }
label { font-size: .875rem; font-weight: 650; }
input, button { font: inherit; min-height: 2.6rem; border-radius: .45rem; padding: .5rem .75rem; }
input { border: 1px solid #a7b5c8; min-width: 0; }
button { background: #173159; color: white; border: 1px solid #173159; cursor: pointer; font-weight: 650; }
button:hover { background: #244674; }
button.secondary { background: white; color: #173159; }
a { color: #174b85; text-underline-offset: .18em; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #3384d3; outline-offset: 3px; }
.error { color: #a02036; }
.heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; padding: 1.25rem; }
.search div { display: flex; gap: .5rem; margin-top: .25rem; }
.search input { width: min(56vw, 320px); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .8rem 1.1rem; border-top: 1px solid #e1e7ef; white-space: nowrap; }
th { background: #f6f8fb; font-size: .875rem; }
td { font-size: .9rem; }
tbody tr:hover { background: #f6f9ff; }
.pages, .empty { padding: 1.1rem 1.25rem; border-top: 1px solid #e1e7ef; }
.pages { display: flex; gap: 1rem; }
.detail h1 { margin-top: 1rem; }
dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1rem; margin-bottom: 0; }
dl div { padding: .65rem .85rem; background: #f6f8fb; border-radius: .4rem; }
dt { color: #465772; font-size: .875rem; }
dd { margin: .35rem 0 0; overflow-wrap: anywhere; }
footer { text-align: center; padding: 2rem 0 1rem; color: #52617a; font-size: .8rem; }
