/* Templum Markets, interactive build. Tokens from the Templum design system (Figma) */
:root {
  --p500: #17718F; --p700: #104D63; --p600: #145F78; --p100: #C4E0EA; --p50: #E4F1F5;
  --black: #000; --white: #fff;
  --bg: #F1F1F1; --g200: #E5E5E5; --g300: #D9D9D9; --g500: #A3A3A3; --g600: #6E6E6E; --g700: #5F5F5F; --demoted: #525252;
  --ok: #02945A; --ok-ink: #04704A; --ok-text: #03814E; --ok-bg: #D2F2E5; --warn-ink: #9A5208; --info-ink: #0B5AA3; --bad-ink: #B91C1C; --bad-text: #D61F20; --warn: #E18618; --warn-bg: #FCE9D6; --bad: #EF2324; --bad-bg: #FEE4E4; --info: #0D6ABF; --info-bg: #E4EEF8; --pink: #BC009D;
  --drop: 0 3px 6px rgba(0,0,0,.06);
  --lift: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px -12px rgba(0,0,0,.14);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1200px; --pad: 32px;
  --gx: max(var(--pad), calc((100% - var(--max)) / 2));
  --ease: cubic-bezier(.2,.8,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--black); background: var(--bg); font-size: 14px; line-height: 20px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--p500); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 16px; height: 16px; flex: none; stroke-width: 1.75; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Top bar ---------- */
.top { position: sticky; top: 0; z-index: 40; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gx); background: rgba(241,241,241,.88); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--g200); }
.brand { display: flex; align-items: center; gap: 28px; min-width: 0; }
.logo img { width: 140px; height: auto; }
.nav { display: flex; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 8px; font-weight: 500; color: var(--g600); transition: color .2s, background .2s; white-space: nowrap; }
.nav a:hover { color: var(--black); background: rgba(255,255,255,.6); }
.nav a[aria-current="page"] { background: #fff; color: var(--black); font-weight: 600; box-shadow: 0 7px 10px -3px rgba(0,0,0,.05); }
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px 0 8px; border-radius: 8px; background: #fff; border: 1px solid var(--g200); }
.acct-btn .av { width: 30px; height: 30px; border-radius: 50%; background: var(--p500); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.menu-pop { position: absolute; z-index: 60; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; border-radius: 12px; padding: 6px; box-shadow: var(--lift), 0 0 0 1px var(--g200); }
.menu-pop .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--g200); margin-bottom: 6px; }
.menu-pop .who b { display: block; font-size: 14px; }
.menu-pop .who span { font-size: 12px; color: var(--g600); }
.menu-pop button, .menu-pop a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px; font-size: 14px; text-align: left; }
.menu-pop button:hover, .menu-pop a:hover { background: var(--bg); }
.tabbar { display: none; }

/* ---------- Layout ---------- */
main { padding: 8px var(--gx) 80px; min-height: calc(100vh - 64px); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 20px 0 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.3px; }
.page-head p { margin: 4px 0 0; color: var(--demoted); }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--g600); margin: 16px 0 12px; }
.crumbs a:hover { color: var(--black); }
.crumbs b { color: var(--black); font-weight: 500; }
.card { background: #fff; border-radius: 12px; box-shadow: var(--drop); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 36px 0 14px; flex-wrap: wrap; }
.section-title h2 { margin: 0; font-size: 20px; line-height: 30px; font-weight: 600; letter-spacing: -.2px; }
.muted { color: var(--g600); }
.fade { animation: fade .3s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 8px; font-weight: 500; white-space: nowrap; transition: background .2s, border-color .2s, color .2s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--p500); color: #fff; }
.btn-primary:hover { background: var(--p600); }
.btn-red { background: var(--bad); color: #fff; }
.btn-red:hover { background: #C81516; }
.btn-line { background: #fff; border: 1px solid var(--g300); color: #000; }
.btn-line:hover { border-color: var(--g500); }
.btn-danger { background: #fff; border: 1px solid var(--g300); color: var(--bad); }
.btn-danger:hover { border-color: var(--bad); background: var(--bad-bg); }
.btn-ghost { color: var(--demoted); padding: 0 10px; }
.btn-ghost:hover { background: rgba(0,0,0,.05); color: #000; }
.btn-sm { height: 32px; padding: 0 10px; font-size: 13px; gap: 8px; }
.btn-block { width: 100%; justify-content: center; }
.btn-block:has(> .i-arrow-right) { justify-content: space-between; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: var(--demoted); transition: background .2s, color .2s; }
.icon-btn:hover { background: rgba(0,0,0,.05); color: #000; }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }

/* ---------- Pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 100px; font-size: 12px; font-weight: 500; line-height: 18px; white-space: nowrap; }
.pill .i { width: 13px; height: 13px; }
.pill.open, .pill.active, .pill.accepted { background: var(--ok-bg); color: var(--ok-ink); }
.pill.closed, .pill.expired, .pill.withdrawn { background: var(--g200); color: var(--g700); }
.pill.pending, .pill.review { background: var(--warn-bg); color: var(--warn-ink); }
.pill.countered { background: var(--info-bg); color: var(--info-ink); }
.pill.rejected { background: var(--bad-bg); color: var(--bad-ink); }
.pill.draft { background: #fff; color: var(--demoted); box-shadow: inset 0 0 0 1px var(--g300); }
.pill.dark { background: #000; color: #fff; }
.pill.ghost { background: rgba(0,0,0,.45); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.av { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--bg); flex: none; }

/* ---------- Inputs ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 14px; font-weight: 500; }
.field small { font-size: 12px; color: var(--g600); }
.input, .select { width: 100%; height: 44px; border: 1px solid var(--g300); border-radius: 8px; background: #fff; padding: 0 12px; font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus { border-color: var(--p500); box-shadow: 0 0 0 3px var(--p50); }
.input::placeholder { color: var(--g600); }
.input.err { border-color: var(--bad); }
textarea.input { height: auto; min-height: 88px; padding: 12px; resize: vertical; line-height: 20px; }
.select { -webkit-appearance: none; appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; cursor: pointer; }
.affix { position: relative; }
.affix .input { padding-left: 28px; }
.affix > b { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-weight: 400; color: var(--g600); pointer-events: none; }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: #fff; border-radius: 10px; border: 1px solid var(--g200); }
.seg button { height: 32px; padding: 0 14px; border-radius: 7px; font-weight: 500; color: var(--g600); transition: background .2s, color .2s; }
.seg button:hover { color: #000; }
.seg button[aria-pressed="true"] { background: var(--bg); color: #000; }
.radio-row { display: flex; gap: 24px; height: 44px; align-items: center; }
.radio-row label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.radio-row input { appearance: none; width: 18px; height: 18px; margin: 0; border-radius: 50%; border: 1.5px solid var(--g500); display: grid; place-items: center; cursor: pointer; }
.radio-row input:checked { border-color: var(--p500); }
.radio-row input:checked::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--p500); }
.err-msg { color: var(--bad); font-size: 12px; }

/* ---------- Toolbar (search + filters) ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 20px 0; }
.search { position: relative; flex: 1 1 220px; max-width: 320px; }
.search .input { padding-left: 38px; background: #fff; border-color: transparent; box-shadow: var(--drop); height: 40px; }
.search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--g600); }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 8px; background: #fff; box-shadow: var(--drop); font-weight: 500; color: #000; }
.dd-btn .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--p500); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
.dd-btn .i:last-child { color: var(--g600); }
.dd-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 220px; background: #fff; border-radius: 12px; padding: 6px; box-shadow: var(--lift), 0 0 0 1px var(--g200); }
.dd-menu label { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.dd-menu label:hover { background: var(--bg); }
.dd-menu input { appearance: none; width: 16px; height: 16px; margin: 0; border-radius: 4px; border: 1.5px solid var(--g500); display: grid; place-items: center; }
.dd-menu input:checked { background: var(--p500); border-color: var(--p500); }
.dd-menu input:checked::after { content: ''; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.dd-menu .foot { display: flex; justify-content: space-between; padding: 8px 6px 2px; border-top: 1px solid var(--g200); margin-top: 6px; }
.toolbar .spacer { flex: 1; }
.chips-active { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 10px; border-radius: 100px; background: #fff; box-shadow: var(--drop); font-size: 12px; font-weight: 500; }
.chip button { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: var(--g600); }
.chip button:hover { background: var(--bg); color: #000; }

/* ---------- Asset cards (tombstones) ---------- */
.tomb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tomb { background: #fff; border-radius: 12px; padding: 12px 12px 18px; box-shadow: var(--drop); display: flex; flex-direction: column; gap: 14px; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.tomb:hover { box-shadow: var(--lift); transform: translateY(-2px); }
.art { position: relative; aspect-ratio: 16 / 9.4; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.art .wm { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; }
.art .tl { position: absolute; left: 10px; top: 10px; }
.art .bl { position: absolute; left: 12px; bottom: 10px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.art .bl small { display: block; font-size: 11px; opacity: .85; }
.art .bl b { font-size: 16px; font-weight: 600; }
.art .br { position: absolute; right: 10px; bottom: 10px; }
.listings-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 100px; background: var(--p500); color: #fff; font-size: 13px; font-weight: 500; }
.tomb h3 { margin: 2px 0 0; font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: -.1px; }
.tomb .blurb { margin: 0; padding: 10px 12px; border-radius: 6px; background: var(--bg); color: var(--demoted); font-size: 12px; line-height: 18px; min-height: 56px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 0 2px; }
.facts div small { display: block; font-size: 12px; line-height: 18px; color: var(--g600); }
.facts div b { font-size: 13px; font-weight: 600; line-height: 18px; }
.tomb-list { display: flex; flex-direction: column; gap: 10px; }
.tomb-row { display: grid; grid-template-columns: 120px minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 18px; background: #fff; border-radius: 12px; padding: 10px 16px 10px 10px; box-shadow: var(--drop); transition: box-shadow .3s var(--ease); }
.tomb-row:hover { box-shadow: var(--lift); }
.tomb-row .art { aspect-ratio: 16 / 10; }
.tomb-row .art .wm { transform: scale(.55); }
.tomb-row h3 { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.tomb-row p { margin: 0; color: var(--g600); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tomb-row small { display: block; font-size: 12px; color: var(--g600); }
.tomb-row b { font-size: 13px; }
.empty { text-align: center; padding: 72px 20px; display: grid; justify-items: center; gap: 10px; }
.empty .illo { width: 96px; height: 96px; border-radius: 16px; background: #fff; display: grid; place-content: center; gap: 6px; padding: 14px; box-shadow: var(--drop); }
.empty .illo i { display: block; width: 68px; height: 18px; border-radius: 4px; background: var(--g200); position: relative; }
.empty .illo i::after { content: ''; position: absolute; right: 6px; top: 6px; width: 24px; height: 6px; border-radius: 3px; background: #fff; }
.empty h2 { margin: 12px 0 0; font-size: 20px; line-height: 30px; font-weight: 600; }
.empty p { margin: 0 0 8px; color: var(--demoted); max-width: 44ch; }

/* ---------- Asset detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 14px; flex-wrap: wrap; }
.detail-head .t { display: flex; align-items: center; gap: 10px; }
.detail-head h1 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.3px; }
.subnav { display: flex; gap: 2px; padding: 4px; border-radius: 10px; background: #fff; box-shadow: var(--drop); overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 7px; color: var(--g600); font-weight: 500; font-size: 13px; white-space: nowrap; transition: background .2s, color .2s; }
.subnav a:hover { color: #000; }
.subnav a.on { background: var(--bg); color: #000; }
.subnav .i { width: 14px; height: 14px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 100px; background: #fff; box-shadow: inset 0 0 0 1px var(--g300); font-size: 12px; font-weight: 500; }
.tag .i { width: 13px; height: 13px; }
.tags .pill.dark { margin-left: auto; height: 28px; padding: 0 11px; }
.hero { aspect-ratio: 16 / 7; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.block { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--g300); scroll-margin-top: 80px; }
.block:first-of-type { border-top: 0; margin-top: 8px; }
.block h2 { margin: 0 0 12px; font-size: 20px; line-height: 30px; font-weight: 600; letter-spacing: -.2px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.block p { margin: 0 0 10px; color: var(--demoted); line-height: 22px; max-width: 70ch; }
.side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 14px; }
.kv { padding: 18px; }
.kv h3 { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.kv dl { margin: 0; display: grid; grid-template-columns: 1fr auto; }
.kv dt, .kv dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--bg); font-size: 13px; }
.kv dt { color: var(--demoted); }
.kv dd { font-weight: 600; text-align: right; }
.verify { background: var(--p50); color: #0B2A35; box-shadow: inset 0 0 0 1px var(--p100); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.verify h3 { margin: 0; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.verify p { margin: 0; font-size: 13px; line-height: 19px; color: #2F4A54; }
.verify h3 .i { color: var(--p500); }
.verify .btn { background: var(--p500); color: #fff; margin-top: 4px; }
.verify .btn:hover { background: var(--p600); }
.verify.done { background: var(--ok-bg); color: #000; box-shadow: none; }
.verify.done p { color: var(--demoted); }
.verify.done h3 .i { color: var(--ok); }

/* Data room */
.tree { display: flex; flex-direction: column; gap: 2px; }
.folder > button { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 8px; border-radius: 8px; font-weight: 500; text-align: left; }
.folder > button:hover { background: rgba(0,0,0,.04); }
.folder > button .chev { transition: transform .25s var(--ease); color: var(--g600); }
.folder.open > button .chev { transform: rotate(90deg); }
.folder .files { margin: 2px 0 6px 18px; padding-left: 16px; border-left: 2px solid var(--g300); display: flex; flex-direction: column; gap: 6px; }
.file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: #fff; box-shadow: var(--drop); }
.file .ext { width: 40px; height: 20px; border-radius: 100px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; flex: none; }
.ext-pdf { background: #D61F20; } .ext-doc { background: var(--info); } .ext-xls { background: #03814E; } .ext-txt { background: var(--g700); }
.file b { flex: 1; font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file small { color: var(--g600); font-size: 12px; white-space: nowrap; }

/* Company / team / news */
.company { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; }
.co-logo { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-bottom: 10px; }
.contact { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.contact div { display: flex; gap: 10px; color: var(--demoted); }
.contact .i { margin-top: 2px; color: #000; }
.contact a { color: var(--info); }
.person { padding-left: 14px; border-left: 2px solid var(--g300); margin-bottom: 18px; }
.person b { display: block; font-weight: 600; }
.person span { display: block; font-size: 13px; color: var(--g600); margin-bottom: 4px; }
.person p { margin: 0; }
.news { display: flex; flex-direction: column; gap: 10px; }
.news-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; }
.news-item b { display: block; margin-bottom: 4px; font-weight: 600; }
.news-item p { margin: 0; font-size: 13px; line-height: 19px; }
.news-item .src { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.news-item .src i { width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 700; font-size: 11px; }

/* ---------- Indications ---------- */
.ind-list { display: flex; flex-direction: column; gap: 12px; }
.ind { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ind-top { display: flex; align-items: center; gap: 18px; }
.ind-top .vals { display: flex; gap: 26px; flex: 1; flex-wrap: wrap; }
.ind-top .vals small { display: block; font-size: 12px; color: var(--g600); line-height: 18px; }
.ind-top .vals b { font-size: 13px; font-weight: 600; }
.ind-top .st { display: flex; align-items: center; gap: 8px; }
.ind-bot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--bg); flex-wrap: wrap; }
.ind-bot .acts { display: flex; gap: 8px; }
.hist { margin: 0; border-radius: 8px; overflow: hidden; }
.hist table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hist th { text-align: left; font-weight: 500; color: var(--g600); background: var(--bg); padding: 8px 12px; }
.hist td { padding: 9px 12px; border-top: 1px solid var(--bg); }

/* Tables */
.table-wrap { background: #fff; border-radius: 12px; box-shadow: var(--drop); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--g600); padding: 12px 16px; background: #FAFAFA; border-bottom: 1px solid var(--g200); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--bg); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #FCFCFC; }
.table .r { text-align: right; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-top: 1px solid var(--g200); font-size: 12px; color: var(--g600); }
.pager .pg { display: flex; gap: 4px; }
.pager .pg button { width: 28px; height: 28px; border-radius: 6px; font-size: 12px; color: #000; }
.pager .pg button[aria-current="true"] { background: var(--p500); color: #fff; }
.pager .pg button:hover:not([aria-current="true"]):not(:disabled) { background: var(--bg); }
.pager .pg button:disabled { opacity: .3; }

/* Listing (bidding) */
.lst-head { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; }
.lst-head .art { aspect-ratio: auto; height: 100%; min-height: 200px; }
.lst-meta { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.lst-meta .row1 { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.lst-meta .row1 .t { display: flex; align-items: center; gap: 10px; }
.lst-meta h1 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; }
.stats { display: flex; gap: 26px; flex-wrap: wrap; }
.stats small { display: block; font-size: 13px; color: var(--g600); }
.stats b { font-size: 15px; font-weight: 600; }
.tiles3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 8px; background: var(--g200); min-height: 72px; }
.mini small { display: block; font-size: 13px; color: var(--demoted); }
.mini b { font-size: 20px; line-height: 30px; font-weight: 600; }
.mini .ib { width: 40px; height: 40px; border-radius: 8px; background: #fff; display: grid; place-items: center; }
.my-listings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lst-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 12px; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.lst-card:hover { box-shadow: var(--lift); transform: translateY(-2px); }
.lst-card .art { aspect-ratio: auto; height: 100%; min-height: 104px; }
.lst-card .art .wm { transform: scale(.5); }
.lst-card h3 { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lst-card .row { display: flex; gap: 20px; margin-top: 10px; flex-wrap: wrap; }
.lst-card .row small { display: block; font-size: 12px; color: var(--g600); }
.lst-card .row b { font-size: 13px; font-weight: 600; }
.lst-card .foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--demoted); }
.lst-card .foot .new { color: var(--p500); font-weight: 600; }

/* ---------- Dashboard ---------- */
.dash { display: flex; flex-direction: column; gap: 16px; }
.dsec { position: relative; display: grid; gap: 16px; border-radius: 14px; transition: box-shadow .25s, background .25s; }
.dsec.l-1 { grid-template-columns: 1fr; }
.dsec.l-1-2 { grid-template-columns: 1fr 2fr; }
.dsec.l-2-1 { grid-template-columns: 2fr 1fr; }
.dsec.l-1-1 { grid-template-columns: 1fr 1fr; }
.dsec.l-1-1-1 { grid-template-columns: repeat(3, 1fr); }
.dsec.l-1-1-1-1 { grid-template-columns: repeat(4, 1fr); }
.editing .dsec { outline: 2px dashed transparent; outline-offset: 6px; cursor: pointer; }
.editing .dsec:hover { outline-color: var(--p100); }
.editing .dsec.sel { outline-color: var(--p500); }
.tile { background: #fff; border-radius: 12px; box-shadow: var(--drop); padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; min-height: 230px; }
.tile.c-gray { background: #E9E9E9; box-shadow: none; }
.tile.c-black { background: #0B0B0B; color: #fff; }
.tile.c-teal { background: var(--p500); color: #fff; }
.tile .th { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.tile .th h3 { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; }
.big { font-size: 34px; line-height: 40px; font-weight: 500; color: var(--p500); letter-spacing: -.5px; }
.tile.c-black .big, .tile.c-teal .big { color: #fff; }
.brk { display: flex; flex-direction: column; gap: 6px; }
.brk div { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.brk b { min-width: 22px; font-weight: 600; }
.brk span { color: var(--g600); display: flex; align-items: center; gap: 6px; }
.tile.c-black .brk span, .tile.c-teal .brk span { color: rgba(255,255,255,.7); }
.tile .go { margin-top: auto; }
.tile.c-black .btn-line, .tile.c-teal .btn-line { background: #fff; color: #000; border-color: #fff; }
.tile.c-black .btn-line:hover, .tile.c-teal .btn-line:hover { background: rgba(255,255,255,.88); }
.tile .mt { width: 100%; border-collapse: collapse; font-size: 12px; }
.tile .mt th { text-align: left; font-weight: 500; color: var(--g600); padding: 6px 8px; border-bottom: 1px solid var(--g200); white-space: nowrap; }
.tile .mt td { padding: 8px; border-bottom: 1px solid var(--bg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.tile.c-black .mt th, .tile.c-teal .mt th { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.15); }
.tile.c-black .mt td, .tile.c-teal .mt td { border-color: rgba(255,255,255,.08); }
.tile .foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.tile .foot a { color: var(--p500); font-size: 12px; font-weight: 500; }
.tile.c-black .foot a, .tile.c-teal .foot a { color: #fff; }

.st-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 100px; background: #000; color: #fff; font-size: 11px; font-weight: 500; }
.st-pill .i { width: 12px; height: 12px; }
.tile.c-black .st-pill, .tile.c-teal .st-pill { background: #fff; color: #000; }
.tile .scroll { overflow-x: auto; }
.dash-tools { display: flex; gap: 8px; }
.edit-bar { position: sticky; top: 72px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; margin-bottom: 18px; border-radius: 12px; background: #000; color: #fff; box-shadow: var(--lift); }
.edit-bar p { margin: 0; font-size: 13px; color: rgba(255,255,255,.8); }
.edit-bar .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.edit-bar .btn-line:hover { border-color: #fff; }
.edit-bar .btn-primary { background: #fff; color: #000; }
.add-sec { display: flex; align-items: center; justify-content: center; gap: 8px; height: 64px; border-radius: 14px; border: 2px dashed var(--g300); color: var(--demoted); font-weight: 500; transition: border-color .2s, color .2s, background .2s; }
.add-sec:hover { border-color: var(--p500); color: var(--p500); background: rgba(255,255,255,.5); }
/* Section control panel */
.panel { position: fixed; z-index: 45; right: 24px; top: 88px; width: 272px; max-height: calc(100vh - 112px); overflow: auto; background: #fff; border-radius: 14px; padding: 16px; box-shadow: var(--lift), 0 0 0 1px var(--g200); display: flex; flex-direction: column; gap: 16px; animation: slidein .3s var(--ease) both; }
@keyframes slidein { from { opacity: 0; transform: translateX(12px); } }
.panel h3 { margin: 0; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.panel .lbl { font-size: 12px; font-weight: 500; color: var(--g600); margin-bottom: 6px; }
.moves { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.moves button { height: 34px; border-radius: 8px; border: 1px solid var(--g300); display: grid; place-items: center; transition: border-color .2s; }
.moves button:hover:not(:disabled) { border-color: #000; }
.moves button:disabled { opacity: .3; cursor: not-allowed; }
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fmt { height: 40px; border-radius: 8px; border: 1px solid var(--g300); display: flex; gap: 3px; padding: 7px; transition: border-color .2s, background .2s; }
.fmt i { border-radius: 3px; background: var(--g200); border: 1px solid var(--g300); }
.fmt:hover { border-color: var(--g500); }
.fmt[aria-pressed="true"] { border-color: var(--p500); background: var(--p50); }
.fmt[aria-pressed="true"] i { background: var(--p100); border-color: var(--p500); }
.tile-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.tile-tabs button { flex: 1; height: 30px; border-radius: 7px; font-size: 12px; font-weight: 500; color: var(--g600); background: var(--bg); }
.tile-tabs button[aria-pressed="true"] { background: var(--p500); color: #fff; }
.colors { display: flex; gap: 10px; }
.colors button { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); transition: transform .15s; }
.colors button[aria-pressed="true"] { outline: 2px solid var(--p500); outline-offset: 2px; }
.colors button:hover { transform: scale(1.08); }
.panel .sep { border-top: 1px solid var(--g200); }

/* ---------- Portfolio ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 16px 18px; }
.kpi small { display: block; color: var(--g600); font-size: 13px; }
.kpi b { display: block; font-size: 24px; line-height: 32px; font-weight: 600; margin-top: 4px; letter-spacing: -.3px; }
.kpi > span { display: inline-flex; margin-top: 2px; font-size: 12px; font-weight: 500; }
.up { color: var(--ok-text); } .down { color: var(--bad-text); }
.alloc { height: 10px; border-radius: 5px; overflow: hidden; display: flex; margin-top: 12px; }
.alloc i { display: block; height: 100%; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--demoted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.cell-asset { display: flex; align-items: center; gap: 12px; }
.cell-asset .art { width: 48px; height: 32px; aspect-ratio: auto; border-radius: 6px; }
.cell-asset .art .wm { transform: scale(.28); }
.cell-asset b { display: block; font-weight: 600; }
.cell-asset small { color: var(--g600); font-size: 12px; }

/* ---------- Modals ---------- */
.overlay { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 24px; animation: ov .2s ease both; overflow: auto; }
@keyframes ov { from { opacity: 0; } }
.modal { width: min(520px, 100%); background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: 18px; animation: pop .3s var(--ease) both; max-height: calc(100vh - 48px); overflow: auto; }
.modal.wide { width: min(760px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal-h h2 { margin: 0; font-size: 20px; line-height: 30px; font-weight: 600; letter-spacing: -.2px; }
.modal-h p { margin: 4px 0 0; color: var(--demoted); font-size: 13px; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.modal h3 { margin: 4px 0 -6px; font-size: 15px; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.summary { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 10px; background: var(--bg); }
.summary div { display: flex; justify-content: space-between; font-size: 13px; }
.summary div span { color: var(--demoted); }
.summary .tot { padding-top: 10px; border-top: 1px solid var(--g300); font-size: 14px; font-weight: 600; }
.summary .tot b { color: var(--p500); font-size: 16px; }
.nav-diff { display: flex; justify-content: space-between; font-size: 13px; }
.nav-diff b.neg { color: var(--bad); } .nav-diff b.pos { color: var(--ok); }
.sec-pick { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; }
.sec-pick .art { aspect-ratio: auto; height: 100%; min-height: 150px; }
.sec-pick .opts { display: flex; flex-direction: column; gap: 14px; }
.upload { border: 1.5px dashed #8EC3D6; background: #EEF6F9; border-radius: 10px; padding: 22px; text-align: center; display: grid; justify-items: center; gap: 4px; cursor: pointer; transition: background .2s, border-color .2s; }
.upload:hover, .upload.over { background: var(--p50); border-color: var(--p500); }
.upload .i { width: 26px; height: 26px; color: var(--p500); }
.upload b { font-weight: 600; }
.upload .link { color: var(--p500); font-weight: 600; }
.upload small { color: var(--g600); font-size: 12px; }
.files-up { display: flex; flex-direction: column; gap: 6px; }
.confirm-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.confirm-ic.ok { background: var(--ok-bg); color: var(--ok); } .confirm-ic.bad { background: var(--bad-bg); color: var(--bad); } .confirm-ic.info { background: var(--p50); color: var(--p500); }
.confirm-ic .i { width: 22px; height: 22px; }
.doc { border-radius: 10px; border: 1px solid var(--g200); padding: 28px 32px; background: #fff; max-height: 52vh; overflow: auto; font-size: 13px; line-height: 21px; color: #222; }
.doc h4 { margin: 0 0 4px; font-size: 16px; }
.doc .line { height: 8px; border-radius: 4px; background: var(--bg); margin: 10px 0; }

/* Toast */
.toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translate(-50%, 16px); display: flex; align-items: center; gap: 10px; background: #000; color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 13px; opacity: 0; pointer-events: none; transition: all .3s var(--ease); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast .i { color: #6EE7B7; }
.toast button { color: #9FD6E8; font-weight: 600; margin-left: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tomb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail { grid-template-columns: 1fr; }
  .side { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .dsec.l-1-1-1-1 { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .panel { right: 12px; }
}
@media (max-width: 760px) {
  :root { --pad: 16px; }
  .top { height: 56px; }
  .nav { display: none; }
  .logo img { width: 116px; }
  main { padding-bottom: 96px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--g200); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border-radius: 10px; font-size: 11px; font-weight: 500; color: var(--g600); }
  .tabbar a[aria-current="page"] { color: #000; }
  .tabbar a[aria-current="page"] .i { color: var(--p500); }
  .tabbar .i { width: 20px; height: 20px; }
  .tomb-grid, .my-listings { grid-template-columns: 1fr; }
  .tomb-row { grid-template-columns: 88px minmax(0, 1fr) auto; }
  .tomb-row .hide-s { display: none; }
  .search { max-width: none; flex-basis: 100%; }
  .toolbar .seg { display: none; }
  .side { grid-template-columns: 1fr; }
  .company { grid-template-columns: 1fr; }
  .lst-head { grid-template-columns: 1fr; }
  .lst-head .art { min-height: 160px; }
  .tiles3 { grid-template-columns: 1fr; }
  .lst-card { grid-template-columns: 84px minmax(0, 1fr); }
  .dsec.l-1-2, .dsec.l-2-1, .dsec.l-1-1, .dsec.l-1-1-1, .dsec.l-1-1-1-1 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi b { font-size: 20px; }
  .grid2, .grid3, .sec-pick { grid-template-columns: 1fr; }
  .sec-pick .art { min-height: 120px; }
  .overlay { padding: 0; place-items: end stretch; }
  .modal { width: 100%; border-radius: 18px 18px 0 0; max-height: 92vh; animation: sheet .35s var(--ease) both; }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
  .panel { left: 8px; right: 8px; top: auto; bottom: 76px; width: auto; max-height: 60vh; }
  .ind-top { flex-wrap: wrap; gap: 12px; }
  .ind-top .st { margin-left: auto; }
  .ind-top .vals { order: 3; flex: none; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding-top: 10px; border-top: 1px solid var(--g200); }
  .ind-top .vals .hide-s { display: none; }
  .ind-bot { flex-wrap: wrap; gap: 8px; }
  .table-wrap { overflow-x: auto; }
  .hide-s { display: none; }
  .detail-head .subnav { width: 100%; }
  .page-head h1 { font-size: 22px; }
  .edit-bar { top: 64px; }
  .edit-bar p { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Asset art */
.art .wm .wm-i { width: 1.05em; height: 1.05em; stroke-width: 1.6; }
.art .plate { background: #fff; color: #EE5A3A; padding: 18px 22px; border-radius: 10px; box-shadow: 0 8px 24px -8px rgba(0,0,0,.3); }
.art.hero { aspect-ratio: 16 / 7; border-radius: 12px; }
.art.hero .wm { transform: scale(1.5); }
.cell-asset .art .plate, .tomb-row .art .plate, .lst-card .art .plate { padding: 8px 10px; }
.tile .foot a.btn { color: #000; font-size: 13px; }
.thumb { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: 15px; }
.thumb .i { width: 18px; height: 18px; }
@media (min-width: 1101px) { .with-panel { margin-right: 292px; transition: margin .3s var(--ease); } .with-panel .dsec.l-1-1-1-1 { grid-template-columns: repeat(2, 1fr); } }
.detail > div { min-width: 0; }
@media (max-width: 760px) { .art.hero .wm { transform: scale(.9); } .art .wm { max-width: 100%; } }

/* ================= Data viz ================= */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.side-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.chg { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chg .i { width: 14px; height: 14px; }
.chg.up { color: var(--ok-text); } .chg.down { color: var(--bad-text); }
.tile.c-black .chg, .tile.c-teal .chg { color: #fff; }

/* tiles */
.tile .big .noun { font-size: .55em; font-weight: 500; color: var(--g600); letter-spacing: 0; }
.tile.c-black .big .noun, .tile.c-teal .big .noun { color: rgba(255,255,255,.6); }
.stack { display: flex; gap: 2px; border-radius: 4px; overflow: hidden; background: rgba(0,0,0,.06); }
.stack i { display: block; height: 100%; min-width: 3px; }
.tile.c-black .stack, .tile.c-teal .stack { background: rgba(255,255,255,.12); }
.tile.c-teal .stack i { box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.brk span { display: inline-flex; align-items: center; gap: 6px; }
.tile-trend { margin-top: -8px; }
.tile-spark { margin: -4px -4px 0; }
.tile-spark .spark { width: 100%; height: 56px; display: block; }
.act { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.act > div { display: flex; gap: 10px; align-items: flex-start; }
.act p { margin: 0; line-height: 18px; }
.act small { display: block; color: var(--g600); font-size: 12px; margin-top: 2px; }
.act-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.act-ic .i { width: 14px; height: 14px; }
.tile.c-black .act small, .tile.c-teal .act small { color: rgba(255,255,255,.55); }
.tile.c-black .act-ic, .tile.c-teal .act-ic { color: #fff; background: rgba(255,255,255,.14); }

/* cards with a chart */
.viz-card { padding: 18px 20px; }
.viz-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.viz-h h3 { margin: 0; font-size: 15px; font-weight: 600; }
.viz-h p { margin: 2px 0 0; font-size: 12px; color: var(--g600); }
.viz-key { display: inline-flex; align-items: center; gap: 6px 8px; font-size: 12px; color: var(--demoted); flex-wrap: wrap; }
.viz-key .dot + * , .viz-key .dot { margin-left: 4px; }
.dash-key { display: inline-block; width: 14px; border-top: 1.5px dashed #737373; margin: 0 2px 0 10px; }
.eyebrow { font-size: 12px; color: var(--g600); }

/* line chart */
.chart { display: grid; grid-template-columns: auto 1fr; grid-template-rows: var(--h) auto; column-gap: 10px; }
.ylab { position: relative; font-size: 11px; color: var(--g600); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.ylab span { position: absolute; right: 0; transform: translateY(-50%); white-space: nowrap; }
.plot { position: relative; height: var(--h); cursor: crosshair; }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.xlab { grid-column: 2; display: flex; justify-content: space-between; font-size: 11px; color: var(--g600); margin-top: 8px; }
.end-dot, .hover-dot { position: absolute; right: 0; width: 9px; height: 9px; margin: -4.5px -4.5px 0 0; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #fff, 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent); }
.hover-dot { right: auto; margin: -4.5px 0 0 -4.5px; }
.hover-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--g300); }
.tip { position: absolute; transform: translate(-50%, -110%); background: #0B0B0B; color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 12px; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.tip b { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
.tip span { color: rgba(255,255,255,.65); }
.mark { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--c); }
.mark em { position: absolute; left: 6px; top: -20px; font-style: normal; font-size: 11px; color: var(--c); background: rgba(255,255,255,.85); padding: 0 4px; border-radius: 4px; }

/* portfolio */
.pf-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.alloc-wrap { display: flex; align-items: center; gap: 22px; }
.donut { position: relative; flex: none; }
.donut svg { width: 100%; height: 100%; }
.donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-c small { font-size: 11px; color: var(--g600); }
.donut-c b { font-size: 18px; font-weight: 600; }
.alloc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; min-width: 0; font-size: 13px; }
.alloc-list li { display: flex; align-items: center; gap: 8px; }
.alloc-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--demoted); }
.alloc-list li b { font-weight: 600; }
.table .spark { display: block; }

/* tombstones */
.tomb-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tomb-t h3 { min-width: 0; }
.tomb-trend { display: inline-flex; align-items: center; gap: 6px; flex: none; }

/* asset price + book */
.px-card { margin-top: 20px; }
.px-now { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.px-now b { font-size: 26px; font-weight: 600; letter-spacing: -.4px; }
.seg-sm button { height: 28px; padding: 0 10px; font-size: 12px; }
.px-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--g200); }
.px-stats small { display: block; font-size: 12px; color: var(--g600); }
.px-stats b { font-size: 14px; font-weight: 600; }
.book-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.tiles3.vert { grid-template-columns: 1fr; }
.tiles3.vert .mini { min-height: 0; }
.mini .muted { font-size: 12px; }
.book { padding: 16px 18px; }
.bk-head, .bk-row { display: grid; grid-template-columns: 84px 1fr 72px 72px; gap: 12px; align-items: center; font-size: 13px; }
.bk-head { font-size: 11px; color: var(--g600); padding-bottom: 6px; }
.bk-head span:nth-child(3), .bk-row span:nth-child(3) { text-align: right; }
.bk-row { height: 30px; border-radius: 6px; padding: 0 6px; margin: 0 -6px; }
.bk-row.mine { background: var(--p50); }
.bk-row.mine .bk-who { color: var(--p500); font-weight: 600; }
.bk-bar { height: 10px; border-radius: 3px; background: var(--g100, #F5F5F5); overflow: hidden; }
.bk-bar i { display: block; height: 100%; border-radius: 3px; opacity: .85; }
.bk-who { color: var(--demoted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-spread { display: flex; justify-content: space-between; margin: 6px 0; padding: 8px 10px; border-radius: 6px; background: var(--bg); font-size: 12px; color: var(--demoted); }
.bk-spread b { color: #000; font-weight: 600; }
.bk-empty { font-size: 12px; color: var(--g600); padding: 8px 0; }

/* bids vs ask */
.bva { margin-top: 20px; }
.bva-track { position: relative; height: 92px; margin: 26px 8px 0; }
.bva-track::before { content: ''; position: absolute; left: 0; right: 0; top: 46px; height: 2px; background: var(--g200); border-radius: 1px; }
.bva-ask, .bva-ref { position: absolute; top: 4px; bottom: 26px; width: 0; border-left: 2px solid var(--p500); }
.bva-ref { border-left: 1.5px dashed #737373; }
.bva-ask em, .bva-ref em { position: absolute; top: -22px; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--p500); }
.bva-ref em { color: #737373; font-weight: 500; top: auto; bottom: -2px; transform: translate(6px, 0); }
.bva-dot { position: absolute; top: 47px; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; background: color-mix(in srgb, var(--c) 75%, transparent); box-shadow: 0 0 0 2px #fff; transition: transform .15s; }
.bva-dot:hover { transform: scale(1.25); z-index: 2; }
.bva-axis { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; color: var(--g600); }
.bva-axis span { position: absolute; transform: translateX(-50%); }
.bva-axis span:first-child { transform: none; } .bva-axis span:last-child { transform: translateX(-100%); }

/* motion: only on a fresh route (or a range change) */
@keyframes vz-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes vz-grow { from { transform: scaleX(0); } }
@keyframes vz-pop { from { transform: scale(0); opacity: 0; } }
@keyframes vz-fade { from { opacity: 0; } }
@keyframes vz-ring { from { stroke-dasharray: 0 1; } }
.anim .draw, .anim.px-card .draw { animation: vz-wipe 1.1s cubic-bezier(.45,0,.2,1) both; }
.anim .end-dot { animation: vz-pop .35s 1s cubic-bezier(.3,1.5,.6,1) both; }
.anim .mark, .anim .ylab, .anim .xlab { animation: vz-fade .5s .2s both; }
.anim .stack i { transform-origin: left; animation: vz-grow .7s cubic-bezier(.2,.8,.2,1) both; }
.anim .bk-bar i { transform-origin: left; animation: vz-grow .8s .15s cubic-bezier(.2,.8,.2,1) both; }
.anim .donut .seg { animation: vz-ring 1s cubic-bezier(.45,0,.2,1) both; }
.anim .bva-dot { animation: vz-pop .45s cubic-bezier(.3,1.5,.6,1) both; }
.anim .bva-ask, .anim .bva-ref { animation: vz-fade .4s .1s both; }
@media (prefers-reduced-motion: reduce) { .anim *, .anim { animation: none !important; } }

@media (max-width: 1100px) {
  .pf-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .tiles3.vert { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .px-stats { grid-template-columns: 1fr 1fr; }
  .tiles3.vert { grid-template-columns: 1fr; }
  .bk-head, .bk-row { grid-template-columns: 74px 1fr 60px; }
  .bk-who, .bk-head span:last-child { display: none; }
  .alloc-wrap { flex-direction: column; align-items: stretch; }
  .alloc-wrap .donut { align-self: center; }
  .viz-card { padding: 16px; }
  .tomb-trend .spark { display: none; }
  .ylab { min-width: 38px; }
  .bva-ref em { display: none; }
}

.tile.c-teal .dot, .tile.c-black .dot { box-shadow: 0 0 0 1.5px rgba(255,255,255,.85); }
.tile.c-teal .stack i, .tile.c-black .stack i { box-shadow: none; }

/* ---------- Round 2 ---------- */
/* Tiles share one elevation, whatever their color */
.tile, .tile.c-gray, .tile.c-black, .tile.c-teal { box-shadow: var(--drop); }
.tile.c-gray { background: #E9E9E9; }
/* Gains and status dots stay bright on dark tiles */
.tile.c-black .up, .tile.c-teal .up { color: #4ADE80; }
.tile.c-black .down, .tile.c-teal .down { color: #FF8A8A; }
.tile.c-black .chg, .tile.c-teal .chg { color: rgba(255,255,255,.85); }
.tile.c-black .chg.up { color: #4ADE80; }
.tile.c-black .brk span, .tile.c-teal .brk span { color: rgba(255,255,255,.75); }
.tile.c-black .noun, .tile.c-teal .noun { color: rgba(255,255,255,.65); }
/* On a teal tile, status colors lose contrast, so the bar goes tonal and dots carry a white ring */
.tile.c-teal .stack { background: rgba(255,255,255,.18); }
.tile.c-teal .stack i { opacity: .95; outline: 1px solid rgba(255,255,255,.55); outline-offset: -1px; }
/* Activity */
.act { gap: 14px; }
.act > div { align-items: center; }
.act p { display: flex; justify-content: space-between; gap: 16px; flex: 1; min-width: 0; }
.act small { margin: 0; white-space: nowrap; flex: none; }
.dsec.l-1-1-1 .act p, .dsec.l-1-1-1-1 .act p { flex-direction: column; gap: 2px; }

/* Compact art: just the mark in small slots */
.art.compact .wm-i { width: 34px; height: 34px; }
.art.compact .plate { padding: 8px 10px; border-radius: 8px; background: #fff; color: #EE5A3A; display: grid; place-items: center; }
.art.compact .plate .wm-i { width: 26px; height: 26px; }
.tomb-row .art.compact { aspect-ratio: 1; width: 64px; }

/* Tombstone trend sits under the name */
.tomb-t { flex-direction: column; align-items: flex-start; gap: 4px; }
.tomb-trend.muted { font-size: 12px; }

/* "Is reviewing" */
.typing { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--demoted); margin-right: 6px; }
.typing .av { width: 22px; height: 22px; font-size: 9px; border-radius: 6px; }
.typing i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin-left: 1px; animation: typing 1.2s infinite ease-in-out; }
.typing i:nth-of-type(2) { animation-delay: .15s; } .typing i:nth-of-type(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

/* Sticky asset header; the section nav fills like a progress bar */
.detail-head { position: sticky; top: 64px; z-index: 30; margin: 8px calc(var(--gx) * -1) 14px; padding: 12px var(--gx); background: rgba(241,241,241,.92); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow .2s; }
.detail-head.stuck { box-shadow: 0 1px 0 var(--g200); }
.detail-head h1 { transition: font-size .2s; }
.detail-head.stuck h1 { font-size: 20px; }
.subnav { position: relative; isolation: isolate; }
.subnav .sn-fill { position: absolute; z-index: -1; left: 4px; top: 4px; bottom: 4px; min-width: var(--min, 0); border-radius: 7px; background: var(--p50); transition: width .12s linear; }
.subnav a.on, .subnav a.done { color: var(--p700); }
.subnav a.on { background: transparent; }
.subnav a.done .i, .subnav a.on .i { color: var(--p500); }
.block { scroll-margin-top: 140px; }

@media (max-width: 640px) {
  .detail-head { top: 56px; }
  /* Tables become stacked cards */
  .table-wrap { overflow: visible; background: transparent; box-shadow: none; }
  .table thead { display: none; }
  .table, .table tbody { display: block; }
  .table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 14px; margin-bottom: 10px; background: #fff; border-radius: 12px; box-shadow: var(--drop); }
  .table td { display: block; padding: 0; border: 0; white-space: normal; text-align: left !important; min-width: 0; }
  .table td.hide-s { display: none; }
  .table td::before { content: attr(data-label); display: block; font-size: 11px; color: var(--g600); margin-bottom: 2px; }
  .table td:first-child, .table td[data-label=""] { grid-column: 1 / -1; }
  .table td[data-label=""]::before { display: none; }
  .table td:first-child::before { display: none; }
  .table td[data-label=""] .btn { width: 100%; }
  .pager { background: #fff; border-radius: 12px; }
  .act p { flex-direction: column; gap: 2px; }
}
@media (max-width: 640px) {
  .mt-orders :is(th, td):is(:nth-child(3), :nth-child(5)),
  .mt-listings :is(th, td):is(:nth-child(2), :nth-child(4), :nth-child(6)),
  .mt-trades :is(th, td):is(:nth-child(2), :nth-child(4)) { display: none; }
  .tile .mt td { max-width: 150px; }
}

/* Drag and drop in dashboard edit mode */
.editing .dsec { cursor: grab; }
.editing .tile { cursor: grab; transition: transform .15s, box-shadow .15s, opacity .15s; }
.editing .tile:hover { box-shadow: var(--lift); }
.editing .tile * { pointer-events: none; }
.sec-grip { position: absolute; left: -30px; top: 50%; transform: translateY(-50%); width: 22px; height: 40px; border-radius: 6px; display: grid; place-items: center; color: var(--g600); background: #fff; box-shadow: var(--drop); opacity: 0; transition: opacity .2s; }
.editing .dsec:hover .sec-grip, .editing .dsec.sel .sec-grip { opacity: 1; }
.sec-grip .i { width: 16px; height: 16px; }
.dragging { opacity: .4; }
.tile.drop-on { outline: 2px solid var(--p500); outline-offset: 3px; transform: scale(.985); }
.dsec.drop-before::before, .dsec.drop-after::after { content: ''; position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--p500); }
.dsec.drop-before::before { top: -12px; } .dsec.drop-after::after { bottom: -12px; }
@media (max-width: 1100px) { .sec-grip { left: auto; right: 8px; top: -14px; transform: none; width: 40px; height: 22px; } .sec-grip .i { transform: rotate(90deg); } }

.section-title[id], .lst-head[id] { scroll-margin-top: 140px; }
.detail-head .t .pill { margin-left: 4px; }
.lst-meta .row1 .eyebrow { display: block; }

/* Trade detail */
.trade-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 20px; }
.trade-head .t { display: flex; align-items: center; gap: 14px; min-width: 0; }
.trade-head .thumb { width: 52px; height: 52px; border-radius: 12px; }
.trade-head h1 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.3px; }
.trade-head p { margin: 2px 0 0; color: var(--demoted); font-size: 14px; }
.trade-head .acts { display: flex; align-items: center; gap: 12px; }
.trade-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.trade-grid .side { display: flex; flex-direction: column; gap: 16px; }
.steps { list-style: none; margin: 4px 0 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 22px; }
.steps::before, .steps::after { content: ''; position: absolute; left: 17px; top: 18px; width: 2px; border-radius: 1px; }
.steps::before { bottom: 18px; background: var(--g200); }
.steps::after { height: calc((100% - 36px) * var(--p)); background: var(--p500); }
.anim .steps::after { animation: vz-tall .9s .1s cubic-bezier(.45,0,.2,1) both; }
@keyframes vz-tall { from { height: 0; } }
.steps li { position: relative; display: flex; gap: 14px; }
.steps .dotc { position: relative; z-index: 1; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--g600); box-shadow: inset 0 0 0 2px var(--g200); }
.steps .dotc .i { width: 16px; height: 16px; }
.steps li.done .dotc { background: var(--p500); color: #fff; box-shadow: none; }
.steps li.now .dotc { background: var(--p50); color: var(--p600); box-shadow: inset 0 0 0 2px var(--p500), 0 0 0 5px rgba(23,113,143,.12); }
.anim .steps li.now .dotc { animation: pulse 2s 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: inset 0 0 0 2px var(--p500), 0 0 0 9px rgba(23,113,143,.06); } }
.steps b { display: block; font-size: 14px; line-height: 20px; margin-top: 7px; }
.steps p { margin: 2px 0 4px; font-size: 13px; line-height: 19px; color: var(--demoted); max-width: 560px; }
.steps small { font-size: 12px; color: var(--g600); }
.steps li.now small { color: var(--p600); font-weight: 600; }
.steps li.next b { color: var(--demoted); }
.trade-grid .files { display: flex; flex-direction: column; gap: 6px; }
.file.locked b { color: var(--demoted); font-weight: 500; } .file.locked .ext { background: var(--g600); }
.net { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--g200); }
.net span { font-size: 13px; color: var(--demoted); }
.net b { font-size: 22px; font-weight: 600; letter-spacing: -.3px; }
.cp { display: flex; gap: 12px; align-items: center; }
.cp b { display: block; font-size: 14px; }
.cp span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ok-ink); }
.cp span .i { width: 14px; height: 14px; }
.doc-prev { padding: 14px 16px; border-radius: 10px; background: var(--bg); margin-bottom: 14px; font-size: 13px; line-height: 19px; }
.doc-prev p { margin: 6px 0 0; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-top: 10px; }
.row-link { cursor: pointer; }
.cell-link { font-weight: 500; }
.cell-link:hover { color: var(--p500); }

/* Notifications */
.acct { position: relative; display: flex; align-items: center; gap: 8px; }
.bell { position: relative; }
.bell .badge { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.notif { position: absolute; z-index: 60; right: 0; top: calc(100% + 8px); width: min(380px, calc(100vw - 24px)); background: #fff; border-radius: 14px; box-shadow: var(--lift), 0 0 0 1px var(--g200); overflow: hidden; }
.notif-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 10px 16px; border-bottom: 1px solid var(--g200); }
.notif-list { max-height: min(460px, 70vh); overflow: auto; padding: 6px; }
.notif-list a { position: relative; display: flex; gap: 12px; padding: 10px 28px 10px 10px; border-radius: 10px; font-size: 13px; line-height: 18px; color: #000; }
.notif-list a:hover { background: var(--bg); }
.notif-list a.new { background: var(--p50); }
.notif-list a.new:hover { background: #D6EAF1; }
.notif-list small { display: block; font-size: 12px; color: var(--g600); margin-top: 2px; }
.unread-dot { position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--p500); }
@media (max-width: 1100px) { .trade-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .trade-head h1 { font-size: 20px; line-height: 26px; } .trade-head .acts { width: 100%; justify-content: space-between; } .notif { position: fixed; top: 60px; right: 12px; } }

/* Tint tile: brand color without fighting the status colors */
.tile.c-tint { background: var(--p50); box-shadow: var(--drop), inset 0 0 0 1px var(--p100); }
.tile.c-tint .stack { background: rgba(23,113,143,.12); }
/* Keyboard and touch moves */
.editing .tile:focus-visible { outline: 2px solid var(--p500); outline-offset: 3px; }
.sec-grip:focus-visible { opacity: 1; outline: 2px solid var(--p500); outline-offset: 2px; }
.editing .sec-grip { touch-action: none; }
.ghost { position: fixed; z-index: 100; pointer-events: none; opacity: .92; transform: rotate(1.5deg) scale(1.02); box-shadow: 0 20px 50px -10px rgba(0,0,0,.3); }
@media (pointer: coarse) { .editing .sec-grip { opacity: 1; } }

.art .bl { z-index: 1; }
.art:has(.bl)::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.42)); pointer-events: none; }
.art .br, .art .tl { z-index: 1; }
.mini .up { color: var(--ok-ink); } .mini .down { color: var(--bad-ink); } .mini .muted { color: var(--demoted); }
.btn-danger { color: var(--bad-text); }
@media (max-width: 1100px) {
  .mt-orders :is(th, td):nth-child(5), .mt-listings :is(th, td):nth-child(6) { display: none; }
}
.detail-head { background: rgba(241,241,241,.97); }

/* Notifications: separate items, no touching color blocks */
.notif-list { display: flex; flex-direction: column; gap: 4px; padding: 8px; }

/* Account: just the initials in brand color inside the white button */
.acct-btn .av { width: auto; height: auto; border-radius: 0; background: none; color: var(--p500); font-size: 13px; font-weight: 700; letter-spacing: .02em; }

/* Listing page title (not sticky) */
.page-title { display: flex; align-items: center; gap: 10px; margin: 12px 0 16px; }
.page-title h1 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.3px; }

/* Asset header: one bar at a time. Once it sticks, the app bar slides away and it takes the top */
.hs { display: block; height: 0; }
.top { transition: transform .3s var(--ease), border-color .2s; }
.sub-stuck .top { transform: translateY(-100%); }
.detail-head { top: 64px; background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); transition: top .3s var(--ease); }
.detail-head.stuck { top: 0; box-shadow: 0 0 0 100vmax var(--bg), 0 1px 0 100vmax var(--g200); clip-path: inset(0 -100vmax -1px); }
@media (max-width: 640px) { .detail-head { top: 56px; } .detail-head.stuck { top: 0; } }

/* ---------- Featured marketplace ---------- */
.art.photo { background: #DDD center / cover no-repeat; }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 20px; }
.mc { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--drop); color: #000; transition: box-shadow .3s var(--ease), transform .3s var(--ease); min-width: 0; }
.mc:hover { box-shadow: var(--lift); transform: translateY(-2px); }
.mc:focus-visible { outline: 2px solid var(--p500); outline-offset: 3px; }
.mc-img { position: relative; height: 128px; flex: none; }
.mc-img .art { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.mc-img .art .wm { transform: scale(.7); }
.badge-elig { position: absolute; top: 12px; right: 12px; z-index: 1; height: 24px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 6px; background: rgba(255,255,255,.94); color: #111; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.mc-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 16px; flex: 1; min-width: 0; }
.mc h3 { margin: 0; font-size: 17px; line-height: 23px; font-weight: 600; letter-spacing: -.2px; }
.mc-blurb { margin: 0; font-size: 13px; line-height: 19px; color: var(--demoted); }
.mc-meta { margin: 4px 0 0; font-size: 12px; color: var(--g600); font-variant-numeric: tabular-nums; }
.mc-ret { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.big-chg { display: inline-flex; align-items: baseline; gap: 4px; font-size: 20px; font-weight: 600; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.big-chg .i { width: 16px; height: 16px; align-self: center; }
.big-chg small { font-size: 11px; font-weight: 500; color: var(--g600); margin-left: 4px; letter-spacing: 0; }
.big-chg.up { color: var(--ok-text); } .big-chg.down { color: var(--bad-text); }
.mc-view { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--p500); margin-top: 10px; }
.mc-view .i { width: 14px; height: 14px; transition: transform .2s; }
.mc:hover .mc-view .i { transform: translateX(2px); }
.closing { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.closing i { display: block; height: 4px; border-radius: 2px; background: var(--g200); overflow: hidden; }
.closing .fill { display: block; height: 100%; border-radius: 2px; background: var(--warn); }
.closing small { font-size: 11.5px; color: var(--warn-ink); font-weight: 600; }
/* wide: photo left, story right */
.mc-wide { grid-column: span 2; flex-direction: row; min-height: 300px; }
.mc-wide .mc-img { width: 50%; height: auto; }
.mc-wide .mc-body { padding: 22px 24px; }
.mc-wide h3 { font-size: 24px; line-height: 30px; letter-spacing: -.4px; }
.mc-wide .mc-blurb { font-size: 14px; line-height: 21px; }
.mc-wide .badge-elig { right: auto; left: 12px; }
/* hero story */
.mc-hero { grid-column: span 2; grid-row: span 2; min-height: 640px; background: #222 center / cover no-repeat; color: #fff; justify-content: space-between; }
.mc-hero .mc-top { display: flex; justify-content: space-between; align-items: flex-start; padding: 24px 26px 0; }
.mc-hero .badge-elig { position: static; background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mc-hero .closing { width: 180px; align-items: flex-end; }
.mc-hero .closing i { width: 100%; background: rgba(255,255,255,.25); }
.mc-hero .closing .fill { background: #fff; }
.mc-hero .closing small { color: rgba(255,255,255,.85); }
.mc-hero .mc-body { flex: none; padding: 0 28px 28px; gap: 8px; }
.eyebrow-light { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.mc-hero h3 { font-size: 40px; line-height: 44px; letter-spacing: -1px; max-width: 560px; }
.mc-hero p { margin: 0; font-size: 15px; line-height: 22px; color: rgba(255,255,255,.85); max-width: 480px; }
.mc-hero .mc-meta { color: rgba(255,255,255,.7); font-size: 13px; }
.mc-hero .big-chg { font-size: 36px; color: #fff; }
.mc-hero .big-chg small { color: rgba(255,255,255,.7); font-size: 13px; }
.mc-hero .mc-ret { padding-top: 16px; }
@media (max-width: 1100px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-hero { grid-row: span 1; min-height: 480px; }
}
@media (max-width: 640px) {
  .mosaic { grid-template-columns: 1fr; gap: 14px; }
  .mc-hero, .mc-wide { grid-column: auto; }
  .mc-hero { min-height: 440px; }
  .mc-hero h3 { font-size: 30px; line-height: 34px; }
  .mc-hero .closing { width: 130px; }
  .mc-wide { flex-direction: column; min-height: 0; }
  .mc-wide .mc-img { width: 100%; height: 170px; }
  .mc-wide h3 { font-size: 20px; line-height: 26px; }
}
/* Detail hero with a photo */
.art.hero.photo { min-height: 320px; }
.big-chg { white-space: nowrap; }

/* One CTA on every asset card and row; the rest of the card links to the asset */
.stretch { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.stretch:focus-visible { outline: 2px solid var(--p500); outline-offset: 3px; }
.mc > *:not(.stretch), .tomb-row > *:not(.stretch) { position: relative; pointer-events: none; }
.mc .btn, .tomb-row .btn { pointer-events: auto; position: relative; z-index: 1; }
.mc-cta { margin-top: 14px; }
.mc-cta .btn-block { justify-content: center; }
.mc-hero .mc-cta .btn { background: #fff; color: #000; }
.mc-hero .mc-cta .btn:hover { background: rgba(255,255,255,.88); }
.mc-hero .mc-body { position: relative; }
.mc-wide .mc-cta .btn-block { width: auto; align-self: flex-start; padding: 0 20px; }
.tomb-row { position: relative; grid-template-columns: 64px minmax(0, 1.8fr) repeat(4, minmax(0, 1fr)) 132px; }
.tomb-row .tr-cta { display: flex; justify-content: flex-end; }
.tomb-row .tr-cta .btn { width: 100%; }
.tomb-row .pill { margin-top: 2px; }
@media (max-width: 1100px) { .tomb-row { grid-template-columns: 64px minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)) 120px; } .tomb-row > div:nth-of-type(4), .tomb-row > div:nth-of-type(6) { display: none; } }
@media (max-width: 640px) { .tomb-row { grid-template-columns: 56px minmax(0, 1fr); } .tomb-row .tr-cta { grid-column: 1 / -1; } }

/* Grid card rebuilt from the featured-card pieces */
.tomb { position: relative; }
.tomb > *:not(.stretch) { position: relative; pointer-events: none; }
.tomb .btn { pointer-events: auto; z-index: 1; }
.tomb:hover { box-shadow: var(--lift); }
.tomb-img { position: relative; }
.tomb-img .badge-elig { top: 10px; right: 10px; }
.tomb .closing { margin: 0; }
.tomb-t { gap: 2px; }
.tomb-t .mc-meta { margin: 0; }
.tomb-ret { min-height: 20px; }
/* List row: status column holds the same eligibility badge */
.tomb-row { grid-template-columns: 64px minmax(0, 2fr) repeat(3, minmax(0, 1fr)) 132px; }
.tr-name .mc-meta { margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-status { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tr-status .badge-elig { position: static; box-shadow: inset 0 0 0 1px var(--g300); background: #fff; }
.tr-close { font-size: 11.5px !important; color: var(--warn-ink) !important; font-weight: 600; }
@media (max-width: 1100px) { .tomb-row { grid-template-columns: 64px minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)) 120px; } .tomb-row > div:nth-of-type(4), .tomb-row > div:nth-of-type(6) { display: revert; } .tomb-row > div:nth-of-type(3) { display: none; } }
/* View switch: center the icons */
.seg button { display: inline-flex; align-items: center; justify-content: center; }
.seg button .i { display: block; }

/* Subscription window: label above, time left on the right, bar = share of the window remaining */
.closing .cl-row { display: flex; justify-content: space-between; gap: 8px; order: -1; }
.closing .cl-row small { font-size: 11.5px; color: var(--demoted); font-weight: 500; }
.closing .cl-row small b { color: #000; font-weight: 700; }
.closing .fill { background: var(--p500); }
.closing.soon .fill { background: var(--warn); }
.closing.soon .cl-row small:first-child { color: var(--warn-ink); font-weight: 600; }
.mc-hero .closing { width: 220px; align-items: stretch; }
.mc-hero .closing .cl-row small, .mc-hero .closing .cl-row small b { color: rgba(255,255,255,.9); }
.mc-hero .closing.soon .cl-row small:first-child { color: #FFD9A8; }
.mc-hero .closing .fill, .mc-hero .closing.soon .fill { background: #fff; }
.tr-close { display: none; }
.tr-left { font-size: 11.5px !important; color: var(--demoted) !important; font-weight: 500; }
.tr-left.soon { color: var(--warn-ink) !important; font-weight: 600; }
/* Bell matches the account button: white box, same height and border */
.bell { width: 36px; height: 36px; border-radius: 8px; background: #fff; border: 1px solid var(--g200); color: #000; }
.bell:hover { border-color: var(--g300); background: #fff; }
.bell .i { width: 18px; height: 18px; }
.bell .badge { top: -6px; right: -6px; }

/* Listing modal: the selected security as a mark plus a caption, never a clipped wordmark */
#lm-art { position: relative; border-radius: 8px; overflow: hidden; }
#lm-art .art.compact { height: 100%; min-height: 200px; aspect-ratio: auto; border-radius: 8px; }
#lm-art .art.compact .wm-i { width: 52px; height: 52px; transform: translateY(-18px); }
#lm-art .art.compact .plate { transform: translateY(-18px); }
#lm-art .art.compact > b { transform: translateY(-18px); }
#lm-art .lm-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; }
#lm-art .lm-cap b { display: block; font-size: 14px; line-height: 18px; }
#lm-art .lm-cap small { font-size: 12px; opacity: .85; }

/* QA: the hero photo kept its 16:7 ratio at min-height and spilled off narrow screens */
.art.hero.photo { width: 100%; min-width: 0; }
@media (max-width: 760px) { .art.hero.photo { min-height: 240px; } }

/* QA: hero badge and closing bar no longer collide on phones */
.badge-elig { white-space: nowrap; flex: none; }
.mc-hero .mc-top { gap: 14px; }
.mc-hero .closing { min-width: 0; flex: 0 1 180px; }

/* ---------- QA pass: mobile ---------- */
.btn-filters { display: none; }
@media (max-width: 760px) {
  /* Search plus one Filters button; the four dropdowns live in a sheet */
  .toolbar { flex-wrap: nowrap; gap: 8px; }
  .toolbar .search { flex: 1; min-width: 0; }
  .toolbar .dd, .toolbar .spacer { display: none; }
  .btn-filters { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 44px; padding: 0 14px; border-radius: 10px; background: #fff; box-shadow: var(--drop); font-weight: 500; }
  .btn-filters .i { width: 18px; height: 18px; }
  .btn-filters .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--p500); color: #fff; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
  /* Tab bar sits a little higher off the bottom edge */
  .tabbar { padding: 8px 8px calc(16px + env(safe-area-inset-bottom)); }
  main { padding-bottom: 112px; }
  /* Every card in the stack follows one pattern: badge top right, same type sizes, full-width action */
  .mc-wide .badge-elig { left: auto; right: 12px; }
  .mc-wide .mc-body { padding: 16px 18px; }
  .mc-wide h3 { font-size: 17px; line-height: 23px; letter-spacing: -.2px; }
  .mc-wide .mc-blurb { font-size: 13px; line-height: 19px; }
  .mc-wide .mc-img { height: 128px; }
  .mc .mc-cta .btn, .mc-wide .mc-cta .btn-block { width: 100%; align-self: stretch; justify-content: center; }
  .mc-hero .mc-top { padding: 18px 18px 0; }
  .mc-hero .mc-body { padding-left: 18px; padding-right: 18px; }
}
.fsheet { display: flex; flex-direction: column; gap: 18px; }
.fsheet fieldset { border: 0; margin: 0; padding: 0; }
.fsheet legend { font-size: 13px; font-weight: 600; color: var(--g600); margin-bottom: 10px; padding: 0; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { position: relative; }
.fchip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fchip span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 18px; background: #F1F1F3; font-size: 14px; transition: background .2s, color .2s; }
.fchip input:checked + span { background: #000; color: #fff; }
.fchip input:focus-visible + span { outline: 2px solid var(--p500); outline-offset: 2px; }
.fs-foot { justify-content: space-between; position: sticky; bottom: -22px; background: #fff; padding: 12px 0 4px; }
.fs-foot .btn-primary { flex: 1; justify-content: center; }

/* QA: hero copy stays legible over bright photos */
.mc-hero { box-shadow: inset 0 -420px 220px -140px rgba(0,0,0,.42), var(--drop); }
.mc-hero h3, .mc-hero p, .mc-hero .eyebrow-light, .mc-hero .mc-meta { text-shadow: 0 1px 14px rgba(0,0,0,.28); }

@media (max-width: 760px) { .tags .pill.dark { margin-left: 0; } }
