/* Wallet actions: Пополнить, Вывести, Обмен, История and making the wallet, as nested steps of one sheet of one height. */
.w-back { flex: none; margin-left: -6px; }
.w-back[hidden] { display: none; }
.w-title-wrap { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.w-title-wrap .sheet-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-body.w-step > * { flex: none; }

/* Choosing an asset */
.w-find { width: 100%; font-size: 16px; text-align: left; }
.w-list { margin-top: -6px; }
.w-list .market-name { flex: 1 1 0; }
.w-list .asset-right { max-width: 52%; }
.w-list .asset-right b { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.w-row-sub { display: flex; align-items: center; gap: 5px; min-width: 0; }
.market-name .w-row-sub span { overflow: hidden; text-overflow: ellipsis; }
.w-results { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }

/* Shared with the buy and sell sheet, and the quick buttons of the order form */
.w-card { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--r-field); background: var(--fill); min-width: 0; }
/* The ring sits inside the field: a ring outside it is cut off where the sheet's scrolling body begins. */
.w-card:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.w-card-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; line-height: 17px; color: var(--hint); }
.w-card-top b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.w-card-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.w-token { flex: none; display: flex; align-items: center; gap: 7px; max-width: 54%; height: 40px; padding: 0 8px 0 4px; margin-left: -4px; border-radius: 20px; background: var(--card); color: var(--text); transition: transform .4s var(--spring); }
.w-token:active { transform: scale(.96); transition-duration: .1s; }
.w-token:disabled { opacity: 1; padding-right: 12px; }
.w-token b { min-width: 0; font-size: 16px; line-height: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-token .icon { flex: none; color: var(--hint); }
.w-amt { flex: 1; min-width: 0; width: 100%; height: 40px; border: 0; background: none; outline: none; padding: 0; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.02em; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); user-select: text; -webkit-user-select: text; }
/* Nothing known yet, on a device that never saw this wallet: the shapes of what comes, at its size, breathing. Never a dash. */
.w-skel, .w-skel-bal::before { animation: tk-breathe 1.5s ease-in-out infinite; }
.w-skel-dot { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--fill-strong); }
.w-skel-text { position: relative; }
.w-skel-text::before { content: ""; position: absolute; left: 0; top: 50%; width: 56px; height: 12px; margin-top: -6px; border-radius: 6px; background: var(--fill-strong); }
.w-skel-text--sub::before { width: 40px; height: 10px; margin-top: -5px; }
.w-skel-bal::before { content: ""; display: inline-block; vertical-align: middle; width: 78px; height: 11px; border-radius: 6px; background: var(--fill-strong); }
/* At the width of a GRAM chip with its chevron, so the token lands where its shape stood. */
.w-token[data-shape="wait"] { padding-right: 8px; }
.w-token .w-skel-dot { width: 28px; height: 28px; background: var(--fill); }
.w-token .w-skel-text { width: 43px; }
.w-token .w-skel-text::before { width: 100%; background: var(--fill); }
.w-token .w-skel-chev { flex: none; width: 16px; height: 16px; }

/* Пополнить */
.w-deposit { align-items: stretch; gap: 10px; }
.w-qr { align-self: center; width: 160px; height: 160px; border-radius: 16px; background: #fff; overflow: hidden; }
.w-qr:empty { background: var(--fill); }
.w-net { align-self: center; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; border: 0; border-radius: 18px; background: var(--fill); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; }
.w-net svg:last-child { color: var(--hint); }
.w-qr svg { display: block; width: 100%; height: 100%; fill: #000; }
.w-deposit .wallet-address { margin-top: 0; min-height: 60px; }
.w-note { margin: 0; text-align: center; font-size: 13px; line-height: 18px; color: var(--hint); }
.w-note--left { text-align: left; }
.w-backup-note { color: var(--danger); }

/* Вывести: the whole address is on screen, so what was pasted can be read */
.w-addr { display: block; width: 100%; height: 60px; padding: 10px 14px; border: 0; border-radius: var(--r-field); background: var(--fill); color: var(--text); font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; font-variant-numeric: tabular-nums; word-break: break-all; resize: none; outline: none; overflow: hidden; user-select: text; -webkit-user-select: text; }
.w-addr::placeholder { color: var(--hint); opacity: 1; }
.w-addr:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.w-addr:disabled { color: var(--hint); -webkit-text-fill-color: var(--hint); opacity: 1; }
/* Вывести starts with the networks: all of them in the sheet's one height, a network with nothing on it quiet */
.w-nets { margin-top: -6px; }
.w-netrow { min-height: 48px; padding-block: 6px; --sep-left: 58px; color: var(--text); }
.w-netrow > * { transition: opacity .2s ease; }
.w-netmark { flex: none; display: flex; }
.w-netname { flex: 1 1 0; min-width: 0; font-size: 16px; line-height: 21px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-netheld { flex: none; max-width: 52%; font-size: 15px; line-height: 20px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-netheld.is-wait::before { content: ""; display: block; width: 52px; height: 12px; border-radius: 6px; background: var(--fill); animation: tk-breathe 1.5s ease-in-out infinite; }
.w-netheld.is-fail { font-size: 13px; color: var(--danger); }
.w-netrow.is-quiet > * { opacity: .4; }
.w-netrow.is-quiet::after { content: none; }

/* Обмен */
.w-swap { position: relative; display: flex; flex-direction: column; gap: 6px; }
.w-pair { width: 100%; text-align: left; color: var(--text); transition: transform .4s var(--spring); }
.w-pair:active { transform: scale(.985); transition-duration: .1s; }
.w-pair .w-card-main { min-height: 40px; }
.w-pair-bal { min-width: 0; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-pair-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.w-pair-name b { font-size: 16px; line-height: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-pair-name span { font-size: 13px; line-height: 17px; color: var(--hint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-pair .icon { flex: none; color: var(--hint); }
.w-flip { position: absolute; left: 50%; top: 50%; margin-left: -18px; z-index: 1; width: 36px; height: 36px; margin-top: -18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--card); color: var(--link); box-shadow: 0 0 0 3px var(--card); transition: scale .4s var(--spring); }
.w-flip:active { scale: .9; transition-duration: .1s; }
.w-flip span { display: flex; transition: transform .5s var(--spring); }

/* История */
.w-filter .seg-btn { font-size: 13px; }
.w-log { display: flex; flex-direction: column; gap: 14px; }
.w-day { display: flex; flex-direction: column; gap: 6px; }
.w-day-name { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--hint); }
.w-tile { flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--s); height: var(--s); border-radius: 28%; background: var(--fill-strong); color: var(--text); }
.w-tx { min-height: 58px; --sep-left: 62px; gap: 10px; }
.w-tx .cell-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.w-tx-title { font-size: 15px; line-height: 20px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.w-tx-time { font-size: 13px; line-height: 17px; color: var(--hint); font-variant-numeric: tabular-nums; }
.w-tx-right { flex: none; max-width: 62%; display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.w-tx-amount { max-width: 100%; font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-tx-sub { max-width: 100%; min-height: 17px; font-size: 13px; line-height: 17px; color: var(--hint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-is-up { color: var(--green); }
.w-is-down { color: var(--red); }
.w-is-flat { color: var(--text); }
.w-detail-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 4px; text-align: center; }
.w-detail-hero b { max-width: 100%; font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.w-rows { padding: 14px 16px; }
.w-rows .summary-row > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.w-party { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; font-size: 14px; line-height: 19px; }
.w-party-label { color: var(--hint); }
.w-party-address { font-weight: 500; font-variant-numeric: tabular-nums; word-break: break-all; }
.w-party-text { overflow-wrap: anywhere; }
.w-copy { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; font: inherit; font-weight: 500; color: var(--link); }
.w-copy .icon { flex: none; }
.w-empty { padding-block: 26px; }
.w-empty .btn { margin-top: 12px; }

/* Making the wallet */
.w-setup { gap: 10px; }
.w-setup--middle { justify-content: center; }
.w-setup-mark { align-self: center; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; color: var(--green); }
.w-setup-mark--accent { color: var(--accent); }
.w-setup .wallet-address { margin-top: 0; }
.w-go:disabled { opacity: .45; }
.w-words-field { display: block; width: 100%; height: 124px; padding: 10px 14px; border: 0; border-radius: var(--r-field); background: var(--fill); color: var(--text); font: inherit; font-size: 15px; line-height: 21px; resize: none; outline: none; user-select: text; -webkit-user-select: text; }
.w-words-field::placeholder { color: var(--hint); opacity: 1; }
.w-words-field:focus { outline: 2.5px solid var(--accent); outline-offset: 1px; }
.w-words-field.is-concealed { -webkit-text-security: disc; }
.w-import .w-card-top { margin-bottom: -4px; }
.w-count { font-variant-numeric: tabular-nums; }
.w-restore-pass[hidden] { display: none; }

@container app (max-width: 350px) {
  .w-amt { font-size: 19px; }
  .w-filter .seg-btn { font-size: 12px; }
  .w-tx-title, .w-tx-amount { font-size: 14px; }
  .w-step ~ .sheet-dock .swipe-text { font-size: 14px; }
  .w-addr { font-size: 13px; line-height: 19px; padding-block: 11px; }
  .w-qr { width: 148px; height: 148px; }
}

/* The wallets of this account: the switcher on Портфель and its sheet. */
.wl-switch-pad { padding-bottom: 8px; }
.wl-switch { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 32px; padding: 0 10px; border: 0; border-radius: 16px; background: var(--fill); color: var(--text); font: inherit; font-size: 14px; line-height: 18px; min-width: 0; }
.wl-switch-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wl-switch-addr { color: var(--hint); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.wl-switch svg { color: var(--hint); flex: none; }
.wl-list { display: block; }
.wl-row { display: flex; align-items: stretch; min-width: 0; box-shadow: inset 0 -.5px 0 var(--sep); }
.wl-row:last-child { box-shadow: none; }
.wl-pick { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; height: 56px; padding: 0 4px 0 10px; border: 0; background: none; color: var(--text); font: inherit; text-align: start; }
.wl-mark { flex: none; width: 18px; display: flex; justify-content: center; color: var(--accent); }
.wl-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wl-main b { font-size: 15px; line-height: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-main span { font-size: 12px; line-height: 16px; color: var(--hint); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-sum { flex: none; max-width: 40%; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-edit { flex: none; width: 40px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--hint); }
.wl-dock { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wl-dock .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; white-space: nowrap; }
.wl-dock .btn:disabled { opacity: .45; }
.wl-bring { display: block; margin: 10px auto 0; }
.wl-remove { display: block; margin: 4px auto 0; color: var(--danger); }
.wl-remove:disabled { opacity: .45; }
.wl-remove-name { display: block; text-align: center; font-size: 16px; line-height: 21px; font-weight: 600; overflow-wrap: anywhere; }
.wl-stays { margin: 0; padding-inline: 0; }
.wl-danger { background: var(--danger); color: #fff; }
