@charset "UTF-8";
/* The deal pulse, the contract diff and the draft box (see app/src/pulse.js). Scoped to #app / #modal-root so the
   flat theme layers don't strip them; colors are plain backgrounds and SVG strokes, motion is transform and opacity. */

/* ---------- the pulse ---------- */
:is(#app, #modal-root) .dpulse { --pc: #2F7D4F; --ps: 3.2s; position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; vertical-align: middle; margin-right: 8px; }
:is(#app, #modal-root) .dpulse.sm { width: 18px; height: 18px; margin-right: 7px; }
:is(#app, #modal-root) .dpulse.lg { width: 30px; height: 30px; margin-right: 10px; }
:is(#app, #modal-root) .dpulse svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
:is(#app, #modal-root) .dpulse-track { fill: none; stroke: rgba(28, 28, 28, .12); stroke-width: 2.2; }
:is(#app, #modal-root) .dpulse-arc { fill: none; stroke: var(--pc); stroke-width: 2.2; stroke-linecap: round; transition: stroke-dasharray .6s cubic-bezier(.2, .7, .2, 1); }
:is(#app, #modal-root) .dpulse i { position: relative; display: block; width: 36%; height: 36%; border-radius: 50%; background: var(--pc) !important; }
:is(#app, #modal-root) .dpulse i::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--pc); opacity: .5; animation: pulse-ring var(--ps) cubic-bezier(.2, .6, .3, 1) infinite; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .5; } 75% { transform: scale(2.7); opacity: 0; } 100% { transform: scale(2.7); opacity: 0; } }
:is(#app, #modal-root) .dpulse.p-calm { --pc: #2F7D4F; --ps: 3.2s; }
:is(#app, #modal-root) .dpulse.p-ready { --pc: #2F7D4F; --ps: 2.4s; }
:is(#app, #modal-root) .dpulse.p-soon { --pc: #B8862F; --ps: 1.9s; }
:is(#app, #modal-root) .dpulse.p-check { --pc: #B8862F; --ps: 2.4s; }
:is(#app, #modal-root) .dpulse.p-urgent { --pc: #C8352A; --ps: 1.1s; }
:is(#app, #modal-root) .dpulse.p-done { --pc: #8A8A8A; }
:is(#app, #modal-root) .dpulse.p-done i::before { animation: none; opacity: 0; }
/* The reason, on hover */
:is(#app, #modal-root) .dpulse::after { content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 8px); transform: translateY(4px); background: #1C1C1C !important; color: #fff !important; font: 500 12px/1.35 var(--sans); padding: 6px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 6; }
:is(#app, #modal-root) .dpulse:hover::after { opacity: 1; transform: translateY(0); }
#app .card .dpulse::after, #app .row .dpulse::after { bottom: auto; top: calc(100% + 8px); transform: translateY(-4px); }
#app .card .dpulse:hover::after, #app .row .dpulse:hover::after { transform: translateY(0); }
#app .card .next > span:first-child { display: inline-flex; align-items: center; }
#modal-root .dpulse-line { display: flex; align-items: center; gap: 2px; margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { :is(#app, #modal-root) .dpulse i::before { animation: none; opacity: .25; transform: scale(1.8); } }

/* ---------- contract diff ---------- */
#modal-root .addendum-btn { align-self: flex-start; cursor: pointer; }
#modal-root .diff { display: flex; flex-direction: column; gap: 8px; }
#modal-root .diff-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
#modal-root .diff-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 18px auto; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 14px; text-transform: none; letter-spacing: 0; }
#modal-root .diff-row input { margin: 0; width: 16px; height: 16px; }
#modal-root .diff-label { font-weight: 600; color: var(--ink); min-width: 0; }
#modal-root .diff-label small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
#modal-root .diff-before { color: #B42318 !important; text-decoration: line-through; white-space: nowrap; }
#modal-root .diff-after { color: #1F6F43 !important; font-weight: 700; white-space: nowrap; }
#modal-root .diff-arrow { color: var(--muted); text-align: center; }
#modal-root .diff-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#modal-root .diff-done { color: #1F6F43 !important; font-weight: 600; }
#modal-root .diff-wait { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { #modal-root .diff-row { grid-template-columns: 20px 1fr; } #modal-root .diff-before, #modal-root .diff-after { white-space: normal; } #modal-root .diff-arrow { display: none; } #modal-root .diff-after { grid-column: 2; } }

/* ---------- draft anything ---------- */
#modal-root .draft-box { gap: 12px; }
#modal-root .draft-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
#modal-root .draft-head h3 { margin: 0 0 4px; }
#modal-root .draft-head .note { margin: 0; max-width: 52ch; }
#modal-root .draft-moments { display: flex; flex-wrap: wrap; gap: 8px; }
#modal-root .draft-moments .chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font: 500 13px var(--sans); cursor: pointer; color: var(--ink); transition: background .15s, border-color .15s, transform .15s; }
#modal-root .draft-moments .chip:hover:not(:disabled) { border-color: var(--ink); transform: translateY(-1px); }
#modal-root .draft-moments .chip.on { background: var(--accent, #1C1C1C) !important; color: #fff !important; border-color: var(--accent, #1C1C1C) !important; }
#modal-root .draft-moments .chip:disabled { opacity: .45; cursor: default; }
#modal-root .draft-custom { display: flex; gap: 8px; }
#modal-root .draft-custom input { flex: 1; min-width: 0; }
#modal-root .draft-item { display: flex; flex-direction: column; gap: 8px; }
#modal-root .draft-item textarea { width: 100%; box-sizing: border-box; resize: vertical; }
#modal-root .draft-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#modal-root .draft-when { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
#modal-root .draft-typing { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; }
#modal-root .draft-typing em { margin-left: 6px; font-style: normal; }

/* ---------- deal page: price you can type, people with their own cell and email ---------- */
#modal-root .fact-edit { cursor: text; }
#modal-root .fact-money { display: flex; align-items: baseline; gap: 2px; }
#modal-root .fact-money i { font: 600 17px var(--sans); font-style: normal; color: var(--muted); }
#modal-root .fact-money input { width: 100%; min-width: 0; border: 0 !important; background: transparent !important; padding: 0 !important; height: auto !important; border-radius: 0 !important; font: 600 22px/1.2 var(--sans) !important; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; color: var(--ink); box-shadow: none !important; }
#modal-root .fact-money input:focus { outline: 0; box-shadow: 0 1px 0 var(--ink) !important; }
/* Cell, then email under it, then the consent line: nothing runs past the edge of the panel. */
#modal-root .person > div:not(.initials) { flex: 1; min-width: 0; }
#modal-root .person-edit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 8px; max-width: 320px; }
#modal-root .person-edit input[type="tel"], #modal-root .person-edit input[type="email"] { width: 100%; min-width: 0; box-sizing: border-box; font-size: 13px !important; height: 34px !important; padding: 0 10px !important; }
#modal-root .person-edit .consent-check { font-size: 12px; }

#app .crow-add { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 18px 14px; }
#app .cedit #c-name { min-width: 140px; }

/* ---------- conversations (the assistant line's inbox, on the Assistant tab) ---------- */
#app .ib .sched-head { position: relative; }
#app .ib .ib-refresh { position: absolute; right: 0; top: 4px; }
#app .ib-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#app .ib-row { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, transform .15s; }
#app .ib-row:hover { border-color: var(--ink); transform: translateY(-1px); }
#app .ib-av { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #EEF2EF; color: var(--ink); font: 600 14px var(--sans); }
#app .ib-av.me { background: var(--accent, #1C1C1C); color: #fff; }
#app .ib-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#app .ib-main b { font: 600 15px var(--sans); color: var(--ink); display: flex; gap: 8px; align-items: center; }
#app .ib-count { font: 600 11px var(--caps); letter-spacing: .06em; text-transform: uppercase; color: #1F6F43; background: #E6F4EB; padding: 2px 7px; border-radius: 999px; font-style: normal; }
#app .ib-preview { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#app .ib-preview i { font-style: normal; color: var(--ink); }
#app .ib-when { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
#app .ib-thread { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
#app .ib-thread-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
#app .ib-thread-head span { display: flex; flex-direction: column; }
#app .ib-thread-head b { font: 600 17px var(--sans); color: var(--ink); }
#app .ib-thread-head small { color: var(--muted); font-size: 13px; }
#app .ib-msgs { display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow-y: auto; padding: 4px 2px; }
#app .ib-msg { display: flex; flex-direction: column; gap: 3px; max-width: 78%; }
#app .ib-msg.us { align-self: flex-end; align-items: flex-end; }
#app .ib-msg.them { align-self: flex-start; align-items: flex-start; }
#app .ib-bub { padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; }
#app .ib-msg.us .ib-bub { background: var(--accent, #1C1C1C) !important; color: #fff !important; border-bottom-right-radius: 4px; }
#app .ib-msg.them .ib-bub { background: #EEF2EF !important; color: var(--ink); border-bottom-left-radius: 4px; }
#app .ib-msg small { font-size: 11.5px; color: var(--muted); }
@media (max-width: 640px) { #app .ib .ib-refresh { position: static; margin-bottom: 10px; } #app .ib-row { grid-template-columns: 36px minmax(0, 1fr); } #app .ib-when { display: none; } #app .ib-msg { max-width: 92%; } }

/* custom requests: a scheduled card that was canceled, and its own Cancel link */
#app .cr-draft.cr-off { background: #F4F4F4 !important; border-color: #E2E2E2 !important; }
#app .cr-draft.cr-off .cr-body { color: #8A8A8A !important; text-decoration: line-through; }
#app .cr-sent .cr-when.off { color: #8A8A8A !important; font-weight: 500; }
#app .cr-sent .cr-meta .linkish { margin-left: auto; font-size: 13px; }

/* closed sales on Performance open their record */
#app .closed-card { cursor: pointer; }
#app .closed-card:hover { transform: translateY(-2px); }
#modal-root .sale-form .row-end.wide { grid-column: 1 / -1; display: flex; justify-content: flex-end; }

/* ---------- the console at the top of the Assistant tab ---------- */
#app .page-head.ai-hero-hx { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: stretch; padding: 6px 0 0; }
#app .page-head.ai-hero-hx .ai-corner { width: auto; min-width: 0; border-radius: 22px; }
#app .hx { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding: 30px 34px; border-radius: 22px; background: #0C0F0E !important; color: #F2F4F3; border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .6); }
#app .hx-grid { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
#app .hx-grid::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(80% 80% at 70% 50%, #000 30%, transparent 100%); -webkit-mask-image: radial-gradient(80% 80% at 70% 50%, #000 30%, transparent 100%); }
#app .hx-glow { position: absolute; right: -60px; top: -80px; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; }
#app .hx-glow::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background-image: radial-gradient(circle, rgba(127, 214, 164, .22), rgba(127, 214, 164, 0) 62%); animation: hx-breathe 6s ease-in-out infinite alternate; }
@keyframes hx-breathe { from { transform: scale(.92); opacity: .8; } to { transform: scale(1.08); opacity: 1; } }
#app .hx-left, #app .hx-right { position: relative; z-index: 1; display: flex; flex-direction: column; }
#app .hx .hx-live { color: #8FCB9E !important; }
#app .hx .hx-live span { background: #7FD6A4; box-shadow: 0 0 0 0 rgba(127, 214, 164, .6); }
#app .hx h1 { margin: 12px 0 10px; font: 500 clamp(36px, 4.2vw, 56px)/1.02 var(--head) !important; color: #fff !important; letter-spacing: -.01em; }
#app .hx h1 i { color: #BDEBD0; font-style: italic; }
#app .hx > .hx-left > p { margin: 0; max-width: 58ch; font-size: 16px; line-height: 1.5; color: #B9C2BD; }
#app .hx p b { color: #fff; font-weight: 600; }
#app .hx-warn { color: #F0C34E; font-weight: 600; }
#app .hx-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 26px; }
#app .hx-tile { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 11px; border-radius: 12px; background: rgba(255, 255, 255, .05) !important; border: 1px solid rgba(255, 255, 255, .08); min-width: 0; }
#app .hx-tile small { font: 600 9.5px/1.25 var(--caps) !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: #8E9893 !important; }
#app .hx-tile b { font: 600 21px/1.1 var(--sans); font-variant-numeric: lining-nums tabular-nums; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#app .hx-tile.warn { border-color: rgba(240, 195, 78, .5); }
#app .hx-tile.warn b { color: #F0C34E; }
#app .hx-right { align-items: center; justify-content: center; gap: 6px; }
#app .hx-radar { width: 100%; max-width: 300px; height: auto; display: block; overflow: visible; }
#app .hx-sweep { transform-box: view-box; transform-origin: 160px 160px; animation: hx-spin 7s linear infinite; }
@keyframes hx-spin { to { transform: rotate(360deg); } }
#app .hx-core { animation: hx-core 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes hx-core { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(4.2); opacity: 0; } }
#app .hx-dot.first circle:last-of-type { stroke: #fff; stroke-width: 1.5; }
#app .hx-next { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; margin-top: -6px; }
#app .hx-next small { font: 600 10px var(--caps) !important; letter-spacing: .14em !important; text-transform: uppercase !important; color: #8FCB9E !important; }
#app .hx-next b { font: 600 16px var(--sans); color: #fff; }
#app .hx-next span { font-size: 12.5px; color: #9AA59F; }
@media (max-width: 1100px) { #app .page-head.ai-hero-hx { grid-template-columns: 1fr; } #app .hx { grid-template-columns: 1fr; } #app .hx-right { flex-direction: row; justify-content: flex-start; gap: 20px; } #app .hx-radar { max-width: 220px; } #app .hx-next { align-items: flex-start; text-align: left; margin: 0; } }
@media (max-width: 720px) { #app .hx { padding: 22px 18px; } #app .hx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } #app .hx-right { flex-direction: column; align-items: center; } #app .hx-next { align-items: center; text-align: center; } }
@media (prefers-reduced-motion: reduce) { #app .hx-sweep, #app .hx-core, #app .hx-glow::before { animation: none; } }
/* Documents on a deal or listing: every paper so far, and + Add documents */
#modal-root .doc-box { display: flex; flex-direction: column; gap: 10px; }
#modal-root .doc-box h3 { margin: 0; }
#modal-root .doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
#modal-root .doc-list li { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line, #E6E1D8); }
#modal-root .doc-list li:last-child { border-bottom: 0; }
#modal-root .doc-list .doc-name { font-weight: 600; overflow-wrap: anywhere; }
#modal-root .doc-list small { color: var(--muted, #6B675F); flex: 1 1 220px; }
/* Price / earnest money: plain number like the other boxes, small black pencil top right to change it */
#modal-root .fact.fact-pen { position: relative; }
#modal-root .fact-pencil { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: #111; cursor: pointer; border-radius: 6px; }
#modal-root .fact-pencil:hover { background: rgba(0,0,0,.06); }
#modal-root .fact-pencil:focus-visible { outline: 2px solid #111; outline-offset: 1px; }
#modal-root .fact.fact-pen.editing .fact-money input[type="text"] { border: 0 !important; border-bottom: 1.5px solid #111 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 0 2px !important; height: auto !important; font: 600 22px/1.2 var(--head) !important; }
/* Documents bar: same line as Download summary, with the papers listed under it */
#modal-root .doc-bar { margin-top: -6px; }
#modal-root .doc-btn { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
#modal-root .doc-btn.busy { opacity: .7; cursor: progress; }
#modal-root .doc-panel { display: flex; flex-direction: column; gap: 8px; }
#modal-root .doc-strip { margin-top: -6px; padding: 0 14px; border: 1px solid var(--line, #E6E1D8); border-top: 0; }
#modal-root .doc-strip li { padding: 6px 0; font-size: 13.5px; }
#modal-root .doc-msg { margin: 0; min-height: 0; }
#modal-root .doc-msg:empty { display: none; }
#modal-root .doc-dlg .dialog-body { display: flex; flex-direction: column; gap: 12px; }
#modal-root .doc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
#modal-root .doc-top h2 { margin: 2px 0 0; }
#modal-root .doc-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#modal-root .doc-acts .btn { display: inline-flex; align-items: center; gap: 8px; }
#modal-root .doc-dlg .doc-pdf { max-height: 68vh; padding: 10px; margin: 0; }
/* Deal page in black and white: notes, "please check" lines and the status ring lose the amber */
#modal-root .deal-dlg .flag { background: #FFFFFF !important; border: 1px solid #1C1C1C !important; border-left-width: 3px !important; color: #1C1C1C !important; }
#modal-root .deal-dlg .step .src.unsure { color: #1C1C1C !important; font-weight: 600; }
#modal-root .deal-dlg .dpulse.p-soon, #modal-root .deal-dlg .dpulse.p-check { --pc: #1C1C1C; }
/* Team: the same space between the Your team box and the stat boxes as between every other row */
#app .tm-manage + .stats.hero, #app .tm-ask + .stats.hero { margin-top: 16px !important; }
/* Performance › Closings: the count sits by the title, the PDF button on the right. */
#app .sold-head { gap: 10px; flex-wrap: wrap; align-items: center; }
#app .sold-head .note { margin-right: auto; }
#app .sold-dl { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
#app .sold-dl.busy { opacity: .6; cursor: progress; }
