/* Real Estate Mogul: property listings on the shared report styles. */
.report { max-width: 720px; }
.round-bar { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; margin: 14px 0 6px; font-size: 13.5px; color: var(--muted); }
.round-bar strong { color: var(--ink); font-weight: 600; font-size: 15px; }
.cash { font-variant-numeric: tabular-nums; }
.cash.low { color: var(--bad); }
.timeline { display: flex; gap: 0; margin: 8px 0 18px; border-bottom: 1px solid var(--rule); }
.timeline span { flex: 1; text-align: center; font-size: 12.5px; color: var(--muted); padding: 4px 0 6px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.timeline span.done { color: var(--ink); }
.timeline span.now { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }

h2.section { font-size: 15px; font-weight: 600; margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--rule-strong); display: flex; justify-content: space-between; align-items: baseline; }
h2.section .sub { font-weight: 400; font-size: 13px; color: var(--muted); }

/* portfolio */
.holdings td.name { font-weight: 500; }
.holdings td.name .where { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.holdings td.num { white-space: nowrap; }
.holdings td.chg.up { color: var(--good); }
.holdings td.chg.down { color: var(--bad); }
.holdings tr.selling td { background: #FBF1EE; }
.holdings tfoot td { border-top: 1px solid var(--rule-strong); border-bottom: 0; font-weight: 600; }
.sell-btn { font: 500 12.5px var(--sans); background: #fff; color: var(--ink); border: 1px solid var(--rule-strong); border-radius: 3px; padding: 3px 9px; cursor: pointer; white-space: nowrap; }
.sell-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.empty { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }

/* listings */
.listings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.listing { border: 1px solid var(--rule); border-radius: 3px; background: #fff; display: flex; flex-direction: column; overflow: hidden; }
.listing.bought { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.listing .art { display: block; width: 100%; aspect-ratio: 320 / 200; background: #F4F6F8; position: relative; overflow: hidden; }
.listing .art svg { display: block; width: 100%; height: 100%; }
.listing .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.listing .art .tag { position: absolute; top: 8px; left: 8px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; padding: 2px 7px; border-radius: 2px; }
.listing .art .tag.sold { background: var(--good); }
.listing .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.listing .desc { font-weight: 600; font-size: 14px; line-height: 1.3; }
.listing .where { font-size: 13px; color: var(--muted); }
.listing .where .flag { margin-right: 4px; }
.listing .price { margin-top: 6px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.listing .price .local { font-weight: 400; font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.listing .buy { margin-top: 8px; font: 500 13.5px var(--sans); background: #fff; color: var(--accent); border: 1px solid var(--accent); border-radius: 3px; padding: 6px 12px; cursor: pointer; align-self: flex-start; }
.listing .buy[aria-pressed="true"] { background: var(--accent); color: #fff; }
.listing .buy:disabled { color: var(--muted); border-color: var(--rule); cursor: not-allowed; background: #fff; }
.listing .qty { margin-top: 8px; display: flex; align-self: stretch; align-items: center; justify-content: space-between; gap: 6px; border: 1px solid var(--accent); border-radius: 3px; overflow: hidden; min-width: 0; }
.listing .qty .qn { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing .qty .step { flex: 0 0 auto; }
.listing .step { font: 500 13px var(--sans); background: var(--accent); color: #fff; border: 0; padding: 0 10px; height: 30px; cursor: pointer; line-height: 1; white-space: nowrap; }
.listing .step:disabled { background: #9AA6B8; cursor: not-allowed; }
.listing .qn { font-size: 13.5px; font-weight: 600; padding: 0 10px; white-space: nowrap; }
.listing .ql { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.listing .outcome { margin-top: 6px; font-size: 14px; font-variant-numeric: tabular-nums; }
.listing .outcome .arrow { font-weight: 600; }
.listing .outcome.up .arrow { color: var(--good); }
.listing .outcome.down .arrow { color: var(--bad); }
.listing .outcome .note { display: block; font-size: 12.5px; color: var(--muted); }
.listing.reveal.skipped { opacity: 0.78; }
.listing .credit { font-size: 11px; color: var(--muted); margin-top: 4px; }
.listing .credit a { color: var(--muted); }

.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0 0; }
.actions .hint { font-size: 13px; color: var(--muted); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* reveal summary */
.summary { margin: 16px 0 0; padding: 12px 14px; background: var(--band); border-radius: 3px; font-size: 14px; }
.summary strong { font-weight: 600; }
.summary .up { color: var(--good); }
.summary .down { color: var(--bad); }
.summary p { margin: 0 0 4px; }

/* results */
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 14px; }
.result-grid div { border: 1px solid var(--rule); border-radius: 3px; padding: 10px 12px; }
.result-grid .n { display: block; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.result-grid .l { font-size: 12px; color: var(--muted); }
.result-grid .n.up { color: var(--good); }
.result-grid .n.down { color: var(--bad); }
.grade { font-size: 15px; margin: 0 0 12px; }
.perfect { margin: 0 0 14px; }
.perfect ol { margin: 8px 0 0; padding-left: 20px; font-size: 13.5px; line-height: 1.5; }
.perfect li { margin-bottom: 4px; }
.emoji-grid { font-family: ui-monospace, Menlo, monospace; font-size: 15px; line-height: 1.5; white-space: pre; margin: 0 0 12px; }
.ledger td { font-size: 13.5px; }
.ledger td.num { white-space: nowrap; }

.foot-note a { color: var(--muted); }
.dialog { max-width: 480px; }
.dialog-body .sources { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

@media (max-width: 680px) { .listings { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .listings { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .holdings th:nth-child(2), .holdings td.paid { display: none; }
}

/* ---------- ambient motion in the illustrations ---------- */
.ha-cloud-a { animation: ha-drift 70s linear infinite; }
.ha-cloud-b { animation: ha-drift 95s linear infinite reverse; }
@keyframes ha-drift { from { transform: translateX(-30px); } to { transform: translateX(30px); } }
.ha-sway { animation: ha-sway 5s ease-in-out infinite alternate; transform-box: view-box; }
@keyframes ha-sway { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg); } }
.ha-smoke { animation: ha-smoke 4s ease-out infinite; }
.ha-smoke-1 { animation-delay: 1.3s; }
.ha-smoke-2 { animation-delay: 2.6s; }
@keyframes ha-smoke { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 0.55; } 100% { transform: translate(6px, -26px); opacity: 0; } }
.ha-lamp { animation: ha-lamp 3s ease-in-out infinite alternate; }
@keyframes ha-lamp { from { opacity: 0.6; } to { opacity: 1; } }
.ha-bird { animation: ha-bird 18s linear infinite; opacity: 0; }
@keyframes ha-bird { 0% { opacity: 0; translate: 0 0; } 5% { opacity: 1; } 45% { opacity: 1; } 50% { opacity: 0; translate: 140px -12px; } 100% { opacity: 0; translate: 140px -12px; } }
/* windows light up when the home is in your basket or you own it */
.ha-glass { transition: fill 600ms ease; }
.listing.bought .ha-glass { fill: #F7D98A; }
.listing.bought .art { box-shadow: inset 0 0 0 2px var(--accent); }
@media (prefers-reduced-motion: reduce) { .ha-cloud-a, .ha-cloud-b, .ha-sway, .ha-smoke, .ha-lamp, .ha-bird { animation: none; } .ha-smoke { opacity: 0; } }
