/* ══ THE ESTATE BOARD (1 Oct 2026): the approved "You" look test, built. With estate-board.js. ══ */
.eb { flex: 1 1 100%; min-width: 0; --good: #1f7a3a; font: 15px/1.5 "Instrument Sans", sans-serif; color: var(--ink); }
.eb .k { font: 500 11px "Instrument Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); }
.eb-wait, .eb-warn { padding: 18px 0; color: var(--mid); } .eb-warn { color: #c2410c; }
.eb-none { color: var(--mid); margin: 6px 0; font-size: 14px; }
/* pills: the site's buttons, over whatever the Ledger's own button rules say */
#ledger-body .eb .eb-pill, .eb .eb-pill { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; margin: 0; border-radius: 99px; border: 1px solid var(--ink); background: #fff; color: var(--ink); text-decoration: none; font: 500 14px "Instrument Sans", sans-serif; white-space: nowrap; cursor: pointer; box-shadow: none; }
#ledger-body .eb .eb-pill.dark, .eb .eb-pill.dark { background: var(--ink); color: #fff; }
#ledger-body .eb .eb-pill:hover { background: var(--acc); border-color: var(--acc); color: #fff; }
#ledger-body .eb .eb-pill:disabled { opacity: .35; cursor: default; background: #fff; color: var(--ink); border-color: var(--ink); }

/* the hero: worth now, against what went in */
.eb-hero { padding-top: 8px; display: grid; grid-template-columns: minmax(0, 1.25fr) 210px minmax(0, 1fr); gap: 34px; align-items: center; }
.eb-worth { min-width: 0; }
.eb-worth .eb-big { display: block; font: 400 104px/.92 "Instrument Serif", serif; letter-spacing: -.03em; margin-top: 8px; white-space: nowrap; overflow: hidden; }
.eb-worth .vs { margin-top: 12px; font-size: 15px; color: var(--mid); } .eb-worth .vs b { font-weight: 500; color: var(--ink); }
.eb-worth .down { color: #c2410c; } .eb-worth .up { color: var(--good); }
.eb-units { margin-top: 14px; display: inline-grid; grid-template-columns: repeat(3, auto); background: var(--soft); border-radius: 99px; padding: 4px; }
#ledger-body .eb-units button { height: auto; margin: 0; padding: 7px 16px; border: 0; border-radius: 99px; background: transparent; font: 500 13px "Instrument Sans", sans-serif; color: var(--mid); cursor: pointer; box-shadow: none; }
#ledger-body .eb-units button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.eb-ring { position: relative; width: 210px; height: 210px; } .eb-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.eb-ring .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.eb-ring .c b { display: block; font: 400 30px/1 "Instrument Serif", serif; } .eb-ring .c span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); }
.eb-legend { min-width: 0; }
.eb-legend > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; } .eb-legend > div:last-child { border-bottom: 1px solid var(--line); }
.eb-legend > div > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.eb-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; } .eb-legend span:first-child { color: var(--mid); white-space: nowrap; }

/* the tiles */
.eb-tiles { margin-top: 26px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.eb-tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.eb-tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.eb-tile b { display: block; font: 400 34px/1 "Instrument Serif", serif; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eb-tile small { display: block; color: var(--mid); font-size: 12.5px; margin-top: 6px; }
.eb-tile.hot { border-color: var(--ink); } .eb-tile.hot b { color: var(--good); }

/* the sections bar: stays at the top of the page while you read */
.eb-sbar { position: sticky; top: 0; z-index: 5; background: rgba(251,250,247,.95); backdrop-filter: blur(8px); margin-top: 34px; padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.eb-sbar::-webkit-scrollbar { display: none; }
.eb-sbar a { flex: none; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; }
.eb-sbar a:hover { border-color: var(--ink); } .eb-sbar a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.eb section { padding-top: 34px; scroll-margin-top: 70px; }
.eb .sh { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 14px; }
.eb .sh h2 { font: 400 44px/1 "Instrument Serif", serif; margin: 0; } .eb .sh p { color: var(--mid); margin: 6px 0 0; font-size: 14px; max-width: 640px; }
.eb .sh .rt { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.eb-more { margin-top: 14px; display: flex; gap: 10px; align-items: center; } .eb-pager span { color: var(--mid); font-size: 13px; }

/* lots: the grid and the deeds, one list */
.eb-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
#ledger-body .eb-filters input { border: 1px solid var(--line); border-radius: 99px; padding: 9px 14px; height: 38px; box-sizing: border-box; font: 14px "Instrument Sans", sans-serif; background: #fff; width: 220px; margin: 0; }
.eb-chips { display: flex; gap: 6px; flex-wrap: wrap; }
#ledger-body .eb-chips button { height: 34px; margin: 0; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); font: 500 13px "Instrument Sans", sans-serif; background: #fff; color: var(--ink); cursor: pointer; box-shadow: none; }
#ledger-body .eb-chips button:hover { border-color: var(--ink); } #ledger-body .eb-chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.eb-lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
#ledger-body .eb-lot { display: block; width: auto; height: auto; margin: 0; padding: 0; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; color: var(--ink); font: inherit; box-shadow: none; transition: transform .15s, border-color .15s; }
#ledger-body .eb-lot:hover { border-color: var(--ink); transform: translateY(-2px); background: #fff; color: var(--ink); }
.eb-lot img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--soft); }
.eb-lot .t { display: block; padding: 9px 11px 11px; } .eb-lot .t b { font: 400 20px/1 "Instrument Serif", serif; }
.eb-lot .t small { display: block; color: var(--mid); font-size: 12px; margin-top: 4px; }
.eb-lot .tag { display: inline-block; margin-top: 6px; font-size: 10.5px; border-radius: 99px; padding: 2px 8px; background: var(--soft); }
.eb-lot .tag.ag { background: #eef0f8; color: var(--seal); } .eb-lot .tag.st { background: #eef6ef; color: #1f5e3c; }

/* vaults */
.eb-vtable { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 6px 20px; }
#ledger-body .eb .vrow { display: grid; width: 100%; height: auto; margin: 0; grid-template-columns: 80px minmax(0, 1fr) 200px 110px; gap: 16px; align-items: center; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; text-align: left; font: 14px "Instrument Sans", sans-serif; color: var(--ink); cursor: pointer; box-shadow: none; }
#ledger-body .eb .vrow:last-child { border-bottom: 0; } #ledger-body .eb .vrow:hover { background: #fcfbf8; color: var(--ink); }
.eb .vrow b { font: 400 22px/1 "Instrument Serif", serif; }
.eb .vrow .bar { height: 6px; margin-top: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; display: flex; } .eb .vrow .bar i { display: block; height: 100%; }
.eb .vrow .amt { color: var(--mid); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .eb .vrow .usd { text-align: right; font-weight: 500; }

/* agents */
.eb-agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.eb-agent { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; min-width: 0; }
.eb-agent .top { display: flex; justify-content: space-between; align-items: baseline; } .eb-agent .top b { font: 400 24px/1 "Instrument Serif", serif; }
.eb-agent .kind { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--seal); margin-top: 6px; }
.eb-agent p { color: var(--mid); font-size: 13px; margin: 8px 0 12px; }
.eb-agent .row { display: flex; gap: 8px; align-items: center; } .eb-agent .row span { font-size: 12.5px; color: var(--mid); margin-left: auto; }
#ledger-body .eb-agent .eb-pill { height: 32px; font-size: 13px; padding: 0 12px; }

/* earnings */
.eb-earn { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 12px; }
.eb-ecard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; min-width: 0; }
.eb-ecard b.big { display: block; font: 400 46px/1 "Instrument Serif", serif; margin-top: 8px; white-space: nowrap; } .eb-ecard b.big span { font-size: 20px; color: var(--mid); }
.eb-ecard p { color: var(--mid); font-size: 13.5px; margin: 8px 0 0; }
.eb-ecard svg { width: 100%; height: 150px; display: block; margin-top: 10px; }
.eb-ecard .axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--mid); margin-top: 4px; }

/* household */
.eb-house { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eb .hrow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; } .eb .hrow span:first-child { color: var(--mid); }
.eb .hrow a { color: var(--ink); }
.eb-ecard .row { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

/* activity */
.eb-act .arow { display: grid; grid-template-columns: 130px 70px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.eb-act .arow:last-child { border-bottom: 0; } .eb-act .d { color: var(--mid); font-size: 13px; }
#ledger-body .eb-act .n { height: auto; margin: 0; padding: 0; border: 0; background: none; font: 400 19px/1 "Instrument Serif", serif; color: var(--ink); text-align: left; cursor: pointer; box-shadow: none; } #ledger-body .eb-act .n:hover { color: var(--acc); background: none; }
.eb-act .w { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .eb-act .tx { color: var(--mid); font-size: 13px; text-decoration: none; white-space: nowrap; } .eb-act .tx:hover { color: var(--acc); }

/* estates */
.eb-list section { padding-top: 26px; }
.eb-estates .erow { display: grid; grid-template-columns: 44px 14px minmax(0, 1fr) 90px 90px 120px; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; }
.eb-estates .erow:last-child { border-bottom: 0; } .eb-estates a.erow:hover { background: #fcfbf8; } .eb-estates .erow.me { background: #fffaf2; }
.eb-estates .erow.hd { font: 500 11px "Instrument Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); padding: 12px 0 10px; }
.eb-estates .r { color: var(--mid); font-variant-numeric: tabular-nums; } .eb-estates .sw { width: 12px; height: 12px; border-radius: 50%; }
.eb-estates .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .eb-estates .nm b { font: 400 20px/1 "Instrument Serif", serif; }
.eb-estates .nm em { font-style: normal; font-size: 10.5px; background: var(--ink); color: #fff; border-radius: 99px; padding: 2px 8px; margin-left: 8px; vertical-align: 3px; }
.eb-estates .nm small { color: var(--mid); font-size: 12px; margin-left: 8px; }
.eb-estates .c { color: var(--mid); text-align: right; font-variant-numeric: tabular-nums; } .eb-estates .usd { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.eb-found { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--ink); border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; flex-wrap: wrap; }
.eb-found img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--soft); } .eb-found b { font: 400 26px/1 "Instrument Serif", serif; } .eb-found p { margin: 4px 0 0; color: var(--mid); }
.eb-found > div:nth-child(2) { flex: 1; min-width: 160px; } .eb-found .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* the floor, inside the Market page */
.mk-floor { flex: 1 1 100%; min-width: 0; }
.mk-floor iframe { display: block; width: 100%; height: 1400px; border: 0; background: transparent; }

@media (max-width: 1100px) {
  .eb-hero { grid-template-columns: minmax(0, 1fr) 180px; } .eb-legend { grid-column: 1 / -1; } .eb-ring { width: 180px; height: 180px; }
  .eb-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .eb-agents { grid-template-columns: 1fr 1fr; } .eb-earn { grid-template-columns: 1fr 1fr; } .eb-earn .chart { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .eb-hero { grid-template-columns: 1fr; gap: 18px; } .eb-worth .eb-big { font-size: 64px; } .eb-ring { width: 170px; height: 170px; margin: 0 auto; }
  .eb-tiles, .eb-tiles.three { grid-template-columns: 1fr 1fr; } .eb-tile b { font-size: 28px; }
  .eb .sh { flex-direction: column; align-items: flex-start; } .eb .sh h2 { font-size: 36px; } .eb .sh .rt { justify-content: flex-start; }
  .eb-filters { justify-content: flex-start; width: 100%; } #ledger-body .eb-filters input { width: 100%; }
  .eb-lots { grid-template-columns: repeat(2, minmax(0, 1fr)); } #ledger-body .eb .vrow { grid-template-columns: 64px minmax(0, 1fr) 76px; } .eb .vrow .what { display: none; }
  .eb-agents, .eb-earn, .eb-house { grid-template-columns: 1fr; }
  .eb-vtable { padding: 4px 14px; }
  .eb-act .arow { grid-template-columns: 62px minmax(0, 1fr) auto; } .eb-act .d { grid-column: 1 / -1; margin-bottom: -6px; }
  .eb-estates .erow { grid-template-columns: 30px 10px minmax(0, 1fr) 82px; gap: 10px; } .eb-estates .c { display: none; } .eb-estates .nm small { display: none; }
  .mk-floor iframe { border-radius: 14px; }
}
body.fp-phone .eb-sbar { top: 52px; background: #fff; }
body.fp-phone #ledger-body > .eb { padding: 0 2px; }
/* 1 Oct: a picture of the piece on every agent card and vault row */
.eb-th { display: block; flex: none; object-fit: cover; background: var(--soft); }
.eb-agent .top { align-items: center; gap: 12px; } .eb-agent .top b { flex: 1; min-width: 0; }
.eb-agent .top .eb-th { width: 56px; height: 56px; border-radius: 12px; }
.eb .vrow > b { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.eb .vrow .eb-th { width: 40px; height: 40px; border-radius: 9px; }
#ledger-body .eb .vrow { grid-template-columns: 130px minmax(0, 1fr) 200px 110px; }
@media (max-width: 820px) { #ledger-body .eb .vrow { grid-template-columns: 112px minmax(0, 1fr) 76px; } .eb .vrow .eb-th { width: 34px; height: 34px; } }
