/* ── Noma · ledger page ─────────────────────────────────────────
   The app slab on the usual.money skeleton: one dark ground, cards
   in --card, white pills, mono for anything that is an address. */

.ledger { min-height: 100vh; padding: 56px 0 100px; }
.ledger .head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; margin-bottom: 36px; }
.ledger .head .h1 { font-size: clamp(40px, 5vw, 64px); margin-top: 10px; }
.ledger .head p { margin-top: 16px; max-width: 520px; font-size: 16px; line-height: 1.55; color: var(--grey-d); }
.ledger .k { font-size: 12px; color: var(--grey-d); }
.ledger .v { font-size: 15px; font-weight: 600; margin-top: 4px; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: -0.01em; }

.vaultcard { background: var(--card); border-radius: 22px; padding: 26px 28px; }
.vaultcard .v a { color: var(--sky, #7cc0ff); }
.vaultcard .pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08); }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card.step { position: relative; display: flex; flex-direction: column; }
.card .stepno { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card .h3 { font-size: 22px; }
.card p { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--grey-d); }
.card .pill-white, .card .pill { margin-top: 20px; align-self: flex-start; }
.card .pill-white.sm { height: 42px; padding: 0 20px; font-size: 14px; box-shadow: none; }
.card button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.card button:disabled:hover { background: #fff; color: var(--ink); }
.hint { margin-top: 14px; font-size: 12px !important; color: #77777f !important; }

.wallets { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.wallets button { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 16px; border-radius: 14px; background: #1a1a1d; color: #fff; font-size: 14px; font-weight: 600; text-align: left; transition: background .2s; }
.wallets button:hover { background: #242428; }
.wallets button img { width: 24px; height: 24px; border-radius: 6px; }
.wallets .none { font-size: 13px; color: var(--grey-d); line-height: 1.5; }
.wallets .none a { color: var(--sky, #7cc0ff); }

.info { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.info .row, .list .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--grey-d); padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.07); }
.info .row b, .list .row b { color: #fff; font-weight: 600; font-size: 13px; }
.info .row b.mono { font-size: 12px; }
.linkbtn { color: var(--sky, #7cc0ff); font-size: 13px; font-weight: 600; background: none; padding: 0; }
.linkbtn:hover { color: #fff; }
.linkbtn:disabled { color: #55555c; cursor: not-allowed; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.form select, .form input, .sheet select, .sheet input { height: 50px; padding: 0 16px; border-radius: 14px; background: #1a1a1d; color: #fff; font: 500 14px var(--sans); border: 1px solid transparent; outline: none; width: 100%; -webkit-appearance: none; appearance: none; }
.form input:focus, .sheet input:focus, .form select:focus, .sheet select:focus { border-color: var(--blue); }
.form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.sheet select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form .pill-white { grid-column: 1 / -1; height: 50px; margin-top: 4px; width: 100%; }
.list { margin-top: 18px; display: flex; flex-direction: column; }
.list .empty, .positions .empty { font-size: 13px; color: #77777f; padding: 12px 0; }
.list .row .st { font-size: 11px; padding: 3px 9px; border-radius: 10px; background: #1a1a1d; color: var(--grey-d); white-space: nowrap; }
.list .row .st.ok { color: #22c55e; background: rgba(34,197,94,0.1); }
.list .row .st.wait { color: var(--sky, #7cc0ff); background: rgba(48,144,248,0.12); }
.list .row a { color: var(--sky, #7cc0ff); }

.portfolio { margin-top: 16px; }
.portfolio .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.portfolio .top .right { text-align: right; }
.portfolio .big { font-family: var(--sans); font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.portfolio .top .pill.sm { height: 34px; padding: 0 14px; font-size: 12px; margin-top: 12px; }
.positions { margin-top: 24px; display: flex; flex-direction: column; }
.pos { display: grid; grid-template-columns: 40px 1.2fr 1fr 1fr auto; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.07); }
.pos .logo { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pos .logo img { width: 26px; height: 26px; object-fit: contain; }
.pos .logo.b { color: var(--ink); font-weight: 700; font-size: 15px; }
.pos .sym { font-size: 16px; font-weight: 700; }
.pos .sub { text-align: left; margin: 2px 0 0; font-size: 12px; color: var(--grey-d); max-width: none; }
.pos .num { font-size: 15px; font-weight: 600; }
.pos .num small { display: block; font-size: 12px; color: var(--grey-d); font-weight: 500; margin-top: 2px; }
.pos .acts { display: flex; gap: 8px; }
.pos .acts button { height: 36px; padding: 0 16px; border-radius: 20px; background: #1a1a1d; color: #fff; font-size: 13px; font-weight: 600; transition: background .2s; }
.pos .acts button:hover { background: var(--blue); }
.pos .acts button.primary { background: #fff; color: var(--ink); }
.pos .acts button.primary:hover { background: var(--blue); color: #fff; }
.pos .acts button:disabled { opacity: 0.4; cursor: not-allowed; }
.pos .pend { font-size: 11px; color: var(--sky, #7cc0ff); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.sheet { position: relative; width: min(460px, 100%); background: var(--card); border-radius: 24px; padding: 30px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.sheet .x { position: absolute; top: 16px; right: 18px; width: 34px; height: 34px; border-radius: 50%; background: #1a1a1d; color: #fff; font-size: 20px; line-height: 1; }
.sheet .h3 { font-size: 24px; }
.sheet p { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--grey-d); }
.sheet label { display: block; margin-top: 18px; font-size: 12px; color: var(--grey-d); margin-bottom: 8px; }
.sheet .quote { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #0b0b0d; font-size: 13px; color: var(--grey-d); display: flex; flex-direction: column; gap: 6px; }
.sheet .quote b { color: #fff; }
.sheet .quote div { display: flex; justify-content: space-between; }
.sheet .pill-white { margin-top: 22px; width: 100%; height: 52px; }
.sheet .pill-white:disabled { opacity: 0.4; transform: none; cursor: not-allowed; }
.sheet .err { margin-top: 12px; font-size: 13px; color: #ff6b6b; }
.sheet .maxbtn { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 700; color: var(--blue); }
.sheet .field { position: relative; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200; background: #fff; color: var(--ink); padding: 12px 20px; border-radius: 30px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 40px rgba(0,0,0,0.4); max-width: min(600px, calc(100% - 40px)); }
.toast.err { background: #ff6b6b; color: #fff; }
.toast a { text-decoration: underline; }

.footer.app { padding: 60px 0 40px; }
.footer.app .bottom { margin-top: 0; }

@media (max-width: 960px) {
  .ledger .head, .steps-grid, .two { grid-template-columns: 1fr; }
  .pos { grid-template-columns: 40px 1fr 1fr; }
  .pos .num:nth-child(4) { display: none; }
  .pos .acts { grid-column: 1 / -1; }
  .nav .links { display: none; }
  .nav .burger { display: flex; }
}

[hidden] { display: none !important; }
