/* The Desks tab (desks-tab.js and desk-*.js): the picker, each desk's main column, its order card in #rail and the
   positions under it. Built on rh.css's order card and the tokens in pro.css and dark.css, so light and dark follow. */

/* ------------------------------------------------------------------ the main column */
.dk-lede { margin-top: 8px; max-width: 46em; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.dk-main .big { margin-top: 14px; }
.dk-main .sec2:first-of-type { margin-top: 28px; }
.dk-foot { margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--text-3); max-width: 52em; }
.dk-empty { padding: 14px 0; font-size: 14px; color: var(--text-3); }
.dk-mono { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--sunk); font: 700 12px var(--ui); color: var(--text-2); letter-spacing: .02em; }
.asset-items .dk-mono { width: 28px; height: 28px; font-size: 12px; }

/* The two legs of a pair, side by side. */
.dk-legs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.dk-leg { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s; }
.dk-leg:hover { border-color: var(--line-2); }
.dk-leg img { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); }
.dk-leg small { display: block; font-size: 12px; color: var(--text-3); }
.dk-leg b { font-weight: 650; font-variant-numeric: tabular-nums; }
.dk-leg .r { text-align: right; }
.dk-legs:empty { display: none; }

/* A list of rows you can pick from (every farm, every coin): logo, name and a line, a pill. */
.dk-tlist { display: grid; }
.dk-trow { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.dk-trow img { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); }
.dk-trow .dk-mono { width: 28px; height: 28px; font-size: 12px; }
.dk-trow b { display: block; font-weight: 650; font-size: 15px; }
.dk-trow small { display: block; font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-trow:hover b { color: var(--act-ink); }
.dk-trow.on b { color: var(--act-ink); }
.dk-trow .r { text-align: right; font-variant-numeric: tabular-nums; }
.dk-trow .r b { font-size: 14px; }
.dk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dk-chips:empty { display: none; }
.dk-chips .chip2 { height: 36px; }

/* What can go wrong: a title and a line each, two columns on a wide screen. */
.dk-risks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.dk-risks li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.dk-risks b { display: block; font-weight: 650; font-size: 15px; }
.dk-risks span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
@media (max-width: 760px) { .dk-risks { grid-template-columns: minmax(0, 1fr); } }

/* A table in the main column (the options chain, the coin board). */
.dk-table { margin-top: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dk-table table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.dk-table th, .dk-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.dk-table th { font-size: 13px; font-weight: 600; color: var(--text-3); }
.dk-table th:first-child, .dk-table td:first-child { text-align: left; padding-left: 0; }
.dk-table tbody tr { cursor: pointer; }
.dk-table tbody tr:hover td { background: var(--sunk); }
.dk-table tr.on td { color: var(--act-ink); font-weight: 650; }
.dk-table tr.atm td { border-bottom-color: var(--act); }
.dk-table td.dim { color: var(--text-3); }
.dk-table td.mid { text-align: center; font-weight: 650; background: var(--sunk); }
.dk-table th.mid { text-align: center; }
.dk-table td.dk-cell { cursor: pointer; }
.dk-table td.dk-cell:hover, .dk-table td.dk-cell.on { color: var(--act-ink); }
.dk-table td.dk-cell.on { font-weight: 700; box-shadow: inset 0 -2px 0 var(--act); }

/* ------------------------------------------------------------------ the picker */
.dk-list { display: grid; margin-top: 24px; border-top: 1px solid var(--line); }
.dk-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 18px; align-items: center; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .15s; }
.dk-item:hover { background: var(--sunk); }
.dk-item:hover .dk-it b { color: var(--act-ink); }
.dk-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sunk); color: var(--ink); }
.dk-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dk-it b { display: block; font-weight: 650; font-size: 17px; letter-spacing: -.01em; transition: color .15s; }
.dk-it small { display: block; margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.dk-iv { text-align: right; font-variant-numeric: tabular-nums; }
.dk-iv b { display: block; font-weight: 650; color: var(--act-ink); }
.dk-iv small { display: block; font-size: 12px; color: var(--text-3); max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-go-ic { color: var(--text-3); }

/* ------------------------------------------------------------------ the order card in #rail */
/* #rail is rh.css's .panel; the card inside it drops its own frame. */
#rail.dk-railhost { overflow: visible; }
#rail .dk-order { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
:root[data-theme="dark"] #rail .dk-order { background: transparent; box-shadow: none; }
.dk-order .order-head { padding: 18px 22px 0; }
.dk-order .dk-title { font: 650 19px/1.25 var(--ui); letter-spacing: -.01em; }
.dk-order .dk-tabs { margin-top: 12px; }
.dk-order .dk-tabs[hidden] { display: none; }
.dk-order .order-body { padding: 4px 22px 20px; }
.dk-order .draft > * + * { margin-top: 0; }

/* Segmented controls (the side, a strike, a basket, a target). */
.dk-segs { display: grid; gap: 8px; margin-top: 14px; }
.dk-segs[hidden] { display: none; }
.dk-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 12px; background: var(--sunk); }
.dk-seg button { flex: 1 1 auto; min-width: 0; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; font: 650 14px var(--ui); color: var(--text-2); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.dk-seg button:hover { color: var(--ink); }
.dk-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(13, 13, 15, .12), 0 0 0 1px var(--line); }
:root[data-theme="dark"] .dk-seg button[aria-pressed="true"] { background: var(--line-2); box-shadow: none; }

/* The picks: one dropdown, or two side by side (a pair's legs). */
.dk-picks { display: grid; gap: 10px; margin-top: 14px; }
.dk-picks[hidden] { display: none; }
.dk-picks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dk-picks .asset-pick { margin-top: 0; }
.dk-plabel { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.dk-plabel:empty { display: none; }
.dk-picks.two .asset-btn { grid-template-columns: 28px minmax(0, 1fr) 14px; gap: 8px; padding: 8px 10px; }
.dk-picks.two .asset-btn img, .dk-picks.two .asset-btn .dk-mono { width: 28px; height: 28px; font-size: 12px; }
.dk-picks.two .asset-btn .px { display: none; }
.dk-picks.two .asset-btn b { font-size: 15px; }
.dk-picks.two .asset-menu { min-width: min(320px, calc(100vw - 32px)); }
.dk-picks.two .dk-pickbox:last-child .asset-menu { left: auto; right: 0; }
.asset-btn .dk-mono { width: 34px; height: 34px; }
.asset-btn.noicon, .dk-picks.two .asset-btn.noicon { grid-template-columns: minmax(0, 1fr) auto 16px; }
.asset-items button.noicon { grid-template-columns: minmax(0, 1fr) auto; }
.asset-menu { background: var(--surface); }

/* An amount: the label on the left, the field on the right, the balance on a line under both. */
.dk-f { flex-wrap: wrap; gap: 4px 14px; min-height: 0; padding: 10px 0; }
.dk-f .dk-fl { flex: 1 1 auto; min-width: 0; font-weight: 500; color: var(--ink); cursor: text; }
.dk-f .dk-fs { flex: 1 0 100%; order: 3; font-size: 13px; line-height: 1.35; color: var(--text-3); }
.dk-f .dk-fs:empty { display: none; }
.dk-fr label { display: grid; flex: 1 1 140px; min-width: 0; }
.dk-fr label .dk-fl { flex: none; }
.dk-fr label .dk-fs { flex: none; order: 0; }
.dk-in { display: inline-flex; align-items: center; flex: none; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.dk-in:focus-within { border-color: var(--act); box-shadow: 0 0 0 3px rgba(220, 106, 53, .15); }
.orow .dk-in input { width: 112px; height: 38px; padding: 0 4px 0 12px; border: 0; border-radius: 10px; background: transparent; box-shadow: none; text-align: right; font: 650 16px var(--ui); color: var(--ink); outline: 0; }
.orow .dk-in input:focus { box-shadow: none; }
.dk-unit { padding-right: 10px; font-size: 13px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.dk-unit[hidden] { display: none; }
.dk-max { margin-right: 6px; padding: 4px 8px; border: 0; border-radius: 8px; background: var(--sunk); font: 650 12px var(--ui); color: var(--act-ink); cursor: pointer; }
.dk-max[hidden] { display: none; }
.dk-f.bad .dk-in { border-color: var(--down); }
.dk-ftext .dk-in { flex: 1 1 180px; max-width: 220px; }
.orow.dk-ftext .dk-in input { width: 100%; text-align: left; font-weight: 600; }
.dk-fr { flex-wrap: wrap; padding: 8px 0 12px; }
.dk-range { display: flex; align-items: center; gap: 12px; flex: 1 1 180px; }
.dk-range input { flex: 1; min-width: 0; accent-color: var(--act); }
.dk-rv { min-width: 56px; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }

.dk-rows .orow { min-height: 46px; font-size: 15px; }
.dk-rows .orow > span { color: var(--text-2); }
.dk-rows .orow b { text-align: right; }
.dk-rows .orow b.up { color: var(--up); }
.dk-rows .orow b.down { color: var(--down); }
.dk-rows .orow:last-child { border-bottom: 0; }
.dk-extra:empty { display: none; }
.dk-go { margin-top: 16px; }
.dk-go:disabled, .dk-submit:disabled { background: var(--line-2); color: var(--text-3); cursor: not-allowed; filter: none; transform: none; }
:root[data-theme="dark"] .dk-go:disabled, :root[data-theme="dark"] .dk-submit:disabled { background: var(--line-2); color: var(--text-2); }
.dk-note { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--text-2); text-align: center; }
.dk-note.warn { color: var(--down); }
.dk-note[hidden] { display: none; }
.dk-order .fine { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.dk-order .fine[hidden] { display: none; }

/* Review: the sentence, the wallet's steps, the risk line, the button. */
.dk-order .review .sum { margin-top: 16px; }
.dk-sub { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; font-weight: 650; color: var(--text-3); text-transform: none; }
.dk-risk { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--down) 8%, transparent); color: var(--ink); font-size: 14px; line-height: 1.5; }
.dk-risk[hidden] { display: none; }

/* The wallet's steps, planned (review) and as they happen (pending). */
.dk-steps { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.dk-steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; line-height: 1.4; }
.dk-steps small { display: block; font-size: 13px; color: var(--text-3); }
.dk-steps small a { color: var(--act-ink); font-weight: 600; text-decoration: none; }
.dk-sn { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); font: 700 12px var(--ui); color: var(--text-3); }
.dk-steps li[data-state="wallet"] .dk-sn, .dk-steps li[data-state="chain"] .dk-sn { border-color: var(--act); color: var(--act-ink); animation: dk-pulse 1.2s ease-in-out infinite; }
.dk-steps li[data-state="done"] .dk-sn { border-color: var(--up); background: var(--up); color: #fff; }
.dk-steps li[data-state="fail"] .dk-sn { border-color: var(--down); background: var(--down); color: #fff; }
@keyframes dk-pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--act) 18%, transparent); } }

/* The card's states: rh.css shows .review while reviewing and .success when done; pending and failed are these. */
.dk-order .dk-pending, .dk-order .dk-error { display: none; }
.dk-order.pending .draft, .dk-order.pending .review, .dk-order.failed .draft, .dk-order.failed .review { display: none; }
.dk-order.pending .dk-pending { display: block; padding: 18px 0 4px; }
.dk-order.failed .dk-error { display: block; padding: 18px 0 4px; }
.dk-order.done .fine, .dk-order.pending .fine, .dk-order.failed .fine { display: none; }
.dk-ph { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.dk-ph b { font-weight: 650; }
.dk-say { margin-top: 10px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.dk-say:empty { display: none; }
.dk-spin { display: inline-block; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--act) 25%, transparent); border-top-color: var(--act); animation: dk-spin .8s linear infinite; }
@keyframes dk-spin { to { transform: rotate(360deg); } }
.dk-error h3 { font: 650 18px var(--ui); color: var(--down); }
.dk-etext { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.dk-error .pill-btn { margin-top: 16px; }
.dk-links { display: grid; gap: 6px; margin-top: 12px; }
.dk-links .dk-steps { margin: 4px auto 0; max-width: 300px; max-height: 260px; overflow: auto; text-align: left; }
.dk-links a { color: var(--act-ink); font-weight: 650; font-size: 14px; text-decoration: none; }
.dk-links a:hover { text-decoration: underline; }
.dk-order .success .pill-btn { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .dk-spin, .dk-steps li .dk-sn { animation: none !important; } }

/* Small extras inside a card: a link button, a list of checkboxes, the legs of a basket, a result. */
.dk-link { margin-top: 10px; padding: 0; border: 0; background: none; font: 650 14px var(--ui); color: var(--act-ink); cursor: pointer; }
.dk-link:hover { text-decoration: underline; }
.dk-checks { display: grid; margin-top: 10px; border-top: 1px solid var(--line); }
.dk-check { display: grid; grid-template-columns: 18px 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.dk-check img { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); }
.dk-check b { display: block; font-weight: 650; }
.dk-check small { display: block; font-size: 12px; color: var(--text-3); }
.dk-check em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.dk-check.off { opacity: .6; cursor: default; }
.dk-check input, .dk-tick input, .dk-ownrow input[type="checkbox"] { accent-color: var(--act); width: 16px; height: 16px; margin: 0; }
.dk-tick { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.dk-result { display: grid; gap: 4px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--sunk); font-size: 14px; }
.dk-result small { color: var(--text-2); }
.dk-legrows { display: grid; margin-top: 10px; border-top: 1px solid var(--line); }
.dk-legrow { display: grid; grid-template-columns: 52px 44px minmax(0, 1fr) auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-variant-numeric: tabular-nums; }
.dk-legrow span { color: var(--text-2); }
.dk-legrow span:last-child { text-align: right; }
.dk-own { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin-top: 12px; }
.dk-ownrow { display: grid; grid-template-columns: 16px minmax(0, 1fr) 54px 12px; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.dk-ownrow input[type="text"] { width: 54px; height: 30px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); text-align: right; font: 600 13px var(--ui); }
.dk-ownrow input[type="text"]:disabled { opacity: .45; }
.dk-ownrow i { font-style: normal; color: var(--text-3); }
.dk-own .dk-link { grid-column: 1 / -1; justify-self: start; }
.dk-text { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); font: 500 15px var(--ui); outline: 0; }
.dk-text:focus { border-color: var(--act); box-shadow: 0 0 0 3px rgba(220, 106, 53, .15); }
.dk-form { display: grid; gap: 10px; margin-top: 12px; }
.dk-form label > span { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.dk-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--sunk); font-size: 14px; word-break: break-all; }
.dk-code b { font-weight: 650; }
.dk-code button { flex: none; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); font: 600 13px var(--ui); cursor: pointer; }

/* ------------------------------------------------------------------ your positions, under the card */
.dk-pos { padding: 4px 22px 18px; border-top: 1px solid var(--line); }
.dk-pos[hidden] { display: none; }
.dk-pos-head { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0 6px; }
.dk-pos-head h3 { font: 650 16px var(--ui); }
.dk-pos-head span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--sunk); font-size: 13px; font-weight: 650; text-align: center; color: var(--text-2); }
.dk-prow { padding: 14px 0; border-bottom: 1px solid var(--line); }
.dk-prow:last-child { border-bottom: 0; }
.dk-prow.done { opacity: .7; }
.dk-ptop { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dk-ptop b { font-weight: 650; font-size: 15px; }
.dk-ptop small { display: block; font-size: 13px; color: var(--text-3); }
.dk-pnl { font-size: 13px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dk-pnl.up { color: var(--up); }
.dk-pnl.down { color: var(--down); }
.dk-prow dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin-top: 10px; }
.dk-prow dt { font-size: 12px; color: var(--text-3); }
.dk-prow dd { margin-top: 1px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dk-prow dd.up { color: var(--up); }
.dk-prow dd.down { color: var(--down); }
.dk-health { height: 5px; margin-top: 12px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.dk-health i { display: block; height: 100%; border-radius: 999px; background: var(--up); }
.dk-health i.warm { background: var(--gold, #EDB25A); }
.dk-health i.hot { background: var(--down); }
.dk-hl { margin-top: 5px; font-size: 12px; color: var(--text-3); }
.dk-pnote { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.dk-pacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dk-pbtn { height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); font: 650 14px var(--ui); cursor: pointer; transition: border-color .15s, color .15s; }
.dk-pbtn:hover:not(:disabled) { border-color: var(--act); color: var(--act-ink); }
.dk-pbtn.danger { border-color: color-mix(in srgb, var(--down) 45%, var(--line-2)); color: var(--down); }
.dk-pbtn:disabled { opacity: .5; cursor: not-allowed; }
.dk-pstatus { position: relative; display: grid; gap: 6px; margin: 4px 0 8px; padding: 10px 34px 10px 12px; border-radius: 10px; background: var(--sunk); font-size: 14px; line-height: 1.45; }
.dk-pstatus > .dk-spin { position: absolute; right: 12px; top: 12px; }
.dk-pstatus.ok { background: color-mix(in srgb, var(--up) 10%, transparent); }
.dk-pstatus.bad { background: color-mix(in srgb, var(--down) 10%, transparent); }
.dk-pstatus a { color: var(--act-ink); font-weight: 650; text-decoration: none; }
.dk-x { position: absolute; right: 8px; top: 6px; width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; color: var(--text-3); font-size: 18px; line-height: 1; cursor: pointer; }
.dk-pos .dk-empty { padding: 8px 0 4px; }

/* The rail beside the picker. */
.dk-sum { padding-top: 8px; }
.dk-sumrow { color: inherit; text-decoration: none; }
.dk-sumrow:hover span { color: var(--act-ink); }
.dk-sum .pill-btn { margin-top: 6px; }

/* The pinned button that takes a phone to the card (rh.css's .mtrade, for the desks). */
.dk-jump { display: none; }
@media (max-width: 980px) {
  .dk-jump { display: flex; position: fixed; z-index: 40; left: 16px; right: 16px; bottom: 16px; height: 52px; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--act); color: #fff; font: 650 16px var(--ui); box-shadow: 0 14px 30px -12px rgba(180, 81, 31, .55); cursor: pointer; transition: opacity .2s, transform .2s; }
  .dk-jump.away { opacity: 0; transform: translateY(12px); pointer-events: none; }
  body.rh.tabview .dk-main { padding-bottom: 72px; }
  :root[data-theme="dark"] .dk-jump { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7); }
}

/* ------------------------------------------------------------------ narrow screens */
@media (max-width: 640px) {
  .dk-legs { grid-template-columns: minmax(0, 1fr); }
  .dk-item { grid-template-columns: 40px minmax(0, 1fr) 16px; gap: 12px; padding: 16px 0; }
  .dk-item .dk-iv { display: none; }
  .dk-ic { width: 40px; height: 40px; }
  .orow .dk-in input { width: 96px; }
  .dk-order .order-head, .dk-order .order-body, .dk-pos { padding-left: 18px; padding-right: 18px; }
  .dk-own { grid-template-columns: minmax(0, 1fr); }
  .dk-seg button { padding: 7px 8px; font-size: 13px; }
}
@media (max-width: 380px) {
  .dk-picks.two { grid-template-columns: minmax(0, 1fr); }
  .orow .dk-in input { width: 84px; }
}

/* Listing a coin: each on-chain check, pass or fail. */
.dk-checks2 { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.dk-checks2 li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; line-height: 1.4; }
.dk-checks2 i { font-style: normal; font-size: 12px; font-weight: 700; text-align: center; padding: 2px 0; border-radius: 6px; }
.dk-checks2 li.ok i { background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--up); }
.dk-checks2 li.no i { background: color-mix(in srgb, var(--down) 14%, transparent); color: var(--down); }
.dk-checks2 small { display: block; color: var(--text-3); font-size: 12px; }
.dk-mine { margin-top: 8px; }
.dk-form .dk-upload[hidden] { display: none; }
.dk-form input[type="file"] { font-size: 13px; }
.dk-foot a { color: var(--act-ink); font-weight: 650; text-decoration: none; }
.dk-foot a:hover { text-decoration: underline; }
