/* LIFE MINI design system: same identity as the LIFE demos (ink ground, LIFE green, DM Sans, DM Serif Display numbers, Syne logo). */
:root {
  color-scheme: dark;
  --ink: #0A0A08;
  --s0: #0C0D0B;
  --s1: #121411;
  --s2: #181A16;
  --s3: #20231E;
  --s4: #2A2E27;
  --line: rgba(232, 240, 222, .08);
  --line-2: rgba(232, 240, 222, .14);
  --tx: #F1F2EC;
  --tx-2: rgba(241, 242, 236, .70);
  --tx-3: rgba(241, 242, 236, .50);
  --green: #22C55E;
  --green-hi: #4ADE80;
  --green-bg: rgba(34, 197, 94, .12);
  --green-ln: rgba(74, 222, 128, .36);
  --amber: #F59E0B;
  --amber-bg: rgba(245, 158, 11, .13);
  --blue: #60A5FA;
  --blue-bg: rgba(96, 165, 250, .13);
  --violet: #A78BFA;
  --violet-bg: rgba(167, 139, 250, .14);
  --red: #F87171;
  --red-bg: rgba(248, 113, 113, .13);
  --f-display: 'Syne', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --f-ui: 'DM Sans', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --f-num: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--ink); color: var(--tx); font-family: var(--f-ui); font-size: 15.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--green-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
.num { font-family: var(--f-num); font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tab { font-variant-numeric: tabular-nums; }
.muted { color: var(--tx-2); }
.faint { color: var(--tx-3); }
.small { font-size: 13.5px; }
.xs { font-size: 12.5px; }
.ic { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- logo and headers ---------- */
.logo { font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; font-size: 23px; line-height: 1; display: inline-flex; align-items: baseline; gap: 2px; color: var(--tx); }
.logo:hover { text-decoration: none; }
.logo i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-hi); display: inline-block; }
.logo small { font-family: var(--f-ui); font-weight: 700; font-size: 10.5px; letter-spacing: .12em; color: var(--tx-3); margin-left: 8px; transform: translateY(-3px); }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(10, 10, 8, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar .in { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 14px; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a, .topbar nav button { color: var(--tx-2); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 999px; background: none; border: 0; }
.topbar nav a:hover, .topbar nav button:hover { color: var(--tx); background: var(--s2); text-decoration: none; }
.topbar nav a.on { color: var(--tx); background: var(--s2); }

/* ---------- layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 32px 20px 72px; }
.narrow { max-width: 600px; margin: 0 auto; padding: 28px 20px 80px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack > .pill { align-self: flex-start; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap-ok { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.sect { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 12px; }
.sect h2 { font-size: 18px; font-weight: 700; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-hi); }
.h-xl { font-family: var(--f-num); font-weight: 400; font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1.04; letter-spacing: -.01em; }
.h-lg { font-size: clamp(1.6rem, 4.4vw, 2rem); font-weight: 700; letter-spacing: -.01em; }
.h-md { font-size: 20px; font-weight: 700; }
.lede { font-size: 16.5px; color: var(--tx-2); line-height: 1.55; max-width: 36em; }

/* ---------- cards ---------- */
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card.pad { padding: 22px; }
.card.tight { padding: 16px 18px; }
.card.green { background: linear-gradient(160deg, rgba(34, 197, 94, .16), rgba(34, 197, 94, .05)); border-color: var(--green-ln); }
.card.flat { background: var(--s2); border-color: transparent; }
.card h3 { font-size: 16px; font-weight: 700; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.list > * + * { border-top: 1px solid var(--line); }
.li { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.li .ttl { font-weight: 600; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: 14.5px; }
.kv span:first-child { color: var(--tx-2); }
.kv b { text-align: right; font-weight: 600; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .15s var(--ease), background .2s, border-color .2s, opacity .2s; text-decoration: none !important; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--green); color: #06130A; }
.btn.primary:hover { background: var(--green-hi); }
.btn.light { background: var(--tx); color: var(--ink); }
.btn.light:hover { background: #fff; }
.btn.dark { background: var(--s2); color: var(--tx); border-color: var(--line-2); }
.btn.dark:hover { background: var(--s3); }
.btn.ghost { background: transparent; color: var(--tx); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--tx-3); }
.btn.danger { background: var(--red-bg); color: var(--red); border-color: rgba(248, 113, 113, .3); }
.btn.sm { min-height: 38px; padding: 0 15px; font-size: 14px; }
.btn.xs { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn.lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--green-hi); font-weight: 600; }
.linkbtn:hover { text-decoration: underline; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--s3); color: var(--tx-2); }
.pill.green { background: var(--green-bg); color: var(--green-hi); }
.pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.blue { background: var(--blue-bg); color: var(--blue); }
.pill.violet { background: var(--violet-bg); color: var(--violet); }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.solid { background: var(--tx); color: var(--ink); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .label { font-size: 13.5px; font-weight: 600; color: var(--tx-2); }
.input { width: 100%; min-height: 50px; padding: 12px 15px; background: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--tx); font-size: 16px; transition: border-color .2s, background .2s; }
.input:hover { border-color: var(--tx-3); }
.input:focus { outline: none; border-color: var(--green-hi); background: var(--s3); }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tx-2) 50%), linear-gradient(135deg, var(--tx-2) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input.big { font-family: var(--f-num); font-size: 30px; min-height: 64px; }
.field .hint { font-size: 13px; color: var(--tx-3); }
.field .err, .err { font-size: 13.5px; color: var(--red); font-weight: 600; }
.field.has-err .input { border-color: rgba(248, 113, 113, .6); }
.code-input { font-family: var(--f-num); font-size: 38px; letter-spacing: .32em; text-align: center; min-height: 72px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--tx-2); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.range { width: 100%; accent-color: var(--green); height: 28px; }

/* choices: big selectable cards */
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-md); cursor: pointer; transition: border-color .2s, background .2s; }
.choice:hover { border-color: var(--tx-3); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .c-txt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.choice .c-txt b { font-size: 15.5px; }
.choice .c-txt span { font-size: 13.5px; color: var(--tx-3); }
.choice .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--tx-3); flex: none; display: grid; place-items: center; }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-bg); }
.choice:has(input:checked) .dot { border-color: var(--green); background: var(--green); }
.choice:has(input:checked) .dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--green-hi); outline-offset: 2px; }

/* chips: multi or single select pills */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line-2); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; user-select: none; }
.chip:hover { border-color: var(--tx-3); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--green-bg); border-color: var(--green); color: var(--green-hi); }
.chip:has(input:focus-visible) { outline: 2px solid var(--green-hi); outline-offset: 2px; }
.chip.off { opacity: .4; pointer-events: none; }

/* ---------- wizard ---------- */
.wiz-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.wiz-top .back { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--s2); border: 1px solid var(--line); color: var(--tx); }
.wiz-top .back:hover { text-decoration: none; background: var(--s3); }
.progress { display: grid; grid-auto-flow: column; gap: 5px; margin: 6px 0 26px; }
.progress i { height: 4px; border-radius: 2px; background: var(--s3); }
.progress i.on { background: var(--green); }
.wiz-body { display: flex; flex-direction: column; gap: 22px; }
.wiz-foot { position: sticky; bottom: 0; padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, rgba(10, 10, 8, 0), var(--ink) 30%); margin-top: 26px; }
.live { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--tx-3); }
.live b { color: var(--tx); }

/* ---------- score ring ---------- */
.ring { --p: 0; --c: var(--green); width: var(--sz, 120px); height: var(--sz, 120px); border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--s3) 0); display: grid; place-items: center; flex: none; }
.ring > span { width: calc(100% - var(--th, 12px) * 2); height: calc(100% - var(--th, 12px) * 2); border-radius: 50%; background: var(--s1); display: grid; place-items: center; text-align: center; }
.ring .num { font-size: calc(var(--sz, 120px) * .36); line-height: 1; }
.ring small { display: block; font-size: 11px; color: var(--tx-3); margin-top: 2px; }
.ring.amber { --c: var(--amber); }
.ring.sm { --sz: 50px; --th: 5px; }
.ring.sm .num { font-size: 18px; }
.ring.bg-ink > span { background: var(--ink); }
.crit { display: flex; flex-direction: column; gap: 12px; }
.crit .cr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.crit .cr .bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--s3); overflow: hidden; }
.crit .cr .bar i { display: block; height: 100%; background: var(--green); border-radius: 3px; }
.crit .cr .bar i.amber { background: var(--amber); }
.crit .cr b { font-variant-numeric: tabular-nums; }
.crit .cr small { color: var(--tx-3); display: block; font-size: 12.5px; }

/* ---------- documents ---------- */
.doc { display: flex; align-items: center; gap: 10px 14px; padding: 16px 0; flex-wrap: wrap; }
.doc .dacts { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.doc .di { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--s3); color: var(--tx-3); }
.doc .di.ok { background: var(--green-bg); color: var(--green-hi); }
.doc .di.bad { background: var(--red-bg); color: var(--red); }
.doc .dt { flex: 1 1 170px; min-width: 0; }
.doc .dt b { display: block; font-size: 15px; }
.doc .dt small { display: block; color: var(--tx-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upl { position: relative; overflow: hidden; }
.upl input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }

/* ---------- share ---------- */
.share { display: flex; gap: 8px; align-items: center; background: var(--s2); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 6px 6px 16px; }
.share code { flex: 1 1 auto; min-width: 0; font-family: var(--f-ui); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx-2); }
.quote { background: var(--s2); border-radius: var(--r-sm); padding: 14px 16px; font-size: 14px; color: var(--tx-2); white-space: pre-line; }

/* ---------- timeline ---------- */
.tl { display: flex; flex-direction: column; gap: 0; }
.tl .st { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-bottom: 18px; position: relative; }
.tl .st::before { content: ''; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--s3); }
.tl .st:last-child::before { display: none; }
.tl .st .d { width: 22px; height: 22px; border-radius: 50%; background: var(--s3); border: 2px solid var(--s4); }
.tl .st.on .d { background: var(--green); border-color: var(--green); }
.tl .st.bad .d { background: var(--red); border-color: var(--red); }
.tl .st b { display: block; }
.tl .st small { color: var(--tx-3); font-size: 13px; }
.steps4 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.steps4 i { height: 4px; border-radius: 2px; background: var(--s3); }
.steps4 i.on { background: var(--green); }
.steps4 i.bad { background: var(--red); }

/* ---------- flash ---------- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(520px, calc(100% - 32px)); }
.toast { display: flex; gap: 10px; align-items: center; padding: 13px 16px; border-radius: 14px; background: var(--tx); color: var(--ink); font-weight: 600; font-size: 14.5px; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); animation: tin .35s var(--ease); }
.toast.error { background: #FEE2E2; color: #7F1D1D; }
.toast button { margin-left: auto; background: none; border: 0; color: inherit; opacity: .6; font-size: 18px; line-height: 1; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }
.toast.out { opacity: 0; transform: translateY(10px); transition: .3s; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--s2); border: 1px solid var(--line); font-size: 14px; color: var(--tx-2); }
.notice.green { background: var(--green-bg); border-color: var(--green-ln); color: var(--tx); }
.notice.amber { background: var(--amber-bg); border-color: rgba(245, 158, 11, .35); color: var(--tx); }
.notice .ic { margin-top: 2px; }

/* ---------- landing ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 40px 0 56px; }
.hero > .txt { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero > .vis { flex: 1 1 320px; min-width: 0; }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.door { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--r-xl); background: var(--s1); border: 1px solid var(--line); color: var(--tx); transition: border-color .2s, transform .2s var(--ease); }
.door:hover { text-decoration: none; border-color: var(--green-ln); transform: translateY(-2px); }
.door.main { background: linear-gradient(160deg, rgba(34, 197, 94, .18), rgba(34, 197, 94, .04)); border-color: var(--green-ln); }
.door .go { margin-top: auto; color: var(--green-hi); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.points b { display: block; font-size: 16.5px; margin-bottom: 4px; }
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer .in { max-width: 1120px; margin: 0 auto; padding: 24px 20px 40px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13px; color: var(--tx-3); }
.footer a { color: var(--tx-2); }

/* passport mini preview on landing */
.pp { background: #fff; color: #121410; border-radius: 22px; padding: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 10px; }
.pp .pp-h { display: flex; gap: 14px; align-items: center; }
.pp .av { width: 46px; height: 46px; border-radius: 14px; background: #E7F6EC; color: #166534; display: grid; place-items: center; font-weight: 700; }
.pp .rw { display: flex; justify-content: space-between; font-size: 13.5px; padding: 8px 0; border-top: 1px solid #ECEEE8; }
.pp .rw span { color: #555A50; }

/* ---------- agency app ---------- */
.ag { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.ag-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 22px 14px; border-right: 1px solid var(--line); background: var(--s0); }
.ag-side .org { display: flex; gap: 12px; align-items: center; padding: 18px 10px 20px; }
.ag-side .mk { width: 40px; height: 40px; border-radius: 12px; background: var(--green-bg); color: var(--green-hi); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.ag-side .org b { display: block; font-size: 14.5px; line-height: 1.25; }
.ag-side .org small { color: var(--tx-3); font-size: 12.5px; }
.ag-nav { display: flex; flex-direction: column; gap: 2px; }
.ag-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--tx-2); font-weight: 600; font-size: 14.5px; }
.ag-nav a:hover { background: var(--s2); color: var(--tx); text-decoration: none; }
.ag-nav a.on { background: var(--s2); color: var(--tx); }
.ag-side .me { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.ag-main { min-width: 0; }
.ag-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; justify-content: space-between; padding: 30px 36px 6px; }
.ag-head h1 { font-size: 26px; font-weight: 700; }
.ag-body { padding: 18px 36px 64px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); overflow: hidden; }
.stats > div { padding: 18px 20px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats .num { font-size: 34px; display: block; line-height: 1.1; }
.stats span { color: var(--tx-3); font-size: 13px; }
.lcard { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 20px 22px; }
.lcard .meta { color: var(--tx-3); font-size: 13.5px; }
.lcard .nums { display: flex; gap: 22px; margin-top: 12px; flex-wrap: wrap; }
.lcard .nums b { font-family: var(--f-num); font-weight: 400; font-size: 24px; display: block; line-height: 1.1; }
.lcard .nums span { font-size: 12.5px; color: var(--tx-3); }
.mini-top { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.mini-top a { display: flex; align-items: center; gap: 10px; color: var(--tx); font-size: 14px; padding: 4px 0; }
.mini-top a:hover { text-decoration: none; color: var(--green-hi); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tx-3); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.rowlink { cursor: pointer; transition: background .15s; }
.tbl tr.rowlink:hover { background: var(--s2); }
.tbl .who { display: flex; align-items: center; gap: 12px; }
.tbl .who b { display: block; }
.tbl .who small { color: var(--tx-3); font-size: 12.5px; }
.tbl a.full { color: var(--tx); }
.tbl a.full:hover { text-decoration: none; }
.av { width: 38px; height: 38px; border-radius: 12px; background: var(--s3); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; color: var(--tx-2); }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 9px; height: 14px; border-radius: 3px; background: var(--s4); }
.dots i.on { background: var(--blue); }
.dots i.bad { background: var(--red); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--tx-2); background: var(--s1); border: 1px solid var(--line); }
.tabs a:hover { text-decoration: none; color: var(--tx); }
.tabs a.on { background: var(--green-bg); border-color: var(--green-ln); color: var(--green-hi); }
.setup { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.copybox { display: flex; gap: 8px; align-items: center; background: var(--s2); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px 6px 6px 14px; }
.copybox code { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx); }
.two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.actions { display: flex; flex-direction: column; gap: 10px; }
details.act { border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--s1); }
details.act summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
details.act summary::-webkit-details-marker { display: none; }
details.act[open] summary { border-bottom: 1px solid var(--line); }
details.act .in { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.empty { text-align: center; padding: 48px 20px; color: var(--tx-3); }
.empty .h-md { color: var(--tx); margin-bottom: 6px; }

/* dev mail viewer */
.mailgrid { display: grid; grid-template-columns: 360px 1fr; gap: 16px; }
.mailgrid iframe { width: 100%; height: 80vh; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }

@media (max-width: 900px) {
  .ag { grid-template-columns: 1fr; }
  .ag-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); gap: 8px; }
  .ag-side .org { padding: 0; flex: 1 1 auto; }
  .ag-side .logo-row { display: none; }
  .ag-nav { flex-direction: row; flex-wrap: wrap; width: 100%; gap: 4px; }
  .ag-nav a { padding: 8px 12px; font-size: 13.5px; }
  .ag-side .me { display: none; }
  .ag-head { padding: 22px 16px 4px; }
  .ag-body { padding: 14px 16px 56px; }
  .two { grid-template-columns: 1fr; }
  .lcard { grid-template-columns: 1fr; }
  .mailgrid { grid-template-columns: 1fr; }
  .stats > div { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .topbar .in { padding: 12px 16px; }
  .wrap, .narrow { padding-left: 16px; padding-right: 16px; }
  .card.pad { padding: 18px; }
  .hide-sm { display: none !important; }
}

/* ---------- listing photos ---------- */
.gal-wrap { position: relative; margin: -22px -22px 6px; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; background: var(--s2); }
.gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gal::-webkit-scrollbar { display: none; }
.gal img { flex: 0 0 100%; display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; scroll-snap-align: start; }
.gal-n { position: absolute; right: 12px; bottom: 12px; height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; background: rgba(10, 10, 8, .72); color: #fff; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(10, 10, 8, .62); color: #fff; }
.gal-nav:hover { background: rgba(10, 10, 8, .85); }
.gal-nav.prev { left: 10px; } .gal-nav.next { right: 10px; }
@media (hover: none) { .gal-nav { display: none !important; } }
.lmain { display: flex; gap: 18px; align-items: flex-start; min-width: 0; }
.lthumb { width: 112px; height: 84px; border-radius: 14px; object-fit: cover; display: block; background: var(--s2); }
.lthumb.sm { width: 56px; height: 56px; border-radius: 12px; }
.lthumb-link { flex: none; }
.athumb { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; background: var(--s2); }
.cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); margin: 14px 0 4px; background: var(--s2); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 10px; }
.photo-grid figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--s2); border: 1px solid var(--line); }
.photo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid .pill { position: absolute; top: 8px; left: 8px; }
.photo-grid figcaption { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; }
@media (max-width: 520px) { .gal-wrap { margin: -18px -18px 6px; } .lmain { flex-direction: column; gap: 14px; } .lthumb-link { width: 100%; } .lmain .lthumb { width: 100%; height: auto; aspect-ratio: 16 / 9; } .lmain > .grow { width: 100%; } }

/* ---------- founder space ---------- */
.feed { padding: 4px 6px; }
.fitem { display: flex; align-items: baseline; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--tx); font-size: 14.5px; }
.fitem + .fitem { border-top: 1px solid var(--line); border-radius: 0; }
.fitem:hover { background: var(--s2); text-decoration: none; }
.fdot { width: 8px; height: 8px; border-radius: 50%; flex: none; transform: translateY(-1px); background: var(--tx-3); }
.fdot.tenant { background: var(--green-hi); }
.fdot.agency { background: var(--blue); }
.fdot.report { background: var(--amber); }
.ftime { flex: none; text-align: right; }
.funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; }
.funnel div { background: var(--s2); border-radius: 12px; padding: 10px 12px; }
.funnel b { display: block; font-family: var(--f-num); font-weight: 400; font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.funnel span { font-size: 12px; color: var(--tx-3); }
@media (max-width: 520px) { .fitem { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 4px 12px; align-items: baseline; } .ftime { grid-column: 2; text-align: left; } }

/* ---------- passport (light, printable) ---------- */
body.paper { background: #F3F4EF; color: #121410; color-scheme: light; }
body.paper .toast { background: #121410; color: #F1F2EC; }
.ppw { max-width: 1040px; margin: 0 auto; padding: 0 20px 56px; display: flex; flex-direction: column; gap: 18px; }
.pp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 22px 0 4px; }
.pp-top .logo { color: #121410; }
.pp-top .logo i { background: #16A34A; }
.pp-sub { font-size: 14px; color: #555A50; flex: 1 1 auto; }
.pbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #121410; color: #fff; font-weight: 700; font-size: 14.5px; text-decoration: none !important; }
.pbtn.ghost { background: #fff; color: #121410; border: 1px solid #CDD1C6; }
.pbtn.green { background: #22C55E; color: #06130A; }
.pp-note { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: #E7F6EC; color: #166534; font-size: 14px; font-weight: 600; }
.pp-card { background: #fff; border: 1px solid #DDE0D7; border-radius: 22px; padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.pp-card h2 { font-size: 17px; font-weight: 700; margin: 0; }
.pp-card.dark { background: #0A0A08; color: #F1F2EC; border-color: #0A0A08; }
.pp-id { flex-direction: row; align-items: center; gap: 18px; }
.pp-id h1 { font-family: var(--f-num); font-weight: 400; font-size: clamp(2rem, 4.4vw, 2.6rem); line-height: 1.05; }
.pp-id p { color: #3E4239; font-size: 15.5px; margin-top: 4px; }
.pp-av { width: 68px; height: 68px; border-radius: 20px; background: #E7F6EC; color: #166534; display: grid; place-items: center; font-weight: 700; font-size: 22px; flex: none; }
.pp-cols { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.pp-main { flex: 999 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pp-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pp-tiles > div { background: #F4F5F1; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.pp-tiles > div.ok { background: #E7F6EC; }
.pp-tiles span, .pp-tiles small { font-size: 12.5px; color: #555A50; }
.pp-tiles b { font-size: 22px; font-variant-numeric: tabular-nums; }
.pp-tiles b.sm { font-size: 17px; line-height: 1.6; }
.pp-tiles .ok b { color: #15803D; }
.pp-kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid #ECEEE8; font-size: 15px; }
.pp-kv span { color: #555A50; }
.pp-kv b { text-align: right; }
.pp-about { font-size: 15.5px; line-height: 1.6; color: #2B2E27; white-space: pre-line; }
.pp-crit { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pp-crit div { display: flex; justify-content: space-between; }
.pp-crit span { color: rgba(241, 242, 236, .7); }
.pp-count { color: #15803D; font-size: 13.5px; }
.pp-doc { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-top: 1px solid #ECEEE8; }
.pp-doc .ok { color: #16A34A; }
.pp-doc .no { color: #B45309; }
.pp-doc b { display: block; font-size: 14.5px; }
.pp-doc small { color: #555A50; font-size: 12.5px; }
.pp-fine { font-size: 12.5px; color: #555A50; line-height: 1.5; }
.pp-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; background: #10301C; color: #F1F2EC; border-radius: 22px; padding: 24px 28px; }
.pp-cta b { display: block; font-size: 18px; margin-bottom: 4px; }
.pp-cta span { color: #CFEBD8; font-size: 15px; }
.pp-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 13px; color: #555A50; }
.ring.bg-ink > span { background: #0A0A08; }
@media print { .pp-top .pbtn, .pp-cta, .pp-note { display: none; } body.paper { background: #fff; } .pp-card { break-inside: avoid; } }
