/* AYEDEX: brutalist acid lime. Black ink, white paper, one loud accent, hard edges, mono type. */
:root {
  --ink: #0a0a0a; --ink-2: #1c1c1c; --muted: #5e5e5e; --line: #0a0a0a; --line-2: #dcdcdc;
  --paper: #ffffff; --panel: #f4f4f1; --lime: #c7ff2e; --lime-2: #b4ee12; --lime-soft: #f2ffd0; --wash: #f7ffd9;
  --up: #1a6b2f; --up-soft: #e3f7c8; --down: #b3140c; --down-soft: #ffe3df;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--panel); color: var(--ink); font: 13px/1.45 var(--mono); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h2 { margin: 0; font-size: 1.05rem; text-transform: uppercase; letter-spacing: -.02em; font-weight: 800; }
.muted { color: var(--muted); } .small { font-size: .78rem; } .r { text-align: right; } .num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* header */
.top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand tickers who" "cross cross cross"; gap: .6rem 1rem; align-items: center; padding: .6rem 1rem .5rem; background: var(--ink); color: #fff; border-bottom: 4px solid var(--lime); }
.brand { grid-area: brand; } .tickers { grid-area: tickers; min-width: 0; } .who { grid-area: who; } .cross { grid-area: cross; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; }
.brand .mark { width: 34px; height: 34px; background: var(--lime); color: var(--ink); font-weight: 900; font-size: 1.3rem; display: grid; place-items: center; overflow: hidden; }
.brand .mark svg { width: 34px; height: 34px; display: block; }
.brand .word { font-weight: 900; font-size: 1.25rem; letter-spacing: .06em; }
.brand .tag { font-size: .62rem; letter-spacing: .18em; color: var(--lime); border: 1px solid var(--lime); padding: .1rem .35rem; }
.tickers { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.tickers button { background: transparent; border: 1px solid #333; color: #fff; padding: .35rem .6rem; display: grid; text-align: left; line-height: 1.2; min-width: 150px; }
.tickers button[aria-pressed="true"] { border-color: var(--lime); background: #111; }
.tickers b { font-size: .95rem; } .tickers small { color: #9a9a9a; font-size: .68rem; letter-spacing: .08em; }
.tickers .up { color: var(--lime); } .tickers .down { color: #ff6b5e; }
.tickers .nhq { color: #6f746b; font-size: .6rem; letter-spacing: 0; white-space: nowrap; }   /* "· no house quotes yet": small and muted, next to the pair */
.cross { display: flex; gap: 1rem; font-size: .7rem; color: #cfcfcf; white-space: nowrap; overflow-x: auto; scrollbar-width: none; border-top: 1px solid #2a2a2a; padding-top: .45rem; min-width: 0; }
.cross span { flex: none; } .cross .ref { margin-left: auto; color: #8a8f86; }
.cross b { color: var(--lime); }
.who { display: flex; gap: .5rem; align-items: center; justify-self: end; }
.who .btn { white-space: nowrap; }
.who .email { font-size: .75rem; color: #cfcfcf; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn { border: 2px solid var(--ink); background: #fff; color: var(--ink); padding: .5rem .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; }
.top .btn { border-color: #fff; background: transparent; color: #fff; }
.btn.lime, .top .btn.lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn.big { width: 100%; padding: .85rem; font-size: .9rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

.ribbon { display: flex; align-items: center; gap: .6rem; padding: .25rem 1rem; background: var(--lime); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.ribbon .dot { width: 8px; height: 8px; background: var(--ink); border-radius: 50%; animation: blink 1.6s infinite; }
.ribbon .net { margin-left: auto; border: 1px solid var(--ink); padding: 0 .4rem; }
@keyframes blink { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .ribbon .dot { animation: none; } }

/* layout */
.grid { display: grid; grid-template-columns: 280px minmax(0, 1fr) 340px; gap: 8px; padding: 8px; min-height: 70vh; }
.panel { background: var(--paper); border: 2px solid var(--ink); display: flex; flex-direction: column; min-height: 0; }
.ph { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .5rem .7rem; border-bottom: 2px solid var(--ink); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.ph.small { border-bottom: 1px solid var(--line-2); padding: .4rem .7rem; }
.ph .meta { font-weight: 500; color: var(--muted); letter-spacing: .04em; text-transform: none; }
.cols { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: .25rem .7rem; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-2); }

/* book */
.asks, .bids { display: grid; align-content: end; font-variant-numeric: tabular-nums; }
.asks { flex: 1; } .bids { flex: 1; align-content: start; }
.lvl { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; padding: .12rem .7rem; font-size: .78rem; }
.lvl .bar { position: absolute; top: 0; bottom: 0; right: 0; opacity: .35; }
.asks .lvl .bar { background: var(--down-soft); } .bids .lvl .bar { background: var(--lime-soft); }
.asks .lvl span:first-child { color: var(--down); font-weight: 700; } .bids .lvl span:first-child { color: var(--up); font-weight: 700; }
.lvl span { position: relative; }
.mid { text-align: center; padding: .45rem; font-weight: 900; font-size: 1.15rem; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--wash); }
.mid small { font-weight: 500; color: var(--muted); font-size: .7rem; margin-left: .5rem; }
.mid .hq { display: block; margin: .1rem 0 0; font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
/* badges: TESTNET next to Stellar balances while the exchange runs on the Stellar test network */
.badge { display: inline-block; vertical-align: middle; margin-left: .3rem; padding: 0 .3rem; border: 1px solid var(--down); color: var(--down); font-size: .56rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
.reserves .badge, dialog .badge { border-color: #ff6b5e; color: #ff6b5e; }

/* chart */
.chart-panel .ph { justify-content: space-between; }
.mkts, .ivs { display: flex; gap: .3rem; }
.mkts button, .ivs button { border: 1px solid var(--ink); background: #fff; padding: .2rem .5rem; font-size: .7rem; font-weight: 700; }
.mkts button[aria-pressed="true"], .ivs button[aria-pressed="true"] { background: var(--ink); color: var(--lime); }
.stats { display: flex; gap: 1.2rem; padding: .45rem .7rem; border-bottom: 1px solid var(--line-2); font-size: .74rem; flex-wrap: wrap; }
.stats b { font-size: 1.1rem; } .stats span small { display: block; color: var(--muted); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
#chart { height: 420px; min-height: 300px; }
.chart-off { display: grid; place-items: center; height: 100%; margin: 0; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.tape { border-top: 2px solid var(--ink); max-height: 220px; overflow: auto; }
.tr { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: .1rem .7rem; font-size: .76rem; font-variant-numeric: tabular-nums; }
.tr.buy span:first-child { color: var(--up); } .tr.sell span:first-child { color: var(--down); }
.tr.flash { background: var(--wash); }

/* side */
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-bottom: 2px solid var(--ink); }
.tabs button[hidden] { display: none; }
.tabs button { border: 0; border-right: 2px solid var(--ink); background: #fff; padding: .55rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.tabs button:last-child { border-right: 0; } .tabs button[aria-selected="true"] { background: var(--lime); }
.tabpane { padding: .8rem; display: grid; gap: .6rem; }
.seg { display: grid; border: 2px solid var(--ink); } .seg.two { grid-template-columns: 1fr 1fr; }
.seg button { border: 0; border-right: 2px solid var(--ink); background: #fff; padding: .55rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; }
.seg button:last-child { border-right: 0; } .seg button[aria-pressed="true"] { background: var(--ink); color: var(--lime); }
.seg.small button { padding: .35rem; font-size: .66rem; }
.f { display: grid; gap: .25rem; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; position: relative; }
.f input, .f select { border: 2px solid var(--ink); padding: .55rem .6rem; font-size: .95rem; font-weight: 500; letter-spacing: 0; text-transform: none; background: #fff; width: 100%; min-width: 0; }
.f input:focus, .f select:focus { outline: none; box-shadow: 4px 4px 0 var(--lime); }
.f .u { position: absolute; right: .6rem; bottom: .65rem; font-size: .66rem; color: var(--muted); pointer-events: none; }
.pct { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; }
.pct button { border: 1px solid var(--ink); background: #fff; padding: .25rem; font-size: .66rem; font-weight: 700; }
.pct button:hover { background: var(--wash); }
.total { display: flex; justify-content: space-between; font-size: .8rem; padding: .2rem 0; border-top: 1px dashed var(--line-2); }
.chk { font-size: .74rem; display: flex; gap: .4rem; align-items: center; }
.avail { font-size: .72rem; color: var(--muted); }
.err { color: var(--down); font-size: .76rem; min-height: 1em; }
.lead { margin: 0; font-size: .8rem; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .5rem; align-items: end; }   /* minmax(0,…): an input's intrinsic width never widens the panel */
.swap { border: 2px solid var(--ink); background: var(--lime); width: 40px; height: 40px; font-size: 1.1rem; font-weight: 900; }
.quote { border: 2px dashed var(--ink); padding: .6rem; font-size: .78rem; background: var(--wash); }
.quote b { font-size: 1rem; }
.bal { display: grid; gap: .3rem; }
.bal .b { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: baseline; padding: .4rem .5rem; border: 1px solid var(--ink); }
.bal .b b { font-size: 1rem; } .bal .b .h { color: var(--muted); font-size: .7rem; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; }
.list { display: grid; }
.list .o { display: grid; grid-template-columns: auto 1fr auto auto; gap: .5rem; align-items: center; padding: .35rem .7rem; border-bottom: 1px solid var(--line-2); font-size: .74rem; }
.list .o .s { font-weight: 800; text-transform: uppercase; } .list .o .s.buy { color: var(--up); } .list .o .s.sell { color: var(--down); }
.list .o .x { border: 1px solid var(--ink); background: #fff; padding: 0 .4rem; font-weight: 800; }
.list p { padding: .5rem .7rem; margin: 0; }
.orders { border-top: 2px solid var(--ink); margin-top: auto; max-height: 260px; overflow: auto; }
.tag { display: inline-block; font-size: .62rem; border: 1px solid currentColor; padding: 0 .3rem; text-transform: uppercase; letter-spacing: .08em; }

/* xcop */
.xcop { border-top: 2px solid var(--ink); margin-top: .4rem; padding-top: .4rem; display: grid; gap: .5rem; }
.xcop .ph.small { padding-left: 0; padding-right: 0; }
.res .sub { font-size: .66rem; color: #9a9a9a; }
/* reserves + market-making disclosure, side by side */
.below { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; margin: 0 8px 8px; }
.reserves { margin: 0; background: var(--ink); color: #fff; border: 2px solid var(--ink); min-width: 0; }
.mm p { color: #dcdcdc; padding-top: .8rem; line-height: 1.55; }
.mm .mm-liq { border-right: 0; padding-top: 0; }
.mm .mm-liq .row:first-child { color: var(--lime); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .66rem; }
.reserves .ph { border-bottom-color: #333; } .reserves .meta { color: #9a9a9a; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.res { padding: .8rem; border-right: 1px solid #333; display: grid; gap: .2rem; }
.res:last-child { border-right: 0; }
.res .a { font-weight: 900; font-size: 1.1rem; color: var(--lime); }
.res .row { display: flex; justify-content: space-between; font-size: .78rem; }
.res .ok { color: var(--lime); font-weight: 800; } .res .bad { color: #ff6b5e; font-weight: 800; }
.reserves p { padding: 0 .8rem .8rem; margin: 0; color: #9a9a9a; }
.foot { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem 1.4rem; font-size: .72rem; color: var(--muted); flex-wrap: wrap; }

/* dialogs: the AYEDEX security-panel popup */
dialog { border: 1px solid #464d40; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; background: #090b08; color: #f2f4ee; box-shadow: 24px 24px 0 rgba(0,0,0,.65), 0 0 0 1px rgba(200,255,61,.06); }
dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(7px); }
.dlg { display: block; padding: 0; }
.dialogHeader { padding: 20px 22px 18px; border-bottom: 1px solid #252a22; }
.dialogTopline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; color: var(--lime); font-size: 9px; letter-spacing: .14em; font-weight: 700; }
.dialogTopline button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #252a22; background: transparent; color: #92978e; font-size: 16px; }
.dialogTopline button:hover { color: var(--lime); border-color: #4c5f24; }
.dialogHeader h2 { margin: 0; color: #f2f4ee; font-size: 27px; line-height: 1; letter-spacing: -.045em; text-transform: none; }
.dialogDescription { max-width: 475px; margin: 11px 0 0; color: #969b91; font-size: 12px; line-height: 1.55; }
.dialogBody { display: grid; gap: 14px; padding: 20px 22px 6px; }
dialog .f { color: #9da294; font-size: 9px; letter-spacing: .12em; }
dialog .f input, dialog .f select { background: #0e110d; border: 1px solid #343930; color: #f2f4ee; padding: 12px 13px; font-size: 14px; }
dialog .f input:focus, dialog .f select:focus { border-color: #4c5f24; box-shadow: 0 0 0 3px rgba(200,255,61,.12); outline: none; }
dialog .f input::placeholder { color: #5e645b; }
dialog .seg { border-color: #343930; } dialog .seg button { background: #0e110d; color: #c5c9c0; border-color: #343930; } dialog .seg button[aria-pressed="true"] { background: var(--lime); color: #0a0a0a; }
dialog .err { color: #ff6b5e; font-size: 12px; }
dialog .mono { background: #0e110d; border: 1px solid #343930; color: #c5c9c0; }
dialog .btn { background: transparent; color: #f2f4ee; border-color: #464d40; } dialog .btn:hover { border-color: var(--lime); color: var(--lime); }
dialog .muted { color: #969b91; }
.dialogAction { width: calc(100% - 44px); min-height: 50px; margin: 14px 22px 0; padding: 0 18px; display: flex; justify-content: center; align-items: center; gap: 9px; border: 0; background: var(--lime); color: #0a0a0a; text-transform: uppercase; font-weight: 800; font-size: 11px; letter-spacing: .08em; }
.dialogAction:hover { background: #dcff85; }
.dialogFootnote { margin: 13px 22px 19px; color: #62675f; text-align: center; font-size: 9px; line-height: 1.45; letter-spacing: .04em; }
.dialogFootnote a { color: #a7aca2; }
@media (max-width: 600px) { .dialogHeader h2 { font-size: 23px; } }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--lime); padding: .6rem 1rem; border: 2px solid var(--lime); font-weight: 700; z-index: 50; }

/* minmax(0, 1fr) everywhere below: a plain 1fr is minmax(auto, 1fr) and lets any non-wrapping content widen the page past the viewport */
@media (max-width: 1100px) { .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .chart-panel { grid-column: 1 / -1; order: -1; } .below { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .grid { grid-template-columns: minmax(0, 1fr); } .top { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand who" "tickers tickers" "cross cross"; } .who { flex-wrap: wrap; justify-content: flex-end; } .chart-panel .ph, .mkts, .ivs { flex-wrap: wrap; } #chart { height: 320px; } }
/* testnet notice + read-more page */
.pill-warn { border: 1px solid #ff6b5e; color: #ff6b5e; padding: .1rem .4rem; font-size: 9px; letter-spacing: .14em; font-weight: 700; }
.tn-list { margin: 0; padding-left: 1.1rem; color: #c5c9c0; font-size: 12px; line-height: 1.55; }
.tn-list li { margin: .3rem 0; } .tn-list b { color: #f2f4ee; }
a.dialogAction { text-decoration: none; }
.dialogSecondary { width: calc(100% - 44px); margin: 8px 22px 0; padding: 12px; background: transparent; border: 1px solid #464d40; color: #c5c9c0; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.dialogSecondary:hover { border-color: var(--lime); color: var(--lime); }
#dlg-testnet { max-width: 560px; }
.top .btn.how { grid-area: how; border-color: #464d40; color: #cfcfcf; font-size: .66rem; }
.top { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "brand tickers how who" "cross cross cross cross"; }
@media (max-width: 720px) { .top { grid-template-columns: minmax(0,1fr) auto auto; grid-template-areas: "brand how who" "tickers tickers tickers" "cross cross cross"; } }

/* bottom row: testnet data (left) + proof of reserves and disclosure (right) */
.bottom-row { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 8px; margin: 0 8px 8px; align-items: start; }
.bottom-right { display: grid; gap: 8px; min-width: 0; }
.bottom-row .reserves { margin: 0; }
.testnet-data { background: var(--paper); }
.testnet-data .ph .meta { text-transform: none; }
table.tn { width: 100%; border-collapse: collapse; font-size: .74rem; }
table.tn th { text-align: left; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .62rem; color: var(--muted); padding: .38rem .7rem; border-bottom: 1px solid var(--line-2); width: 42%; vertical-align: top; }
table.tn td { padding: .38rem .7rem .38rem 0; border-bottom: 1px solid var(--line-2); word-break: break-word; }
table.tn tr:last-child th, table.tn tr:last-child td { border-bottom: 0; }
table.tn a { text-decoration-thickness: 1px; }
@media (max-width: 1100px) { .bottom-row { grid-template-columns: 1fr; } }

/* twelve currencies: compact chips, one-line rates, tables in the reserves panel */
.tickers button { min-width: 118px; padding: .3rem .5rem; }
.tickers b { font-size: .88rem; }
.cross .lbl { color: #8a8f86; letter-spacing: .1em; text-transform: uppercase; font-size: .62rem; align-self: center; }
.cross .lbl.ref { margin-left: 1.2rem; } .cross .ref { margin-left: 0; }
.cross .muted { color: #6f746b; }
.mkts { flex-wrap: wrap; }
.bal { grid-template-columns: 1fr 1fr; gap: .3rem; }
.bal .b { grid-template-columns: auto 1fr; gap: .2rem .5rem; padding: .35rem .45rem; }
.bal .b b { font-size: .9rem; } .bal .b .h { grid-column: 1 / -1; font-size: .64rem; }
.rt-wrap { overflow-x: auto; padding: .4rem .6rem; }
.rt-title { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #9a9a9a; padding: .4rem .2rem .2rem; }
table.rt { width: 100%; border-collapse: collapse; font-size: .76rem; }
table.rt th, table.rt td { padding: .35rem .5rem; border-bottom: 1px solid #2a2a2a; text-align: right; white-space: nowrap; }
table.rt thead th { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: #9a9a9a; font-weight: 700; }
table.rt tbody th { text-align: left; color: var(--lime); font-weight: 900; }
table.rt tbody tr:last-child th, table.rt tbody tr:last-child td { border-bottom: 0; }
table.rt .ok { color: var(--lime); font-weight: 800; } table.rt .bad { color: #ff6b5e; font-weight: 800; }
@media (min-width: 1100.02px) { .bottom-row { grid-template-columns: 360px minmax(0, 1fr); } }   /* only wide: below 1100px the one-column rule (above) must win, or the 360px column pushes the page sideways on a phone */
.res-grid { grid-template-columns: 1fr; }   /* the reserve tables stack; each scrolls sideways on a phone */
/* the bottom row spans the whole page: testnet data left, reserves + disclosure right, tables full width */
.below { grid-template-columns: minmax(0, 1fr); }
table.rt td.src, table.rt th.src { white-space: normal; }
table.rt .muted { white-space: normal; }
@media (min-width: 1500px) { .bottom-row { grid-template-columns: 400px minmax(0, 1fr); } table.rt { font-size: .8rem; } }

/* pair dropdown in the chart header */
.mkt-pick { display: inline-flex; align-items: center; gap: .5rem; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mkt-pick select { border: 2px solid var(--ink); background: var(--ink); color: var(--lime); font: 700 .8rem var(--mono); padding: .35rem .6rem; min-width: 260px; max-width: 100%; }
.mkt-pick select:focus { outline: none; box-shadow: 4px 4px 0 var(--lime); }

/* account security: the phone notice, the set-up steps, the PIN pad, step-up, the Security page */
.device-note { background: var(--ink); color: var(--lime); padding: .5rem 1rem; font-weight: 700; font-size: .78rem; letter-spacing: .04em; border-bottom: 2px solid var(--lime); }
.device-block { margin: 0; padding: 12px 14px; border: 1px solid #ff6b5e; color: #f2f4ee; font-size: 13px; line-height: 1.5; }
.step[hidden], .sec-form[hidden], .auth-fields[hidden], .dialogAction[hidden], .dialogFootnote a[hidden] { display: none; }
.auth-fields { display: grid; gap: 14px; }
.pinpad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pinpad button { border: 1px solid #343930; background: #0e110d; color: #f2f4ee; padding: 10px 0; font: 700 16px var(--mono); }
.pinpad button:hover { border-color: var(--lime); color: var(--lime); }
.nudge { margin: 0; padding: 10px 12px; border: 1px solid #4c5f24; background: rgba(200,255,61,.06); color: #c5c9c0; line-height: 1.5; }
.hold-note { margin: 0; padding: 10px 12px; border: 1px solid #ff6b5e; color: #f2f4ee; font-size: 12px; line-height: 1.5; }
.dialogAction:disabled { opacity: .45; cursor: not-allowed; }
.pin-lock { font-size: .7rem; color: var(--muted); letter-spacing: .04em; min-height: 1em; } .pin-lock.open { color: var(--up); font-weight: 700; }
.sec { display: grid; gap: 8px; border-top: 1px solid #252a22; padding-top: 12px; }
.sec:first-child { border-top: 0; padding-top: 0; }
.sec-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--lime); font-size: 10px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; }
.sec-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sec-list { display: grid; gap: 2px; }
.sec-row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid #1c201a; font-size: 12px; color: #c5c9c0; min-width: 0; }
.sec-row b { color: #f2f4ee; } .sec-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.sec-form { display: grid; gap: 10px; }
dialog .btn-link { color: #c5c9c0; justify-self: start; }
.badge.ok-badge { border-color: var(--lime); color: var(--lime); }

/* the profile is permanent: the warning, the review table; lost-all-keys recovery: the paper code, the three photo slots, the camera */
.kyc-pane[hidden], .rec[hidden], .rec-cam[hidden], .rec-check[hidden] { display: none; }
.kyc-warn { margin: 0; padding: 10px 12px; border: 1px solid var(--lime); background: rgba(200,255,61,.08); color: var(--lime); font-weight: 800; font-size: 12px; line-height: 1.5; letter-spacing: .02em; }
table.kyc-table { width: 100%; border-collapse: collapse; }
table.kyc-table th { text-align: left; color: #969b91; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; padding: 8px 10px 8px 0; border-bottom: 1px solid #252a22; white-space: nowrap; vertical-align: top; }
table.kyc-table td { color: #f2f4ee; font: 700 16px var(--mono); letter-spacing: .08em; padding: 8px 0; border-bottom: 1px solid #252a22; white-space: pre-wrap; overflow-wrap: anywhere; }
.kyc-chk { color: #f2f4ee; font-size: 12px; align-items: flex-start; line-height: 1.5; } .kyc-chk input { margin-top: 3px; accent-color: var(--lime); }
.rec-paper { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--lime); background: #0e110d; }
.rec-paper span { color: #969b91; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.rec-paper b { color: var(--lime); font: 900 30px var(--mono); letter-spacing: .12em; }
.rec-slots { display: grid; gap: 8px; }
.rec-slot { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 4px 10px; padding: 10px 12px; border: 1px solid #343930; }
.rec-slot.ok { border-color: #4c5f24; background: rgba(200,255,61,.05); }
.rec-slot-h { display: flex; gap: 8px; align-items: baseline; color: #f2f4ee; font-size: 12px; }
.rec-slot-h .tag { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #969b91; } .rec-slot.ok .rec-slot-h .tag { color: var(--lime); }
.rec-slot p { margin: 0; grid-column: 1; }
.rec-slot .rec-act { grid-column: 1; display: flex; gap: 8px; flex-wrap: wrap; }
.rec-slot label.btn { cursor: pointer; } .rec-slot label.btn input { display: none; }
.rec-slot canvas { grid-column: 2; grid-row: 1 / span 3; width: 96px; height: 72px; object-fit: contain; background: #0e110d; border: 1px solid #252a22; }
.rec-cam { display: grid; gap: 8px; outline: none; } .rec-cam video { width: 100%; max-height: 340px; background: #000; border: 1px solid #343930; }
#rec-video { transform: scaleX(-1); }   /* the preview only, like a mirror: the frame drawn from it (the photo) is not mirrored */
.rec-act { display: flex; gap: 8px; flex-wrap: wrap; }
.rec-count { margin: 0; min-height: 1.4em; color: var(--lime); font: 800 16px var(--mono); letter-spacing: .04em; }
.rec-check { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--lime); background: #0e110d; outline: none; }
.rec-check-h { margin: 0; color: #f2f4ee; font-size: 13px; font-weight: 700; }
.rec-check canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 65vh; background: #000; border: 1px solid #343930; }   /* 640 px wide at most (its own width), a portrait photo no taller than fits beside its buttons */
.rec-status { margin: 0; color: #f2f4ee; font-size: 13px; line-height: 1.6; }
/* ayedex.com/cancel: one form, readable on a phone too */
.cancel-page { max-width: 560px; margin: 24px auto; padding: 0 12px; }
.cancel-body { display: grid; gap: 14px; padding: 16px; }
.cancel-body h1 { margin: 0; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.02em; }
.cancel-body p { margin: 0; }
.cancel-ok { padding: 10px 12px; background: var(--lime); font-weight: 800; }

/* the narrow launch: one market, the network on every amount, "Request the next currency" */
a.cross { color: var(--lime); text-decoration: none; font-weight: 700; letter-spacing: .04em; } a.cross:hover { text-decoration: underline; }
.badge.real { border-color: var(--ink); background: var(--lime); color: var(--ink); }
.tickers .badge { margin: 0 0 0 .2rem; }
.netb:empty { display: none; }
.next-pane { padding: .7rem; display: grid; gap: .5rem; }
.next-pane .ph.small { padding: 0; }
.dm-wrap { overflow-x: auto; }
table.dm { width: 100%; border-collapse: collapse; font-size: .74rem; }
table.dm th, table.dm td { padding: .3rem .4rem; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
table.dm thead th { font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
table.dm tbody th { font-weight: 900; white-space: nowrap; }
table.dm tr.yours { background: var(--wash); }
table.dm tr.st-not_eligible { color: var(--muted); }
.dm-bar { height: 8px; border: 1px solid var(--ink); background: #fff; min-width: 60px; max-width: 160px; }
.dm-bar span { display: block; height: 100%; background: var(--lime-2); }
.dm-digest { word-break: break-all; font-size: .72rem; }
.tok-state:empty { display: none; }
.tn-list a { color: var(--lime); }
/* the order book's pair label is a button: XID/USDC ⇄ USDC/XID (sizes and totals in Ӿ or $) */
.unit-toggle { background: none; border: 0; padding: 2px 4px; font: inherit; cursor: pointer; }
.unit-toggle:hover, .unit-toggle:focus-visible { background: var(--lime); color: var(--ink); outline: none; }
/* the idle sign-out warning (app.js idleWatch): a square panel in the middle of the screen with a big countdown; under 10 seconds the
   number turns red and glows, one beat per second, like a New Year's Eve countdown */
.idle-warn { border: 0; padding: 16px; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
.idle-warn::backdrop { background: rgba(10, 10, 10, .78); }
.idle-box { width: min(440px, 100%); aspect-ratio: 1 / 1; background: #0a0a0a; color: #f4f4f1; border: 4px solid var(--lime); box-shadow: 10px 10px 0 var(--lime);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 28px; text-align: center; }
.idle-top { font-size: 11px; letter-spacing: .24em; color: var(--lime); font-weight: 700; }
.idle-box h2 { font-size: 28px; margin: 4px 0 0; color: #f4f4f1; }
.idle-num { font-size: 132px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--lime); margin-top: 8px; }
.idle-num.final { color: #ff2d2d; text-shadow: 0 0 12px #ff2d2d, 0 0 32px #ff2d2d, 0 0 64px rgba(255, 45, 45, .7); }
.idle-unit { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: #9a9a9a; }
.idle-box p { font-size: 13px; color: #c9c9c4; max-width: 30ch; margin: 10px 0 14px; }
.idle-stay { font: inherit; font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; background: var(--lime); color: #0a0a0a; border: 0; padding: 14px 26px; cursor: pointer; }
.idle-stay:hover, .idle-stay:focus-visible { background: #fff; outline: none; }
@keyframes idle-beat { 0% { transform: scale(1.18); } 100% { transform: scale(1); } }
.idle-num.final.tick { animation: idle-beat .5s ease-out; }
@media (prefers-reduced-motion: reduce) { .idle-num.final.tick { animation: none; } }
