/* Project Freehold prototype — styles
   Identity (palette B "Deep Teal & Brass"): cool mist ground, deep teal ink, brass accents (a building's brass nameplate).
   Type: Manrope (display + body), IBM Plex Mono (ledger data). */
:root {
  --ground: #edf1f1; --paper: #fbfcfc; --paper-2: #f3f6f6; --ink: #0b2a2e; --ink-2: #34505a; --muted: #5f7478; --faint: #93a5a8;
  --green: #0f5257; --green-2: #0b4247; --green-soft: #ddebec; --on-green: #fbfcfc; --brass: #b08d57; --brass-soft: #f3ebdd; --brass-ink: #6f552b;
  --line: #d2dcdd; --line-2: #e2eaea;
  --panel: #0b2a2e; --panel-2: #143a3f; --panel-ink: #e7efef; --panel-muted: #9db3b5;
  --good: #2e7d4f; --good-soft: #e0f0e6; --warn: #9a6500; --warn-soft: #f7ecd6; --bad: #b0412e; --bad-soft: #f8e4df;
  --r: 6px; --r-lg: 10px; --banner-h: 28px;
  --font: "Manrope", "Helvetica Neue", Arial, system-ui, sans-serif;
  --display: "Manrope", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0a1517; --paper: #112023; --paper-2: #16282b; --ink: #e5eeee; --ink-2: #c0d0d1; --muted: #8ba2a4; --faint: #627779;
    --green: #4fa3a8; --green-2: #6dbbbf; --green-soft: #143236; --on-green: #061214; --brass: #d2b07a; --brass-soft: #2e2718; --brass-ink: #e3c99b;
    --line: #25393c; --line-2: #1d2f32;
    --panel: #061214; --panel-2: #123034; --panel-ink: #e5eeee; --panel-muted: #8ba2a4;
    --good: #5fbf86; --good-soft: #17301f; --warn: #e0a84a; --warn-soft: #33270f; --bad: #e27b66; --bad-soft: #3a1c16;
  }
}
:root[data-theme="dark"] {
  --ground: #0a1517; --paper: #112023; --paper-2: #16282b; --ink: #e5eeee; --ink-2: #c0d0d1; --muted: #8ba2a4; --faint: #627779;
  --green: #4fa3a8; --green-2: #6dbbbf; --green-soft: #143236; --on-green: #061214; --brass: #d2b07a; --brass-soft: #2e2718; --brass-ink: #e3c99b;
  --line: #25393c; --line-2: #1d2f32;
  --panel: #061214; --panel-2: #123034; --panel-ink: #e5eeee; --panel-muted: #8ba2a4;
  --good: #5fbf86; --good-soft: #17301f; --warn: #e0a84a; --warn-soft: #33270f; --bad: #e27b66; --bad-soft: #3a1c16;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
a { color: var(--green); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; color: var(--ink); text-wrap: balance; font-weight: 400; }
h1 { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -.035em; }
h2 { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
h3 { font-size: 15.5px; font-weight: 650; letter-spacing: -.1px; }
p { margin: 0 0 10px; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: -.1px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .word { font-family: var(--display); font-size: 21px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }

/* ---------- Shell ---------- */
.shell { min-height: 100vh; }
.shell > * { min-width: 0; }
.sidebar { display: none; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--ground) 90%, transparent); backdrop-filter: blur(10px); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-2); }
.demo-pill { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--brass-ink); border: 1px solid var(--brass); padding: 2px 7px; border-radius: 3px; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.main { padding: 14px 16px calc(124px + env(safe-area-inset-bottom, 0px)); max-width: 1160px; margin: 0 auto; }
.tabbar { position: fixed; left: 0; right: 0; bottom: var(--banner-h); z-index: 30; background: var(--paper); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 0 4px env(safe-area-inset-bottom, 0px); }
.tab { position: relative; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 0 8px; color: var(--faint); font-size: 11px; font-weight: 600; }
.tab svg { width: 21px; height: 21px; }
.tab.active { color: var(--ink); }
.tab.active::before { content: ""; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; background: var(--brass); }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 248px 1fr; }
  .sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background-color: var(--panel); color: var(--panel-ink); padding: 22px 14px var(--banner-h); }
  .sidebar .brand { color: var(--panel-ink); padding: 0 10px 26px; }
  .side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); color: var(--panel-muted); font-weight: 550; border: 0; background: none; text-align: left; width: 100%; }
  .side-link svg { width: 19px; height: 19px; }
  .side-link:hover { color: var(--panel-ink); background: var(--panel-2); }
  .side-link.active { color: var(--panel-ink); background: var(--panel-2); box-shadow: inset 2px 0 0 var(--brass); }
  .side-foot { margin-top: auto; padding: 14px 12px 0; font-family: var(--mono); font-size: 10.5px; line-height: 1.6; color: var(--panel-muted); border-top: 1px solid var(--panel-2); background: var(--panel); }
  .tabbar { display: none; }
  .topbar { padding: 14px 36px; background: transparent; backdrop-filter: none; border-bottom: 0; }
  .topbar .brand { visibility: hidden; }
  .main { padding: 4px 36px 76px; }
}

/* ---------- Components ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.card.flat { background: transparent; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 12px; }
.page-head { margin: 8px 0 18px; }
.page-head p { color: var(--muted); margin: 6px 0 0; max-width: 60ch; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--green); border-radius: var(--r); padding: 12px 18px; font-weight: 650; background: var(--green); color: var(--on-green); min-height: 46px; transition: background .15s, border-color .15s; letter-spacing: .1px; }
.btn:hover { background: var(--green-2); border-color: var(--green-2); }
.btn.block { width: 100%; }
.btn.secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--ink-2); background: var(--paper); }
.btn.ghost { background: none; border-color: transparent; color: var(--green); min-height: 38px; padding: 8px 10px; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.brass { background: var(--brass); border-color: var(--brass); color: #1b1407; }
.btn.brass:hover { filter: brightness(1.06); }
.btn:disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: 13.5px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; border: 1px solid var(--line); background: var(--paper); border-radius: 30px; padding: 6px 13px; font-size: 13px; font-weight: 550; color: var(--ink-2); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; padding: 3px 7px; border-radius: 3px; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.badge.open { color: var(--good); border-color: var(--good-soft); background: var(--good-soft); }
.badge.funded { color: var(--ink); }
.badge.soon { color: var(--warn); border-color: var(--warn-soft); background: var(--warn-soft); }
.badge.teal { color: var(--green); background: var(--green-soft); border-color: transparent; }

/* token-segment progress: 20 blocks = the whole raise */
.units { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 2px; }
.units i { height: 8px; background: var(--line-2); border-radius: 1px; }
.units i.on { background: var(--brass); }
.units-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }

.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kv > div { padding: 11px 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.kv .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.kv .v { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); margin-top: 3px; font-variant-numeric: tabular-nums; }
@media (min-width: 600px) { .kv.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; color: var(--ink); }
.li:last-child { border-bottom: 0; }
button.li:hover { background: var(--paper-2); }
.li .ic { width: 36px; height: 36px; border-radius: var(--r); display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: none; }
.li .ic svg { width: 18px; height: 18px; }
.li .t { font-weight: 600; }
.li .s { font-size: 12.5px; color: var(--muted); }
.amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount.pos { color: var(--good); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.input, select.input { width: 100%; border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px; background: var(--paper); min-height: 46px; outline: none; }
.input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.err { font-size: 13px; color: var(--bad); margin-top: 6px; }
.err:empty { display: none; }
.notice { border-radius: var(--r); padding: 11px 13px; font-size: 13.5px; display: flex; gap: 10px; border: 1px solid transparent; }
.notice svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.notice.info { background: var(--green-soft); color: var(--ink); }
.notice.warn { background: var(--warn-soft); color: var(--ink); }
.notice.risk { background: var(--brass-soft); color: var(--ink); border-color: var(--brass); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line); border-radius: var(--r); padding: 3px; gap: 3px; background: var(--paper-2); }
.seg button { border: 0; background: none; border-radius: 4px; padding: 8px 6px; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg button.active { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.tabs-inline { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 20px 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs-inline button { border: 0; background: none; padding: 10px 0; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs-inline button.active { color: var(--ink); border-color: var(--brass); }
.table-wrap { overflow-x: auto; }
table.simple { width: 100%; border-collapse: collapse; font-size: 14px; }
table.simple th { text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.simple td { padding: 11px 6px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.simple tr:last-child td { border-bottom: 0; }
.back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--muted); font-weight: 600; padding: 6px 0; margin-bottom: 8px; }
.back svg { width: 17px; height: 17px; }

/* statement rows with dotted leaders */
.summary { border-top: 1px solid var(--line); }
.summary .r { display: flex; align-items: baseline; padding: 9px 0; font-size: 14px; }
.summary .r > :first-child { order: 1; color: var(--ink-2); }
.summary .r::before { content: ""; order: 2; flex: 1; min-width: 16px; border-bottom: 1px dotted var(--faint); margin: 0 8px; transform: translateY(-4px); }
.summary .r > :last-child { order: 3; text-align: right; font-variant-numeric: tabular-nums; }
.summary .r.total { border-top: 1px solid var(--ink); margin-top: 4px; padding-top: 11px; font-weight: 700; }
.summary .r.total > :first-child { color: var(--ink); }

/* ---------- Property media ---------- */
.media { position: relative; overflow: hidden; background: var(--panel-2); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media .plate { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px; background: var(--panel); color: var(--panel-ink); font-family: var(--mono); font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; }
.media .plate b { color: var(--brass); font-weight: 500; }
.media .corner { position: absolute; top: 10px; left: 10px; }
.media .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--panel-muted); }
.media img { transition: opacity .3s; }
.credit { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.credit a { color: var(--muted); }
.prop-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .prop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .prop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prop-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; padding: 0; text-align: left; width: 100%; display: flex; flex-direction: column; color: var(--ink); transition: border-color .15s, transform .15s; }
.prop-card:hover { border-color: var(--ink-2); transform: translateY(-1px); }
.prop-card .media { aspect-ratio: 16 / 10; max-width: 100%; }
.prop-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.prop-body h3 { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.prop-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); padding-top: 10px; }
.prop-meta .k { font-family: var(--mono); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.prop-meta .v { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-media { border-radius: var(--r-lg); aspect-ratio: 16 / 9; max-width: 100%; border: 1px solid var(--line); }
@media (min-width: 900px) { .hero-media { aspect-ratio: 21 / 9; } }
.thumb { border-radius: var(--r); flex: none; border: 1px solid var(--line); }
.detail-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.detail-layout > *, .cols-2 > * { min-width: 0; }
@media (min-width: 1000px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } .detail-side { position: sticky; top: 80px; } }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 25; padding: 10px 16px; background: linear-gradient(transparent, var(--ground) 35%); }
@media (min-width: 1000px) { .sticky-cta, .sticky-space { display: none; } }
.sticky-space { height: 70px; }
.price-big { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }

/* ---------- Dark panels (hero stats, wallet) ---------- */
.panel { background-color: var(--panel); color: var(--panel-ink); border-radius: var(--r-lg); padding: 18px; position: relative; overflow: hidden; }
.panel .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--panel-muted); }
.panel .big { font-family: var(--display); font-size: 38px; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; margin-top: 4px; font-variant-numeric: tabular-nums; }
.panel .sub { color: var(--brass); font-weight: 600; font-size: 13.5px; }
.panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--panel-2); }
.panel-grid .v { font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.panel .btn.light { background: var(--panel-ink); border-color: var(--panel-ink); color: var(--panel); }
.panel .btn.outline { background: transparent; border-color: var(--panel-muted); color: var(--panel-ink); }
.chart { width: 100%; height: 140px; display: block; margin-top: 10px; overflow: visible; }
.cols-2 { display: grid; gap: 16px; }
@media (min-width: 900px) { .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps-row { display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
@media (min-width: 760px) { .steps-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps-row > div { padding: 16px; border-bottom: 1px solid var(--line-2); }
@media (min-width: 760px) { .steps-row > div { border-bottom: 0; border-right: 1px solid var(--line-2); } .steps-row > div:last-child { border-right: 0; } }
.steps-row .n { font-family: var(--mono); font-size: 13px; letter-spacing: 1px; color: var(--brass); line-height: 1; }

/* ---------- Onboarding ---------- */
.onb { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; background-color: var(--panel); }
.onb-wrap { width: 100%; max-width: 1000px; display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .onb-wrap { grid-template-columns: 1.15fr 1fr; } }
.onb-hero { color: var(--panel-ink); }
.onb-hero .brand { color: var(--panel-ink); }
.onb-hero h1 { color: var(--panel-ink); font-size: clamp(34px, 5vw, 52px); line-height: 1.04; font-weight: 800; letter-spacing: -.045em; margin: 26px 0 14px; }
.onb-hero h1 em { color: var(--brass); font-style: normal; }
.onb-hero p { color: var(--panel-muted); font-size: 16.5px; max-width: 46ch; }
.onb-points { display: grid; margin: 22px 0 24px; border-top: 1px solid var(--panel-2); }
.onb-points div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--panel-2); color: var(--panel-ink); font-size: 14.5px; }
.onb-points span:first-child { font-family: var(--mono); font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--brass); padding-top: 3px; }
.onb-media { border-radius: var(--r-lg); aspect-ratio: 4 / 5; max-width: 100%; border: 1px solid var(--panel-2); display: none; }
@media (min-width: 900px) { .onb-media { display: block; } }
.onb-card { width: 100%; max-width: 440px; background: var(--paper); border-radius: var(--r-lg); padding: 24px 22px; border: 1px solid var(--line); }
.progress-steps { display: flex; gap: 4px; margin-bottom: 18px; }
.progress-steps span { flex: 1; height: 3px; background: var(--line); }
.progress-steps span.on { background: var(--brass); }
.upload { border: 1px dashed var(--faint); border-radius: var(--r); padding: 18px; text-align: center; color: var(--muted); background: var(--paper-2); width: 100%; }
.upload.done { border-style: solid; border-color: var(--good); background: var(--good-soft); color: var(--good); font-weight: 600; }
.upload svg { width: 24px; height: 24px; display: block; margin: 0 auto 6px; }
.quiz-opt { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); padding: 11px 13px; margin-bottom: 7px; color: var(--ink); }
.quiz-opt.sel { border-color: var(--green); background: var(--green-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 10px 0; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); flex: none; }

/* ---------- Sheet ---------- */
.overlay { position: fixed; inset: 0; background: rgba(6, 14, 10, .5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease; }
.sheet { background: var(--paper); width: 100%; max-width: 500px; max-height: 92vh; overflow-y: auto; border-radius: 14px 14px 0 0; padding: 18px 18px calc(20px + env(safe-area-inset-bottom, 0px)); animation: up .2s ease; border: 1px solid var(--line); }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: var(--r-lg); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.grab { width: 36px; height: 4px; border-radius: 4px; background: var(--line); margin: -6px auto 12px; }
@media (min-width: 700px) { .grab { display: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }
.amount-input { display: flex; align-items: baseline; border-bottom: 2px solid var(--ink); padding: 4px 2px; }
.amount-input input { border: 0; outline: 0; font-family: var(--display); font-size: 36px; font-weight: 700; letter-spacing: -.03em; width: 100%; padding: 2px 0; color: var(--ink); background: none; font-variant-numeric: tabular-nums; min-width: 0; }
.amount-input .unit { color: var(--muted); font-weight: 600; }
.quick { display: flex; gap: 6px; margin: 12px 0 16px; }
.quick button { flex: 1; }
.settle { display: grid; gap: 12px; margin: 10px 0 18px; }
.settle div { display: flex; align-items: center; gap: 12px; color: var(--faint); font-weight: 550; transition: color .2s; }
.settle div i { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; font-style: normal; font-size: 12px; }
.settle div.done { color: var(--ink); }
.settle div.done i { background: var(--green); border-color: var(--green); color: var(--on-green); }
.settle div.active { color: var(--ink-2); }
.settle div.active i { border-color: var(--brass); border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-mark { width: 58px; height: 58px; margin: 4px auto 12px; color: var(--green); display: block; }
.cert { border: 1px solid var(--brass); background: var(--paper-2); border-radius: var(--r); padding: 20px 18px; outline: 1px solid var(--brass); outline-offset: -6px; }
.cert h3 { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; text-align: center; }
.cert .seal { width: 46px; height: 46px; margin: 0 auto 8px; color: var(--brass); display: block; }
.cert dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: 13px; margin: 16px 0 0; }
.cert dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.cert dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.vote-bar { display: flex; height: 8px; background: var(--line-2); position: relative; }
.vote-bar .y { background: var(--green); }
.vote-bar .n { background: var(--bad); }
.vote-bar .th { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }

/* ---------- Toast ---------- */
#toast { position: fixed; left: 50%; bottom: calc(116px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r); font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 60; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 900px) { #toast { bottom: 56px; } }
.empty { text-align: center; padding: 30px 16px; color: var(--muted); }
.footer-note { font-family: var(--mono); font-size: 10.5px; color: var(--faint); text-align: center; margin: 34px 0 8px; letter-spacing: .3px; }

/* fully funded banner (above the photo) */
.funded-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; background: var(--panel); color: var(--panel-ink); font-size: 12.5px; line-height: 1.35; text-align: left; cursor: pointer; border-bottom: 2px solid var(--brass); }
.funded-banner b { color: var(--brass); font-weight: 700; }
.funded-banner .fb-cta { display: inline-flex; align-items: center; gap: 5px; flex: none; font-family: var(--font); font-size: 11.5px; font-weight: 700; letter-spacing: .2px; text-transform: uppercase; color: var(--brass); white-space: nowrap; }
.funded-banner:hover .fb-cta { text-decoration: underline; }
.funded-banner.big { border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 12px 16px; font-size: 14px; }
.hero-media.under-banner { border-radius: 0 0 var(--r-lg) var(--r-lg); border-top: 0; }
@media (max-width: 520px) { .funded-banner { flex-direction: column; align-items: flex-start; gap: 4px; } }

/* ---------- Prototype banner ---------- */
.proto-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; height: var(--banner-h); background: #f5a623; border-top: 2px solid #c97f00; display: flex; align-items: center; justify-content: center; padding: 0 16px; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .7px; text-transform: uppercase; color: #2a1200; white-space: nowrap; overflow: hidden; }
.proto-banner b { font-weight: 700; }
.proto-banner .sep { opacity: .45; }
