
/* Propkee Ally · chat v1. Tokens and components carried over from the journey prototypes. */
@font-face { font-family: 'ISerif'; src: url(/ally/fonts/ISerif-Regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'ISerif'; font-style: italic; src: url(/ally/fonts/ISerif-Italic.ttf) format('truetype'); font-display: swap; }
:root {
  --bg:#110B07; --sf:#1E150F; --sf2:#241A12; --ln:#33261B; --ln2:#4A3828; --gold:#E3B373; --cream:#F4EADB;
  --mu:#BCAA94; --dim:#9A8873; --green:#8CC084; --greenbg:#2C3A26; --amb:#F0A24B; --ambbg:#3A2A16; --red:#EE9A78; --redbg:#40251B;
  --top: calc(env(safe-area-inset-top) + 12px); --bot: calc(env(safe-area-inset-bottom) + 12px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { background: #0A0604; color: var(--cream); font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.serif { font-family: 'ISerif', 'Instrument Serif', Georgia, serif; font-weight: 400; }
.mu { color: var(--mu); }

/* phone frame on desktop, full screen on a phone */
.stage { height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; }
.device { width: 414px; height: min(868px, calc(100vh - 40px)); padding: 12px; border-radius: 60px; background: #020101; box-shadow: 0 0 0 1px #2A2019, 0 40px 120px #000; flex: none; position: relative; }
.app { position: relative; width: 100%; height: 100%; border-radius: 48px; overflow: hidden; background: var(--bg); isolation: isolate; }
.device .app { --top: 22px; --bot: 18px; }
@media (max-width: 600px) {
  .stage { padding: 0; display: block; }
  .device { width: 100vw; height: 100vh; height: 100dvh; padding: 0; border-radius: 0; box-shadow: none; }
  .app { border-radius: 0; }
  .device .app { --top: calc(env(safe-area-inset-top) + 12px); --bot: calc(env(safe-area-inset-bottom) + 10px); }
}

.screen { position: absolute; inset: 0; display: none; flex-direction: column; padding: var(--top) 22px var(--bot); }
.screen.on { display: flex; animation: scrIn .42s cubic-bezier(.2,.7,.2,1) both; }
@keyframes scrIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.grow { flex: 1; min-height: 8px; }

/* header */
.ahead { display: flex; align-items: center; gap: 10px; padding: 6px 22px 10px 18px; border-bottom: 1px solid var(--ln); margin: 0 -22px; flex: none; }
.ahead .back { width: 30px; height: 30px; display: grid; place-items: center; color: var(--mu); margin-right: -4px; }
.allyBox { flex: none; width: 40px; height: 40px; position: relative; }
.allyBox > div { position: absolute; inset: 0; }
.allyS .glow { filter: blur(7px) !important; }
.ahead b { display: block; font-size: 16.5px; font-weight: 600; }
.st { font-size: 12.5px; color: var(--gold); margin-top: 1px; display: flex; align-items: center; gap: 6px; transition: color .3s; }
.st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st.think { color: #C9B9F4; } .st.alert { color: var(--amb); } .st.ok { color: var(--green); }
.ahead .new { margin-left: auto; font-size: 13px; color: var(--mu); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ln); }

/* home */
.hhi { font-size: 34px; line-height: 1.08; margin-top: 22px; }
.hsub { font-size: 14.5px; color: var(--mu); margin-top: 8px; line-height: 1.45; }
.cap { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.bigq { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 20px; padding: 15px 16px; border-radius: 16px; background: var(--gold); color: #1C1A17; font-weight: 700; font-size: 15px; }
.bigq small { display: block; font-weight: 500; font-size: 12.5px; opacity: .75; margin-top: 2px; }
.bigq .arr { margin-left: auto; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tile { background: var(--sf); border: 1px solid var(--ln); border-radius: 14px; padding: 13px; font-size: 14px; font-weight: 600; text-align: left; transition: transform .12s, border-color .2s; }
.tile:active, .bigq:active { transform: scale(.97); }
.tile .ti { color: var(--gold); display: block; margin-bottom: 8px; }
.tile span:not(.ti) { display: block; font-weight: 400; font-size: 12px; color: var(--dim); margin-top: 2px; line-height: 1.35; }
.disc { font-size: 12px; color: var(--dim); line-height: 1.45; text-align: center; margin: 12px 8px 10px; }

/* ask bar */
.ask { min-height: 50px; border-radius: 25px; background: var(--sf); border: 1px solid var(--ln); display: flex; align-items: flex-end; gap: 6px; padding: 5px 6px 5px 18px; flex: none; width: 100%; transition: border-color .2s; }
.ask:focus-within { border-color: var(--ln2); }
.ask textarea { flex: 1; resize: none; outline: none; cursor: text; font-size: 15.5px; line-height: 1.35; max-height: 120px; padding: 9px 0; color: var(--cream); }
.ask textarea::placeholder { color: #8F7F6C; }
.ask .go { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; color: #1A0F08; flex: none; transition: transform .12s, opacity .2s; }
.ask .go:active { transform: scale(.92); }
.ask .go[disabled] { opacity: .45; pointer-events: none; }
.ask .go.rec { background: var(--red); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px #EE9A7833; } }

/* chat */
.thread { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px 18px 12px; margin: 0 -22px; scrollbar-width: none; overscroll-behavior: contain; }
.thread::-webkit-scrollbar { display: none; }
.thread > * { animation: msgIn .34s cubic-bezier(.2,.7,.2,1) both; flex: none; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sep { align-self: center; font-size: 11.5px; color: var(--dim); letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: #1A120C; border: 1px solid var(--ln); }
.me { align-self: flex-end; max-width: 86%; background: var(--gold); color: #1A0F08; border-radius: 18px; border-bottom-right-radius: 5px; padding: 10px 14px; font-size: 14.5px; line-height: 1.4; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai { align-self: flex-start; max-width: 88%; background: var(--sf); border: 1px solid var(--ln); border-radius: 18px; border-bottom-left-radius: 5px; padding: 10px 13px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.typing { align-self: flex-start; background: var(--sf); border: 1px solid var(--ln); border-radius: 18px; border-bottom-left-radius: 5px; padding: 12px 14px; display: flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); animation: dot 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* what Ally did, live */
.work { align-self: flex-start; display: flex; flex-direction: column; gap: 5px; padding: 2px 4px; }
.work div { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--mu); animation: msgIn .3s both; }
.work i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 9px; flex: none; background: #383C2A; color: var(--green); }
.work i.w { background: #4B3926; color: var(--amb); }

.acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 2px; }
.acts button { min-height: 40px; padding: 0 16px; border-radius: 20px; font-size: 14px; font-weight: 600; border: 1px solid var(--ln2); }
.acts button.p { background: var(--gold); color: #1A0F08; border-color: var(--gold); }
.acts.used button { opacity: .35; pointer-events: none; }
.acts.used button.p { display: none; }

/* cards */
.card { align-self: stretch; background: var(--sf); border: 1px solid var(--ln); border-radius: 16px; padding: 12px 14px; }
.card.amb { border-color: #8A5A28; background: #22170E; }
.card .cap { margin-bottom: 4px; }
.vrd { font-weight: 600; font-size: 14.5px; margin-top: 4px; }
.vrd.ok { color: var(--cream); } .vrd.w { color: var(--amb); } .vrd.x { color: var(--red); }
.row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 13.5px; line-height: 1.4; }
.row .t { flex: none; width: 76px; text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 6px; padding: 3px 0; margin-top: 1px; }
.t.ok { color: var(--green); background: var(--greenbg); }
.t.w { color: var(--amb); background: var(--ambbg); }
.t.x { color: var(--red); background: var(--redbg); }
.rng { position: relative; height: 10px; border-radius: 5px; background: #2A1F16; margin: 16px 0 6px; }
.rng .r { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: #647B55; }
.rng .pin { position: absolute; top: -5px; width: 4px; height: 20px; margin-left: -2px; border-radius: 2px; background: var(--gold); }
.rlab { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--dim); }
.rlab b { color: var(--gold); font-weight: 600; }
.rlab span { display: flex; align-items: center; gap: 6px; }
.rlab i { display: inline-block; width: 10px; height: 6px; border-radius: 3px; background: #647B55; }
.rlab i.kp { width: 3px; height: 11px; border-radius: 2px; background: var(--gold); }
.src { font-size: 11px; color: var(--dim); margin-top: 8px; line-height: 1.4; }
.conf { display: inline-block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; padding: 1px 6px; border-radius: 5px; margin-left: 4px; color: var(--amb); background: var(--ambbg); vertical-align: 1px; }
.ml { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 6px 0; border-top: 1px solid var(--ln); }
.ml:first-of-type { border-top: 0; }
.ml em { font-style: normal; font-size: 11.5px; color: var(--dim); margin-left: 6px; }
.ml.tot { font-weight: 700; font-size: 14.5px; padding-top: 8px; }
.ml.tot span:last-child { color: var(--gold); }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.stat3 div { background: var(--sf2); border-radius: 12px; padding: 9px 6px; font-size: 11px; color: var(--dim); text-align: center; }
.stat3 b { display: block; font-family: 'ISerif', Georgia, serif; font-weight: 400; font-size: 20px; color: var(--cream); white-space: nowrap; }
.trend { font-size: 13px; color: var(--mu); margin-top: 10px; }
.trend b { color: var(--green); font-weight: 600; } .trend b.dn { color: var(--amb); }
.opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--ln); font-size: 13.5px; width: 100%; text-align: left; }
.opt:first-of-type { border-top: 0; }
.opt .l span { display: block; font-size: 12px; color: var(--mu); margin-top: 1px; }
.opt .l b { font-weight: 600; }
.opt .r { text-align: right; white-space: nowrap; }
.opt .r b { font-weight: 700; } .opt .r span { display: block; font-size: 11.5px; color: var(--mu); }
.opt .r span.ok { color: var(--green); }
button.opt:active { background: var(--sf2); }
.cmp { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 4px; table-layout: fixed; }
.cmp th { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); font-weight: 600; text-align: right; padding: 4px 0 6px 6px; line-height: 1.25; vertical-align: bottom; }
.cmp th:first-child { width: 30%; }
.cmp td { padding: 6px 0 6px 6px; border-top: 1px solid var(--ln); text-align: right; }
.cmp td:first-child, .cmp th:first-child { text-align: left; color: var(--mu); padding-left: 0; }
.cmp tr:last-child td { font-weight: 700; color: var(--gold); }
.cmp tr:last-child td:first-child { color: var(--cream); }
.more { font-size: 12.5px; color: var(--gold); margin-top: 6px; padding: 4px 0; }
.recent { display: none; margin-top: 4px; }
.recent.on { display: block; }
.recent .ml { font-size: 12.5px; color: var(--mu); }
.err { align-self: center; font-size: 13px; color: var(--red); text-align: center; padding: 6px 12px; }
.err button { color: var(--gold); text-decoration: underline; margin-left: 4px; }

/* demo: inventory test chips and the "not live" tag */
.inv { margin-top: 14px; }
.inv .invh { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mu); margin-bottom: 8px; }
.inv .acts { justify-content: flex-start; }
.inv .acts button { min-height: 34px; font-size: 13px; font-weight: 500; padding: 0 12px; }
.tst { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 8px; font-size: 10.5px; letter-spacing: .04em; text-transform: none; color: var(--gold); border: 1px solid var(--gold); vertical-align: 1px; }

/* home: scroll when the content is taller than the screen; header stays on top, the ask box stays at the bottom */
#s-home { overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
#s-home::-webkit-scrollbar { display: none; }
#s-home > * { flex-shrink: 0; }
#s-home > .grow { flex: 1 0 8px; }
#s-home > .ahead { position: sticky; top: calc(-1 * var(--top)); z-index: 3; background: var(--bg); padding-top: calc(var(--top) + 6px); margin-top: calc(-1 * var(--top)); }
#s-home { padding-bottom: 0; }
#s-home > .ask { position: sticky; bottom: var(--bot); margin-bottom: var(--bot); z-index: 3; box-shadow: 0 -24px 24px var(--bg), 0 0 0 10px var(--bg), 0 var(--bot) 0 10px var(--bg); }

/* ===== v2 flow (20 Nov): invitation, first screen, brief, working, result ===== */
.st.plain { color: var(--mu); } .st.plain::before { display: none; }
.st.busy { color: var(--gold); }
.st.done { color: var(--green); } .st.done::before { display: none; }
.st .tk { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--greenbg); }

/* the gold dot shows who has the ball */
.ball { margin-left: auto; position: relative; display: flex; gap: 4px; padding-top: 9px; font-size: 10px; font-weight: 700; letter-spacing: .08em; flex: none; }
.ball span { width: 44px; text-align: center; padding: 4px 0; border-radius: 8px; color: var(--dim); transition: color .6s, background .6s; }
.ball i { position: absolute; top: 0; left: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); transition: left .6s cubic-bezier(.4,0,.2,1); }
.ball[data-turn="you"] span:nth-of-type(1), .ball[data-turn="ally"] span:nth-of-type(2) { color: var(--cream); background: var(--sf2); }
.ball[data-turn="ally"] i { left: 67px; }

/* first screen */
.acts.start { justify-content: flex-start; }
.acts.start button { min-height: 38px; font-size: 13.5px; }


/* invitation */
.card.invite { padding: 0 0 16px; overflow: hidden; display: flex; flex-direction: column; }
.card.invite .invc { height: 110px; background: radial-gradient(circle at 50% 60%, #3A2A1C, #1E150F 70%); display: grid; place-items: center; margin-bottom: 12px; }
.allyBox.big { width: 64px; height: 64px; }
.card.invite b { padding: 0 16px; font-size: 15px; }
.card.invite > span { padding: 2px 16px 0; font-size: 12px; color: var(--mu); }
.card.invite .cta { margin: 14px 16px 0; min-height: 46px; border-radius: 23px; background: var(--gold); color: #1A0F08; font-weight: 700; font-size: 15px; }

/* card heads, rows and buttons */
.bh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.bh .cap { margin: 0; }
.bh .cnt { font-size: 12px; color: var(--mu); font-weight: 600; white-space: nowrap; }
.brow { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; font-size: 13.5px; line-height: 1.4; animation: msgIn .3s both; animation-delay: calc(var(--i) * .15s); }
.bt { flex: none; width: 66px; text-align: center; font-size: 9.5px; font-weight: 700; letter-spacing: .07em; color: var(--mu); background: var(--sf2); border-radius: 6px; padding: 4px 0; margin-top: 1px; }
.btns { display: flex; gap: 8px; margin-top: 12px; }
.btns button { flex: 1; min-height: 44px; border-radius: 22px; border: 1px solid var(--ln2); font-weight: 600; font-size: 14px; }
.btns button.p { background: var(--gold); color: #1A0F08; border-color: var(--gold); }
.btns.used button { opacity: .4; pointer-events: none; }
.btns.used button.p { opacity: 1; }

/* notify */
.k-notify .nt { display: block; font-size: 14.5px; }
.k-notify .nsub { display: block; font-size: 12.5px; color: var(--mu); margin-top: 3px; }

/* working: steps with counts */
.bar { height: 3px; border-radius: 2px; background: var(--ln); margin: 2px 0 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); transition: width .6s ease; }
.step { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; animation: msgIn .3s both; animation-delay: calc(var(--i) * .15s); }
.step .si { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ln2); display: grid; place-items: center; color: var(--green); transition: background .3s, border-color .3s; }
.step.done .si { background: var(--greenbg); border-color: var(--greenbg); }
.step.active .si { border-color: var(--gold); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 9px var(--gold); }
.step .sl { flex: 1; }
.step.next .sl { color: var(--dim); }
.step .sc { font-size: 12.5px; color: var(--mu); white-space: nowrap; }
.step.active .sc { color: var(--gold); }
.step.next .sc { color: var(--dim); }

/* first result: shortlist */
.pk { display: flex; gap: 11px; align-items: center; width: 100%; text-align: left; padding: 9px 0; border-top: 1px solid var(--ln); animation: msgIn .3s both; animation-delay: calc(var(--i) * .15s); }
.bh + .pk { border-top: 0; }
.pk .th { flex: none; width: 40px; height: 40px; border-radius: 7px; overflow: hidden; }
.pk .pl { flex: 1; min-width: 0; }
.pk .pl b { display: block; font-size: 13.5px; font-weight: 600; }
.pk .pl span { display: block; font-size: 11.5px; color: var(--mu); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk .pl em { display: block; font-style: normal; font-size: 10.5px; color: var(--dim); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk .pr { text-align: right; flex: none; }
.pk .pr b { display: block; font-size: 13.5px; }
.tg { display: inline-block; margin-top: 3px; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; padding: 2px 6px; border-radius: 5px; color: var(--mu); background: var(--sf2); }
.tg.ok { color: var(--green); background: var(--greenbg); } .tg.w { color: var(--amb); background: var(--ambbg); } .tg.x { color: var(--red); background: var(--redbg); }
button.pk:active { background: var(--sf2); }

/* Reduce Motion: cross-fades only */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .2s !important; animation-delay: 0s !important; transition-duration: .2s !important; }
  @keyframes msgIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes scrIn { from { opacity: 0; } to { opacity: 1; } }
}
.ahead > div:nth-child(2) { min-width: 0; flex: 1; }
.st { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step.skip .sl, .step.skip .sc { color: var(--dim); }
.step.skip .si { border-style: dashed; }
.newc { flex: none; width: 34px; height: 34px; margin-left: 4px; margin-top: 6px; border-radius: 50%; border: 1px solid var(--ln); display: grid; place-items: center; color: var(--mu); transition: color .2s, border-color .2s; }
.newc:hover { color: var(--cream); border-color: var(--ln2); }
.newc:active { transform: scale(.94); }

/* first screen: the greeting and the message box sit in the middle; once the buyer writes, the box moves to the bottom */
.lead, #cant { display: none; }
#s-chat.fresh .thread { flex: 0 1 auto; margin-top: auto; padding-bottom: 4px; }
#s-chat.fresh .lead { display: block; font-size: 14px; font-weight: 600; color: var(--cream); margin: 14px 4px 8px; }
#s-chat.fresh #cant { display: block; align-self: center; margin: 14px 0 auto; }
#cant button { font-size: 12.5px; color: var(--mu); text-decoration: underline; text-underline-offset: 3px; }
#s-chat.fresh .ask { border-color: var(--ln2); }

/* what's on file for a home: payment plan, floor plan */
.bdg { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.bdg i { font-style: normal; font-size: 9.5px; font-weight: 600; letter-spacing: .04em; color: var(--gold); border: 1px solid #5A4430; border-radius: 5px; padding: 1px 5px; }

/* ===== v3 (20 Nov standards): cards v1.1, home screen v1.0 ===== */
.st.need { color: var(--gold); }
.st.ok { color: var(--green); }
.src { font-size: 12px; line-height: 1.45; }                       /* the source line carries the proof: 12 px or larger */
.card .src { margin-top: 10px; }
.sep { font-size: 12px; }

/* headline: the answer in one line, coloured by status */
.hl { display: flex; gap: 7px; align-items: flex-start; font-weight: 600; font-size: 14.5px; line-height: 1.35; margin: 2px 0 6px; color: var(--cream); }
.hl svg { flex: none; margin-top: 2px; }
.hl.w { color: var(--amb); } .hl.x { color: var(--red); } .hl.ok { color: var(--green); }
.card.adv { border-color: #7A3A2A; }
.card.chg { border-color: #6B5232; }
.bt.ok { color: var(--green); background: var(--greenbg); } .bt.w { color: var(--amb); background: var(--ambbg); } .bt.x { color: var(--red); background: var(--redbg); }
.row .t { width: 72px; font-size: 10px; }

/* sold: each sale as proof, weak matches labelled */
.k-sold .ml { font-size: 13px; font-variant-numeric: tabular-nums; }
.k-sold .ml.weak span:first-child { color: var(--dim); }
.wk { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .05em; color: var(--amb); background: var(--ambbg); border-radius: 5px; padding: 2px 6px; margin-right: 8px; vertical-align: 1px; }
.k-sold .ml.tot { border-top: 1px solid var(--ln2); }
.k-sold .ml.tot span:last-child { color: var(--cream); }
.k-sold .ml.ask2 { font-weight: 600; border-top: 0; padding-top: 2px; }
.nt2 { font-size: 12.5px; color: var(--mu); line-height: 1.45; margin-top: 8px; }

/* property card */
.ph { position: relative; height: 92px; border-radius: 12px; margin: 4px 0 10px; background: radial-gradient(circle at 70% 30%, #4A3826, #2A1F16 70%); display: grid; place-items: center; overflow: hidden; }
.ph svg { width: 56px; height: 56px; opacity: .8; }
.ptag { position: absolute; left: 8px; top: 8px; font-size: 9.5px; font-weight: 700; letter-spacing: .07em; color: #1A0F08; background: var(--gold); border-radius: 5px; padding: 3px 7px; }
.pn { display: block; font-size: 15.5px; font-weight: 600; }
.pa { display: block; font-size: 12.5px; color: var(--mu); margin-top: 1px; }
.pp { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 8px; }
.pp b { font-size: 17px; font-weight: 700; }
.pp span { font-size: 12px; color: var(--mu); }
.pf { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pf i { font-style: normal; font-size: 12px; color: var(--cream); background: var(--sf2); border-radius: 7px; padding: 3px 8px; }
.r3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.r3 > * { background: var(--sf2); border-radius: 10px; padding: 8px 6px; text-align: center; font-size: 10.5px; color: var(--dim); line-height: 1.3; }
.r3 b { display: block; font-family: 'ISerif', Georgia, serif; font-weight: 400; font-size: 19px; color: var(--cream); }
.r3 .ok b { color: var(--green); } .r3 .w b { color: var(--amb); } .r3 .x b { color: var(--red); }
.r3 button { border: 1px solid transparent; } .r3 button:hover { border-color: var(--ln2); }
.pl2 { font-size: 12.5px; color: var(--gold); margin-top: 8px; }
.ver { display: flex; gap: 6px; align-items: center; font-size: 12.5px; margin-top: 8px; }
.ver.ok { color: var(--green); } .ver.w { color: var(--amb); }

/* the Ask sheet: what is shared, what is not, and the safeguard */
.card.k-ask { border-color: #6B5232; background: linear-gradient(#251A11, var(--sf)); box-shadow: 0 -8px 30px #0006; }
.aq { font-size: 15px; font-weight: 600; }
.ah { font-size: 24px; line-height: 1.15; margin: 2px 0 8px; color: var(--cream); }
.k-ask .ml span:first-child { color: var(--mu); }
.k-ask .ml span:last-child { text-align: right; }
.safe { display: flex; gap: 7px; align-items: center; font-size: 12.5px; color: var(--mu); margin-top: 8px; }

/* viewing */
.vw { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: var(--amb); background: var(--ambbg); border-radius: 8px; padding: 7px 9px; margin-top: 8px; }
.vw svg { flex: none; margin-top: 2px; }
.vd { font-size: 12.5px; color: var(--cream); margin-top: 6px; }
.k-viewing .step.active .sc { color: var(--amb); }

/* home screen: needs you, waiting on others, done */
.hm { padding: 4px 0 8px; }
.hh { font-size: 30px; line-height: 1.1; margin-top: 18px; }
.hc { font-size: 12.5px; color: var(--mu); margin-top: 4px; }
.hg { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 20px 0 8px; display: flex; align-items: center; gap: 6px; }
.hg i { font-style: normal; font-size: 10px; letter-spacing: 0; color: var(--mu); background: var(--sf2); border-radius: 9px; min-width: 18px; text-align: center; padding: 1px 5px; }
.h0 { font-size: 13.5px; color: var(--mu); }
.hn { border: 1px solid var(--gold); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; background: var(--sf); }
.hn + .hn { margin-top: 8px; }
.hn b { font-size: 14.5px; } .hn span { font-size: 12.5px; color: var(--mu); }
.hn button { align-self: flex-end; margin-top: 6px; min-height: 36px; padding: 0 18px; border-radius: 18px; background: var(--gold); color: #1A0F08; font-weight: 700; font-size: 13.5px; }
.hw { display: flex; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--ln); border-radius: 12px; font-size: 13px; }
.hw .who { color: var(--amb); font-weight: 600; } .hw .what { flex: 1; } .hw em { display: block; font-style: normal; font-size: 11.5px; color: var(--dim); } .hw .due { color: var(--mu); font-size: 12px; }
.hd { border: 1px solid var(--ln); border-radius: 12px; overflow: hidden; }
.hd button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; font-size: 13.5px; border-top: 1px solid var(--ln); }
.hd button:first-child { border-top: 0; }
.hd .ck { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--greenbg); color: var(--green); display: grid; place-items: center; }
.hd .dt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd .dd { font-size: 12px; color: var(--mu); white-space: nowrap; }
.hmore { font-size: 12.5px; color: var(--mu); margin-top: 8px; }
.hall { display: flex; justify-content: space-between; width: 100%; font-size: 13px; color: var(--mu); margin-top: 18px; padding: 6px 2px; }
#s-home .hm { flex: none; }
.card.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 100% { box-shadow: none; } 20% { box-shadow: 0 0 0 2px var(--gold); } }

/* partner service card: label left, the partner's figure or terms right, wrapping on a phone */
.ml.pr2 { align-items: flex-start; }
.ml.pr2 span:first-child { color: var(--mu); flex: 0 1 42%; }
.ml.pr2 span:last-child { text-align: right; flex: 0 1 58%; line-height: 1.4; }

.demo-note{position:fixed;left:18px;bottom:18px;max-width:250px;font:12px/1.5 Inter,system-ui,sans-serif;color:#9A8873;z-index:5}
.demo-note b{color:#E3B373;font-weight:600;display:block;margin-bottom:2px}
@media (max-width:900px){.demo-note{display:none}}

.demo-note { display: none !important; } body.ally-demo .demo-note { display: block !important; }
