/* Zyn Lend — the landing page's stone, put to work.
   Obsidian and mineral are the ground; jade is a material, never a flat
   accent. Markets are core samples: the lower stratum is what is lent out.
   Oxide is the only warm colour, and it only ever means "near the line". */

@font-face { font-family: Archivo; src: url(/assets/fonts/Archivo-Variable.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: Geist; src: url(/assets/fonts/Geist-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(/assets/fonts/GeistMono-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --obsidian: #06110e;
  --stone-1: #0b1915;
  --stone-2: #10221d;
  --stone-3: #173029;
  --stone-4: #22403a;
  --mineral: #f2f1eb;
  --mineral-2: #d8d6cb;
  --steel: #8a9691;
  --steel-2: #6b7772;
  --jade: #0b7a61;
  --jade-2: #13a07e;
  --jade-3: #58e8bb;
  --mint: #35e6ae;
  --ochre: #d8b25c;
  --oxide: #e8794f;
  --display: Archivo, 'Arial Black', sans-serif;
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1240px;
  --line: rgba(242, 241, 235, 0.09);
  --brushed: linear-gradient(100deg, #0a6b55 0%, #1fb489 22%, #7af5cf 38%, #16a07d 52%, #0b7a61 70%, #3fd8a8 86%, #0b7a61 100%);
  --brushed-text: linear-gradient(100deg, #2fc497 0%, #6ff0c8 30%, #c6fff0 42%, #45dcac 56%, #20b387 76%, #5ee9bd 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: radial-gradient(1200px 640px at 85% 0%, #10251f 0%, rgba(6, 17, 14, 0) 70%) no-repeat, var(--obsidian); color: var(--mineral); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
[hidden] { display: none !important; }
.num, dd, .unit, .net { font-variant-numeric: tabular-nums; }

.grain { position: fixed; inset: -50%; z-index: 0; pointer-events: none; opacity: 0.055; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 14px max(var(--gutter), calc((100vw - var(--max)) / 2)); background: rgba(6, 17, 14, 0.86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.lockup { display: flex; align-items: center; gap: 11px; text-decoration: none; font: 850 21px/1 var(--display); font-stretch: 125%; letter-spacing: 0.02em; }
.lockup img { width: 34px; height: 34px; }
.lockup-app { font-weight: 500; font-stretch: 100%; letter-spacing: 0.01em; color: var(--steel); padding-left: 11px; border-left: 1px solid var(--line); }
.tabs { display: flex; gap: 26px; font-size: 15px; justify-self: center; }
.tabs a { text-decoration: none; color: var(--steel); padding: 6px 0; transition: color .2s; }
.tabs a:hover { color: var(--mineral); }
.tabs a[aria-current='page'] { color: var(--mineral); box-shadow: inset 0 -1px 0 var(--jade-3); }
.top-right { display: flex; align-items: center; gap: 12px; }
.net { font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--jade-3); padding: 7px 9px; border: 1px solid rgba(88, 232, 187, 0.28); border-radius: 999px; }
.connect { cursor: pointer; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px; color: #03120d; background: var(--brushed); background-size: 180% 100%; transition: background-position .5s; }
.connect:hover { background-position: 100% 0; }
.connect.on { color: var(--mineral); background: var(--stone-2); box-shadow: inset 0 0 0 1px var(--stone-4); font-family: var(--mono); font-weight: 500; font-size: 13px; }

.preview { position: relative; z-index: 1; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; padding: 10px max(var(--gutter), calc((100vw - var(--max)) / 2)); font-size: 14px; color: var(--mineral-2); background: repeating-linear-gradient(135deg, rgba(216, 178, 92, 0.07) 0 10px, transparent 10px 20px), var(--stone-1); box-shadow: 0 1px 0 var(--line); }
.preview b { font: 600 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre); }

main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter) 72px; }

/* ------------------------------------------------------------ type */
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--jade-3); margin-bottom: 18px; }
.display { font: 850 clamp(40px, 6.4vw, 84px)/0.95 var(--display); font-stretch: 118%; letter-spacing: -0.01em; text-wrap: balance; background: var(--brushed-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.display-s { font-size: clamp(30px, 4vw, 44px); margin-bottom: 26px; }
.lede { max-width: 52ch; margin-top: 20px; font-size: clamp(16px, 1.5vw, 18px); color: var(--mineral-2); }
.h2 { font: 750 clamp(20px, 2.2vw, 26px)/1.15 var(--display); font-stretch: 112%; margin-bottom: 10px; }
.sub { max-width: 68ch; color: var(--steel); font-size: 15px; }

/* ------------------------------------------------------------ markets */
.intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.ledger { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.ledger div { padding: 16px 0 14px; border-bottom: 1px solid var(--line); }
.ledger div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.ledger div:nth-child(even) { padding-left: 18px; }
.ledger dt { font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); margin-bottom: 9px; }
.ledger dd { font: 500 clamp(19px, 2vw, 24px)/1.1 var(--mono); }

.cores { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); margin: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.core { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 20px; padding: 22px 22px 20px; background: linear-gradient(180deg, var(--stone-1), rgba(11, 25, 21, 0.4)); border: 1px solid var(--line); border-radius: 14px; animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.core:nth-child(2) { animation-delay: .08s; }
.core:nth-child(3) { animation-delay: .16s; }
.core-head { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.core-sym { font: 850 30px/1 var(--display); font-stretch: 125%; }
.core-sym small { font: 500 13px/1 var(--mono); color: var(--steel); margin-left: 4px; letter-spacing: 0.04em; font-stretch: 100%; }
.core-price { font: 500 15px/1 var(--mono); color: var(--mineral-2); }
.core-name { grid-column: 1 / -1; margin-top: -12px; font-size: 13px; color: var(--steel); }
.ex { margin-left: 8px; font: 600 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ochre); }
/* the sample itself: a stone column, lent-out stratum at the bottom */
.sample { position: relative; height: 212px; border-radius: 40px; overflow: hidden; background:
    repeating-linear-gradient(0deg, rgba(242, 241, 235, 0.035) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, var(--stone-3), var(--stone-2)); box-shadow: inset 0 0 0 1px rgba(242, 241, 235, 0.07), inset 8px 0 14px rgba(0, 0, 0, 0.35); }
.stratum { position: absolute; left: 0; right: 0; bottom: 0; height: var(--u, 0%); background: var(--brushed); background-size: 100% 300%; box-shadow: 0 -1px 0 rgba(198, 255, 240, 0.7), inset 8px 0 14px rgba(0, 0, 0, 0.25); animation: fill 1.1s cubic-bezier(.2, .7, .2, 1) .25s both; }
.stratum::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(6, 17, 14, 0.18) 0 1px, transparent 1px 7px); }
.kink { position: absolute; left: -4px; right: -4px; bottom: 80%; height: 0; border-top: 1px dashed rgba(242, 241, 235, 0.35); }
.sample-u { position: absolute; z-index: 1; left: 50%; top: 10px; transform: translateX(-50%); padding: 6px 7px 5px; border-radius: 8px; text-align: center; font: 600 13px/1 var(--mono); color: var(--mineral); background: rgba(6, 17, 14, 0.78); box-shadow: 0 0 0 1px rgba(242, 241, 235, 0.08); }
.sample-u small { display: block; margin-top: 4px; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); font-weight: 500; }
.core-stats { display: grid; align-content: start; }
.core-stats div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.core-stats dt { color: var(--steel); }
.core-stats dd { font-family: var(--mono); font-size: 13.5px; }
.core-stats .rate dd { color: var(--jade-3); font-size: 15px; }
.core-risk { grid-column: 1 / -1; font-size: 12.5px; color: var(--steel); }
.core-risk b { color: var(--mineral-2); font-weight: 500; font-family: var(--mono); }
.core-act { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.core-act a { text-align: center; text-decoration: none; padding: 11px 0; border-radius: 10px; font-weight: 600; font-size: 14px; background: var(--stone-2); box-shadow: inset 0 0 0 1px var(--stone-4); transition: box-shadow .2s, background .2s; }
.core-act a:hover { box-shadow: inset 0 0 0 1px var(--jade-2); background: var(--stone-3); }

.check { margin-bottom: clamp(48px, 7vw, 88px); }
.check-rows { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pair { padding: 16px 18px; background: var(--obsidian); display: grid; gap: 6px; }
.pair-name { display: flex; justify-content: space-between; align-items: center; font: 600 15px/1 var(--mono); }
.chip { font: 600 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 7px; border-radius: 6px; }
.chip.ok { color: var(--jade-3); background: rgba(88, 232, 187, 0.1); }
.chip.paused { color: var(--oxide); background: rgba(232, 121, 79, 0.12); }
.chip.none { color: var(--steel); background: rgba(138, 150, 145, 0.12); }
.pair p { font-size: 13px; color: var(--steel); }
.pair p b { font-family: var(--mono); font-weight: 500; color: var(--mineral-2); }

.risk-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.risk-grid article { padding-top: 16px; border-top: 1px solid var(--jade); }
.risk-grid h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.risk-grid p { font-size: 14.5px; color: var(--mineral-2); max-width: 44ch; }

/* ------------------------------------------------------------ forms */
.desk { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(16px, 2.5vw, 28px); align-items: start; }
.panel { padding: clamp(22px, 3vw, 34px); background: var(--stone-1); border: 1px solid var(--line); border-radius: 16px; }
.panel.quiet { background: transparent; }
.chips { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; padding: 0; margin-bottom: 10px; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: baseline; gap: 7px; padding: 10px 14px; border-radius: 10px; background: var(--stone-2); box-shadow: inset 0 0 0 1px var(--stone-4); font: 700 15px/1 var(--display); font-stretch: 115%; transition: box-shadow .15s, background .15s; }
.chips span small { font: 400 12px/1 var(--mono); color: var(--steel); font-stretch: 100%; }
.chips input:checked + span { background: var(--stone-3); box-shadow: inset 0 0 0 1.5px var(--jade-3); }
.chips input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.chips input:disabled + span { opacity: 0.3; cursor: not-allowed; }
.field { display: block; margin-bottom: 22px; }
.field-label { display: block; margin-bottom: 8px; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.field-row { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 16px; border-radius: 12px; background: var(--obsidian); box-shadow: inset 0 0 0 1px var(--stone-4); transition: box-shadow .15s; }
.field-row:focus-within { box-shadow: inset 0 0 0 1.5px var(--jade-2); }
.field-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 0; font: 500 24px/1 var(--mono); }
.field-row input::placeholder { color: var(--stone-4); }
.unit { font: 500 13px/1 var(--mono); color: var(--steel); padding-right: 10px; }
.max { cursor: pointer; border: 0; border-radius: 8px; padding: 7px 10px; font: 600 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--jade-3); background: rgba(88, 232, 187, 0.08); }
.field-note { display: block; margin-top: 7px; font: 400 13px/1.3 var(--mono); color: var(--steel); min-height: 1.3em; }
.go { width: 100%; cursor: pointer; border: 0; border-radius: 12px; padding: 16px 0; font-weight: 650; font-size: 16px; color: #03120d; background: var(--brushed); background-size: 180% 100%; transition: background-position .5s, opacity .2s; }
.go:hover { background-position: 100% 0; }
.go:disabled { cursor: not-allowed; opacity: 0.38; }
.go-inline { width: auto; padding: 14px 26px; margin-top: 26px; }
.go-note { margin-top: 12px; min-height: 1.4em; font-size: 13.5px; color: var(--steel); }
.go-note.bad { color: var(--oxide); }

/* the fault line: where the position stands against the max and the line */
.fault { margin: 26px 0 26px; }
.fault-bar { position: relative; height: 14px; border-radius: 7px; background: repeating-linear-gradient(90deg, rgba(242, 241, 235, 0.05) 0 1px, transparent 1px 12px), var(--stone-2); box-shadow: inset 0 0 0 1px var(--stone-4); }
.fault-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 7px; background: var(--brushed); transition: width .35s cubic-bezier(.2, .7, .2, 1), background .3s; }
.fault[data-tone='warn'] .fault-fill { background: linear-gradient(90deg, var(--jade-2), var(--ochre)); }
.fault[data-tone='danger'] .fault-fill { background: linear-gradient(90deg, var(--ochre), var(--oxide)); }
.fault-mark, .fault-line { position: absolute; top: -7px; bottom: -7px; width: 0; }
.fault-mark { border-left: 1px dashed var(--mineral-2); }
/* the line itself is a crack, not a tick */
.fault-line { width: 8px; margin-left: -4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='28' viewBox='0 0 8 28'%3E%3Cpath d='M4 0 L6 6 L2 11 L6 17 L2 22 L4 28' fill='none' stroke='%23e8794f' stroke-width='1.6'/%3E%3C/svg%3E") center / 8px 100% no-repeat; }
.fault-mark i, .fault-line i { position: absolute; top: 100%; transform: translateX(-50%); margin-top: 4px; font: 500 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; font-style: normal; color: var(--steel); white-space: nowrap; }
.fault-line i { color: var(--oxide); margin-left: 4px; }
/* the max reads above the bar, the line below, so the two never collide */
.fault-mark i { top: auto; bottom: 100%; margin: 0 0 4px; }
.fault figcaption { margin-top: 26px; font: 500 13px/1 var(--mono); color: var(--steel); }
.fault figcaption b { color: var(--mineral); font-weight: 500; }

.health { display: grid; grid-template-columns: 1fr auto; align-items: end; row-gap: 6px; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.health-label { grid-column: 1 / -1; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.health-num { font: 500 clamp(44px, 6vw, 64px)/1 var(--mono); letter-spacing: -0.02em; color: var(--jade-3); transition: color .3s; }
.health-word { font-size: 14px; color: var(--mineral-2); padding-bottom: 8px; }
.health[data-tone='warn'] .health-num { color: var(--ochre); }
.health[data-tone='danger'] .health-num { color: var(--oxide); }
.read div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.read dt { color: var(--steel); }
.read dd { font-family: var(--mono); text-align: right; }
.aside { margin-top: 18px; font-size: 13.5px; color: var(--steel); max-width: 52ch; }

/* ------------------------------------------------------------ positions */
.sealed { max-width: 640px; margin: 0 auto; text-align: center; padding-top: clamp(12px, 3vw, 40px); }
.sealed .lede { margin-left: auto; margin-right: auto; }
.seal { width: 132px; height: 132px; margin: 0 auto 28px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--stone-3), var(--stone-1)); box-shadow: inset 0 0 0 1px rgba(88, 232, 187, 0.25), 0 0 0 10px rgba(11, 122, 97, 0.08), 0 20px 60px rgba(0, 0, 0, 0.5); }
.seal img { width: 72px; height: 72px; }
.pos-list { margin-top: 32px; display: grid; gap: 12px; text-align: left; }
.pos { padding: 18px 20px; border-radius: 14px; background: var(--stone-1); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
.pos b { font: 700 16px/1.2 var(--display); font-stretch: 112%; }
.pos span { font: 400 13px/1.4 var(--mono); color: var(--steel); }
.pos .hf { grid-row: 1 / 3; grid-column: 2; align-self: center; font: 500 26px/1 var(--mono); color: var(--jade-3); }

/* ------------------------------------------------------------ footer, dialog, toast */
.foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px max(var(--gutter), calc((100vw - var(--max)) / 2)); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--steel); }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--mineral); }

.wallets { width: min(420px, calc(100vw - 32px)); padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--stone-1); color: var(--mineral); }
.wallets::backdrop { background: rgba(3, 9, 7, 0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.wallets h2 { font: 750 20px/1.2 var(--display); font-stretch: 112%; margin-bottom: 18px; }
.wallet-list { display: grid; gap: 10px; }
.wallet-list button { cursor: pointer; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border: 0; border-radius: 12px; background: var(--stone-2); box-shadow: inset 0 0 0 1px var(--stone-4); }
.wallet-list button:hover { box-shadow: inset 0 0 0 1px var(--jade-2); }
.wallet-list img { width: 30px; height: 30px; border-radius: 8px; }
.wallet-list b { display: block; font-weight: 600; }
.wallet-list small { color: var(--steel); font-size: 12.5px; }
.w-note { margin-top: 14px; font-size: 13px; color: var(--steel); }
.w-close { margin-top: 18px; width: 100%; cursor: pointer; border: 0; border-radius: 10px; padding: 11px 0; background: transparent; color: var(--steel); box-shadow: inset 0 0 0 1px var(--stone-4); }

.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: min(520px, calc(100vw - 32px)); padding: 13px 18px; border-radius: 12px; background: var(--stone-2); box-shadow: inset 0 0 0 1px var(--stone-4), 0 12px 40px rgba(0, 0, 0, 0.5); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fill { from { height: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------ narrow */
@media (max-width: 980px) {
  .intro { grid-template-columns: 1fr; }
  .cores { grid-template-columns: 1fr; }
  .check-rows, .risk-grid { grid-template-columns: 1fr; }
  .desk { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .top { grid-template-columns: auto auto; gap: 12px 16px; padding-top: 10px; padding-bottom: 0; }
  .tabs { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: space-between; gap: 0; overflow-x: auto; }
  .tabs a { padding: 10px 2px 12px; }
  .top-right { justify-self: end; }
  .net { display: none; }
  .lockup-app { padding-left: 9px; }
  .core { grid-template-columns: 64px 1fr; padding: 18px; }
  .sample { height: 190px; }
}

/* ------------------------------------------------------------ lend mode, auctions, position actions */
.mode { display: inline-flex; gap: 4px; padding: 4px; margin: -8px 0 22px; border-radius: 12px; background: var(--obsidian); box-shadow: inset 0 0 0 1px var(--stone-4); }
.mode label { position: relative; cursor: pointer; }
.mode input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mode span { display: block; padding: 8px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--steel); }
.mode input:checked + span { background: var(--stone-3); color: var(--mineral); box-shadow: inset 0 0 0 1px var(--jade-2); }
.mode input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }

.auctions { margin-bottom: clamp(48px, 7vw, 88px); }
.lots { margin-top: 22px; display: grid; gap: 12px; }
.lot { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 12px; background: var(--stone-1); border: 1px solid var(--line); }
.lot b { font: 700 16px/1.2 var(--display); font-stretch: 112%; }
.lot span { font: 400 13px/1.4 var(--mono); color: var(--steel); }
.lot span strong { color: var(--mineral-2); font-weight: 500; }
.lot form { display: flex; gap: 8px; }
.lot input { width: 110px; padding: 9px 10px; border: 0; border-radius: 9px; background: var(--obsidian); box-shadow: inset 0 0 0 1px var(--stone-4); font: 500 14px/1 var(--mono); }
.lot button, .pos-act button { cursor: pointer; border: 0; border-radius: 9px; padding: 9px 14px; font-weight: 600; font-size: 13.5px; color: #03120d; background: var(--brushed); background-size: 180% 100%; }
.pos-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pos-act input { width: 120px; padding: 9px 10px; border: 0; border-radius: 9px; background: var(--obsidian); box-shadow: inset 0 0 0 1px var(--stone-4); font: 500 14px/1 var(--mono); }
.pos-act .ghost { color: var(--mineral); background: var(--stone-2); box-shadow: inset 0 0 0 1px var(--stone-4); }
.pos.auction .hf { color: var(--oxide); font-size: 15px; }
.quiet-go { background: var(--stone-2); color: var(--mineral); box-shadow: inset 0 0 0 1px var(--stone-4); }
@media (max-width: 720px) {
  .lot { grid-template-columns: 1fr; }
}
