/* Advantage Buyer Portal — portal.html, dashboard.html, property.html */
.btn-outline { background: var(--white); color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: #f0f5ff; }
.btn-navy-outline { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.88rem; }
.btn-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 160px; }
.btn[disabled], button[disabled] { opacity: 0.5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--door); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 0.75rem 0.85rem; font: inherit; color: var(--ink); background: var(--white); resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(43,127,255,.18); }
.field input[type=datetime-local] { min-height: 3rem; }

/* Sign in */
.auth-wrap { display: grid; grid-template-columns: 1fr minmax(320px, 460px); gap: 3rem; align-items: start; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.auth-points li { padding-left: 1.7rem; position: relative; color: var(--ink); }
.auth-points li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--door); box-shadow: inset 0 0 0 4px #e8f2ff; }
.auth-card { width: 100%; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f1f5fb; border-radius: 999px; padding: 4px; margin-bottom: 1.4rem; }
.auth-tab { border: 0; background: none; border-radius: 999px; padding: .65rem; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.auth-tab.is-active { background: var(--white); color: var(--navy); box-shadow: 0 2px 8px rgba(12,42,77,.12); }
.auth-alt { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.auth-msg { margin: 1rem 0 0; padding: .75rem 1rem; border-radius: 10px; background: #f1f5fb; color: var(--navy); font-size: .92rem; }
.auth-msg.error { background: #fdecec; color: var(--danger); }
.auth-msg.ok { background: #e8f6ee; color: var(--savings); }

/* Dashboard */
.dash { padding-top: 1.8rem; }
.dash-welcome { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.dash-welcome h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .25rem; }
.dash-sub { color: var(--muted); margin: 0; }
.dash-jump { display: flex; gap: .5rem; flex-wrap: wrap; }
.dash-jump a { padding: .4rem .85rem; border-radius: 999px; background: #f1f5fb; color: var(--navy); font-size: .88rem; font-weight: 600; text-decoration: none; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.5rem; align-items: start; }
.dash-main, .dash-side { display: grid; gap: 1.5rem; min-width: 0; }
.dash-side { position: sticky; top: calc(var(--header-h) + 16px); }
.dash-card { background: var(--white); border: 1px solid rgba(12,42,77,.09); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem 1.4rem 1.5rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.dash-card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.dash-card h2 { font-size: 1.25rem; margin: 0; }
.small-h { font-size: 1.1rem !important; margin: 0 0 .6rem !important; }
.sub-head { font-size: 1rem; margin: 1.5rem 0 .5rem; }
.dash-note { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; }
.dash-note.small { font-size: .85rem; margin: .6rem 0 0; }
.status-pill { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; text-transform: capitalize; background: #eef2f8; color: var(--navy); white-space: nowrap; }
.status-pill.ok, .status-pill.s-confirmed, .status-pill.s-accepted { background: #e5f5ec; color: var(--savings); }
.status-pill.warn, .status-pill.s-requested, .status-pill.s-submitted { background: #fff4de; color: #8a5a00; }
.status-pill.s-completed { background: #e8f2ff; color: #1d5fc4; }
.status-pill.s-cancelled, .status-pill.s-canceled { background: #eef2f8; color: #5a6570; }
.status-pill.s-expired { background: #fff4de; color: #8a5a00; }
.status-pill.s-noshow { background: #e8f2ff; color: #1d5fc4; }
.item-meta.showing-arrived { color: var(--navy); font-weight: 600; }
.item-meta.showing-feedback { color: var(--navy); white-space: pre-wrap; }
.item-meta.showing-reschedule { color: #8a5a00; }

.gate { background: #f5f8ff; border: 1.5px dashed var(--door); border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.gate p { margin: 0 0 .7rem; }
.purchase-gate p { margin: 0; }
.btn-cancel-tx { border-color: #8a2b2b; color: #8a2b2b; background: #fff; }
.btn-cancel-tx:hover, .btn-cancel-tx:focus { background: #8a2b2b; color: #fff; }
#showing-form.is-locked, #offer-form.is-locked { opacity: .55; }
.item-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.item { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.item > div { flex: 1 1 200px; min-width: 0; }
.item-title { margin: 0; font-weight: 600; color: var(--navy); }
.item-title a { color: var(--navy); }
.item-meta { margin: 0; font-size: .85rem; color: var(--muted); }
.empty { color: var(--muted); font-size: .95rem; margin: 0; }
.feed-note { background: #f5f8ff; border-left: 4px solid var(--door); padding: .7rem 1rem; border-radius: 8px; font-size: .92rem; color: var(--ink); margin: 0 0 1rem; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.listing-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.listing-photo { position: relative; display: block; aspect-ratio: 4/3; background: #eef2f8; }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.sample-badge { position: absolute; top: .6rem; left: .6rem; background: rgba(255,255,255,.95); color: var(--navy); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.sample-badge.lg { font-size: .8rem; top: 1rem; left: 1rem; }
.listing-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.listing-price { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin: 0; }
.listing-facts, .listing-addr { margin: 0; font-size: .9rem; color: var(--muted); }
.listing-addr { color: var(--ink); text-decoration: none; }
.listing-actions { display: flex; gap: .5rem; margin-top: .7rem; flex-wrap: wrap; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: .6rem; }
.chat-log { height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; padding: .3rem .1rem; }
.chat-msg { max-width: 88%; padding: .6rem .85rem; border-radius: 14px; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; }
.chat-msg.assistant { background: #f1f5fb; color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--navy); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.pending { opacity: .6; font-style: italic; }
.chat-msg.fallback { background: #fff8e8; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { border: 1.5px solid #cfe0ff; background: #f5f9ff; color: var(--navy); border-radius: 999px; padding: .3rem .75rem; font: inherit; font-size: .8rem; cursor: pointer; }
.chat-form { display: flex; gap: .5rem; }
.chat-form input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px; padding: .65rem 1rem; font: inherit; font-size: .95rem; }
.chat-form input:focus { outline: none; border-color: var(--door); }
.chat-fine { font-size: .74rem; color: var(--muted); margin: 0; }
.chat-drawer { position: fixed; inset: 0; background: rgba(12,42,77,.35); display: none; z-index: 200; justify-content: flex-end; }
.chat-drawer.open { display: flex; }
.chat-drawer-panel { background: var(--white); width: min(440px, 100%); height: 100%; padding: 1.2rem; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(12,42,77,.2); }
.chat-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.chat-drawer-head h2 { font-size: 1.2rem; margin: 0; }
.chat-close { border: 0; background: #f1f5fb; width: 2.2rem; height: 2.2rem; border-radius: 50%; font-size: 1.4rem; cursor: pointer; color: var(--navy); }
.chat-drawer-body { flex: 1; min-height: 0; }
.chat-drawer .chat-log { height: calc(100vh - 240px); }

/* Property */
.prop { padding-top: 1.2rem; }
.crumbs { margin: 0 0 1rem; font-size: .9rem; }
.crumbs a { color: var(--navy); font-weight: 600; text-decoration: none; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: #eef2f8; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.g-prev { left: .8rem; } .g-next { right: .8rem; }
.g-count { position: absolute; bottom: .8rem; right: .8rem; background: rgba(12,42,77,.8); color: #fff; font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; }
.gallery-thumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; width: 92px; height: 64px; flex: 0 0 auto; cursor: pointer; background: none; }
.gallery-thumbs button[aria-current=true] { border-color: var(--door); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.prop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.6rem; margin-top: 1.4rem; align-items: start; }
.prop-main { display: grid; gap: 1.3rem; min-width: 0; }
.prop-side { display: grid; gap: 1.3rem; position: sticky; top: calc(var(--header-h) + 16px); }
.prop-price { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; color: var(--navy); margin: 0; line-height: 1.1; }
.prop-addr { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin: .3rem 0 .2rem; letter-spacing: 0; }
.prop-facts { color: var(--muted); margin: 0; }
.prop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.action-main { flex-direction: column; align-items: flex-start; border-radius: 14px; padding: .95rem 1.2rem; text-align: left; gap: .15rem; text-decoration: none; }
.action-main span { font-size: 1.05rem; font-weight: 700; }
.action-main small { font-size: .78rem; font-weight: 400; opacity: .85; line-height: 1.35; }
.action-row { grid-column: 1 / -1; display: flex; gap: .6rem; flex-wrap: wrap; }
.action-row .btn { flex: 1 1 180px; }
.details-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .2rem 1rem; margin: 0; }
.details-grid div { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.details-grid dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.details-grid dd { margin: 0; font-weight: 600; color: var(--navy); }
.attribution { font-size: .85rem; color: var(--muted); }
.attribution p { margin: 0 0 .5rem; }
.mls-disclaimer { font-size: .78rem; }
.kd-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.kd-head .small-h { margin: 0 !important; }
.kd-amount { font-size: 2.2rem; font-weight: 700; color: var(--navy); margin: .3rem 0 .8rem; line-height: 1.1; }
.kd-amount small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.kd-control { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .9rem; flex-wrap: wrap; }
.kd-control label { font-weight: 600; font-size: .9rem; }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { border: 0; background: #f1f5fb; width: 2.3rem; height: 2.3rem; font-size: 1.2rem; color: var(--navy); cursor: pointer; }
.stepper input { width: 3.4rem; border: 0; text-align: center; font: inherit; font-weight: 700; color: var(--navy); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper span { padding-right: .4rem; color: var(--muted); }
.kd-split { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .8rem; }
.kd-split div { background: #f5f8fc; border-radius: 10px; padding: .6rem .75rem; }
.kd-split span { display: block; font-size: .75rem; color: var(--muted); }
.kd-split strong { color: var(--navy); }
.kd-disclaimer { font-size: .74rem; color: var(--muted); margin: 0; line-height: 1.5; }
.tip { position: relative; }
.tip-btn { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1.5px solid var(--door); background: #fff; color: var(--door); font-weight: 700; font-size: .8rem; cursor: pointer; font-family: Georgia, serif; font-style: italic; }
.tip-pop { display: none; position: absolute; right: 0; top: 2rem; width: 260px; background: var(--navy); color: #fff; font-size: .8rem; line-height: 1.45; padding: .7rem .85rem; border-radius: 10px; z-index: 20; box-shadow: var(--shadow); }
.tip:hover .tip-pop, .tip:focus-within .tip-pop { display: block; }
.mc-lines { list-style: none; margin: 0 0 .8rem; padding: 0; }
.mc-lines li { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.mc-lines strong { color: var(--navy); }

@media (max-width: 960px) {
  .auth-wrap, .dash-grid, .prop-grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .dash-side, .prop-side { position: static; }
  .auth-wrap { gap: 1.2rem; }
  .auth-intro .section-lead { margin-bottom: 1rem; }
}
@media (max-width: 560px) {
  .prop-actions { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .dash-card { padding: 1.1rem 1rem 1.2rem; }
  .gallery-main { aspect-ratio: 4/3; }
  .auth-points { display: none; }
  .chat-log { height: 300px; }
}
/* Forms sit directly inside portal cards (no nested card) */
.dash-card .lead-form, .auth-card .lead-form { background: none; box-shadow: none; padding: 0; border-radius: 0; }
.check-field { font-weight: 500; font-size: .95rem; }
.status-pill { text-transform: none; }
.status-pill[class*=" s-"] { text-transform: capitalize; }
.auth-card { padding: 1.4rem 1.3rem 1.5rem; }
.dash-main, .dash-side, .prop-main, .prop-side { grid-template-columns: minmax(0, 1fr); }
.action-main, .action-row .btn { white-space: normal; min-width: 0; }
@media (max-width: 560px) { .prop-actions { grid-template-columns: minmax(0, 1fr); } }
.prop-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem 1.6rem; margin-top: 1.3rem; align-items: start; }
@media (max-width: 960px) { .prop-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) { .prop-side { order: -1; } }

/* ---------- Documents area ---------- */
.docs-empty { padding: 1rem 1.1rem; border: 1px dashed var(--line); border-radius: 12px; background: #fafcff; }
.docs-empty p { margin: 0 0 .3rem; }
.dry-banner { margin: 0 0 1rem; padding: .55rem .85rem; border-radius: 10px; background: #fff4de; color: #8a5a00; font-size: .85rem; font-weight: 600; }
.doc-tx + .doc-tx { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.doc-tx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; margin-bottom: 1rem; }
.doc-tx-head h3 { margin: 0 0 .15rem; font-size: 1.05rem; color: var(--navy); }
.doc-meta { display: block; margin: 0; font-size: .82rem; color: var(--muted); }
.warn-text { color: #8a5a00; font-weight: 600; }
.doc-h { margin: 1.1rem 0 .55rem; font-size: .95rem; color: var(--navy); }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.doc-row { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; flex-wrap: wrap; }
.doc-main { display: flex; gap: .65rem; align-items: flex-start; flex: 1 1 200px; min-width: 0; }
.doc-main strong { display: block; color: var(--navy); font-weight: 600; font-size: .93rem; overflow-wrap: anywhere; }
.doc-icon { flex: 0 0 auto; width: 26px; height: 32px; border-radius: 4px; border: 1.5px solid var(--door); background: linear-gradient(135deg, transparent 72%, #dbe8ff 72%); margin-top: 2px; }
.doc-list.signed .doc-icon { border-color: var(--savings); background: linear-gradient(135deg, transparent 72%, #d4efdf 72%); }
.doc-actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.sign-box { padding: .9rem; border-radius: 14px; background: #fff8ea; border: 1px solid #f3dca8; margin-bottom: 1rem; }
.sign-box h4 { margin: 0 0 .6rem; font-size: .98rem; color: var(--navy); display: flex; align-items: center; gap: .45rem; }
.sign-box .count { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; border-radius: 999px; background: #8a5a00; color: #fff; font-size: .75rem; }
.sign-box > .doc-meta { margin-top: .6rem; }
.progress-wrap { margin: .2rem 0 .4rem; }
.progress-label { display: flex; justify-content: space-between; font-size: .85rem; color: var(--navy); font-weight: 600; margin-bottom: .35rem; }
.progress { height: 8px; border-radius: 999px; background: #eef2f8; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--door); border-radius: 999px; }
.check-items { margin-top: .5rem; font-size: .88rem; }
.check-items summary { cursor: pointer; color: var(--door); font-weight: 600; }
.check-items ul { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .3rem; }
.check-items li { display: flex; gap: .5rem; color: var(--muted); }
.check-items li.done { color: var(--navy); }
.check-items li.done span { color: var(--savings); font-weight: 700; }
.check-items li.received { color: var(--navy); }
.check-items li.received > span:first-child { color: var(--door); font-weight: 700; }
.check-items li.waiting,
.check-items li.waiting_others { color: var(--navy); }
.check-items li.waiting > span:first-child,
.check-items li.waiting_others > span:first-child { color: #b8860b; font-weight: 700; }
.check-items li.signed_review { color: var(--navy); }
.check-items li.signed_review > span:first-child { color: var(--gold-deep, #a6863e); font-weight: 700; }
.check-items li em { font-style: normal; font-weight: 600; color: var(--muted); font-size: .86em; }
.check-items li .doc-meta { display: block; margin-top: .2rem; }
.check-items li .btn { margin: .35rem .4rem 0 0; }
#docs-refresh { margin-left: auto; }
.upload-form { margin-top: 1.1rem; padding: .9rem; border-radius: 14px; background: #f6f9ff; display: grid; gap: .65rem; }
.upload-form .doc-h { margin: 0; }
.upload-form label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--navy); }
.upload-form select, .upload-form input[type=file] { font: inherit; font-size: .9rem; padding: .55rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; max-width: 100%; min-width: 0; }
.upload-form .btn { justify-self: start; }

/* ---------- Portal map search ---------- */
.portal-search { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; background: var(--white); }
.portal-search .site-header { flex: 0 0 auto; }
.portal-search .compact-header .logo-img { height: 46px; width: auto; }
.portal-search .search-app { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.search-toolbar { flex: 0 0 auto; padding: .7rem 1rem .55rem; background: var(--white); border-bottom: 1px solid var(--line); z-index: 20; }
.search-bar { display: flex; align-items: center; gap: .55rem; background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: .15rem .9rem; box-shadow: 0 6px 18px rgba(12,42,77,.06); }
.search-bar:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(43,127,255,.18); }
.search-icon { color: var(--navy); flex: 0 0 auto; }
.search-bar input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: .98rem; color: var(--ink); padding: .7rem 0; }
.search-bar input:focus { outline: none; }
.search-clear { border: 0; background: #eef2f8; width: 1.6rem; height: 1.6rem; border-radius: 50%; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--navy); }
.filter-chips { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .65rem; align-items: center; }
.chip-btn { border: 1.5px solid var(--line); background: var(--white); color: var(--navy); border-radius: 999px; padding: .38rem .85rem; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }
.chip-btn:hover, .chip-btn[aria-expanded=true] { border-color: var(--navy); }
.chip-btn.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.search-save-desk { margin-left: auto; }
.filter-panels { position: relative; z-index: 30; }
.filter-panel { position: absolute; top: 0; left: 1rem; width: min(380px, calc(100% - 2rem)); background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 1rem 1.1rem 1.1rem; }
.filter-panel h2 { font-size: 1.05rem; margin: 0 0 .7rem; }
.filter-panel h3 { font-size: .9rem; margin: 1rem 0 .4rem; color: var(--navy); }
.filter-panel .field { margin-bottom: .7rem; }
.filter-panel .field select, .filter-panel .field input { width: 100%; }
.panel-label { margin: .4rem 0 .35rem; font-size: .82rem; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; }
.seg { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .7rem; }
.seg button { border: 1.5px solid var(--line); background: var(--white); color: var(--navy); border-radius: 999px; padding: .32rem .7rem; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }
.seg button.is-on { background: var(--navy); color: var(--white); border-color: var(--navy); }
.panel-actions { display: flex; justify-content: space-between; align-items: center; gap: .7rem; margin-top: .8rem; }
.saved-search-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.saved-search-list li { display: flex; justify-content: space-between; gap: .6rem; align-items: center; }
.saved-search-list .danger { color: var(--danger, #9b1c1c); }
.search-stage { flex: 1; min-height: 0; position: relative; display: flex; }
.search-list { display: none; width: 400px; max-width: 42%; flex: 0 0 auto; overflow: auto; border-right: 1px solid var(--line); background: var(--white); }
.list-head { padding: 1rem 1rem .4rem; position: sticky; top: 0; background: var(--white); z-index: 2; }
.result-count { font-size: 1.15rem; margin: 0; color: var(--navy); }
.list-cards { padding: 0 1rem 1.2rem; display: grid; gap: .9rem; }
.search-legal { margin: 0 1rem 1.3rem; font-size: .78rem; }
.search-map-wrap { flex: 1; min-width: 0; position: relative; height: 100%; min-height: 0; }
#map { width: 100%; height: 100%; background: #e8eef6; }
.map-fabs { position: absolute; left: .85rem; bottom: 1rem; z-index: 500; display: flex; flex-direction: column; gap: .45rem; align-items: flex-start; }
.portal-search .search-map-wrap .map-fabs { bottom: calc(var(--sheet-peek, 132px) + .7rem); }
.map-fab { width: 2.6rem; height: 2.6rem; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--navy); box-shadow: 0 6px 16px rgba(12,42,77,.16); cursor: pointer; display: grid; place-items: center; }
.layers-menu { background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.layers-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: .55rem .9rem; font: inherit; font-size: .9rem; font-weight: 600; color: var(--navy); cursor: pointer; }
.layers-menu button.is-on, .layers-menu button:hover { background: #f1f5fb; }
.search-save-mobile { position: absolute; right: .85rem; bottom: calc(var(--sheet-peek, 132px) + .7rem); z-index: 500; box-shadow: 0 8px 20px rgba(12,42,77,.22); }
.search-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 600; background: var(--white); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 30px rgba(12,42,77,.16); display: flex; flex-direction: column; height: 132px; overflow: hidden; transition: height .25s ease; }
.search-sheet.is-dragging { transition: none; }
.sheet-handle { border: 0; background: none; padding: .7rem 0 .2rem; cursor: grab; display: flex; justify-content: center; }
.sheet-handle span { width: 44px; height: 5px; border-radius: 999px; background: #c9d2e0; display: block; }
.search-sheet .list-head { padding-top: .2rem; }
.search-sheet .list-cards { flex: 1; overflow: auto; padding-bottom: 1.4rem; }
.search-card.is-active { outline: 2px solid var(--door); outline-offset: -2px; }
.search-toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%); background: var(--navy); color: var(--white); padding: .7rem 1.1rem; border-radius: 999px; font-size: .9rem; font-weight: 600; z-index: 800; box-shadow: 0 10px 24px rgba(12,42,77,.25); max-width: calc(100% - 2rem); }
.adv-pin { background: none !important; border: 0 !important; }
.adv-pin span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--navy); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(12,42,77,.4); }
.adv-pin.is-active span { background: var(--door); box-shadow: 0 0 0 4px rgba(43,127,255,.28), 0 2px 8px rgba(12,42,77,.4); }
.adv-cluster { background: var(--navy); color: #fff; border-radius: 50%; display: grid; place-items: center; font-family: Poppins, sans-serif; font-weight: 700; font-size: .85rem; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(12,42,77,.3); }
.adv-popup-wrap .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow); padding: 0; }
.adv-popup { display: grid; gap: .15rem; }
.adv-popup .btn { margin-top: .5rem; justify-self: start; }
.leaflet-container a { color: var(--navy); }
@media (min-width: 960px) {
  .search-list { display: block; }
  .search-sheet, .search-save-mobile { display: none; }
  .portal-search .search-map-wrap .map-fabs { bottom: 1rem; }
  #panel-filters, #panel-price, #panel-beds, #panel-type { left: 1rem; }
}
@media (max-width: 959px) {
  .search-save-desk { display: none; }
  .search-list { display: none; }
  .filter-panel { left: .7rem; right: .7rem; width: auto; }
}

/* Deadlines + local business search */
.deadline-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.deadline-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .85rem 1rem; border: 1px solid rgba(12,42,77,.1); border-radius: 12px; background: #f8fafc; border-left: 4px solid var(--navy); }
.deadline-item.is-soon { border-left-color: #c98900; background: #fff9ee; }
.deadline-item.is-past { border-left-color: #9aa3b2; background: #f3f5f8; }
.deadline-when { display: grid; gap: .1rem; }
.deadline-date { font-weight: 600; color: var(--navy); }
.deadline-count { font-size: .85rem; font-weight: 600; color: var(--muted); }
.deadline-item.is-soon .deadline-count { color: #8a5a00; }
.deadline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; margin: .4rem 0 1rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; margin: .6rem 0 1rem; }
.chip { border: 1.5px solid rgba(12,42,77,.16); background: #f1f5fb; color: var(--navy); font: inherit; font-size: .85rem; font-weight: 600; padding: .35rem .75rem; border-radius: 999px; cursor: pointer; }
.chip:hover, .chip.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.biz-list { display: grid; gap: .65rem; }
.biz-card { display: flex; justify-content: space-between; align-items: start; gap: .8rem; flex-wrap: wrap; padding: .85rem 0; border-bottom: 1px solid rgba(12,42,77,.08); }
.biz-card.is-suggested { background: #f5f8ff; border: 1px solid rgba(43,127,255,.18); border-radius: 12px; padding: .85rem 1rem; border-bottom: 1px solid rgba(43,127,255,.18); }
.biz-actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.biz-map { height: 220px; border-radius: 12px; margin: .8rem 0; border: 1px solid rgba(12,42,77,.1); }
.local-search { margin-top: 1.4rem; padding-top: .4rem; }
.deadline-block + .deadline-block { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(12,42,77,.1); }
@media (max-width: 700px) {
  .deadline-fields { grid-template-columns: 1fr; }
}


/* Assigned agent + coordinator header */
.assign-header { margin: 0 0 1.4rem; }
.assign-pending { margin: 0 0 1.2rem; color: var(--muted); font-size: .92rem; }
.assign-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.assign-card { display: grid; grid-template-columns: 76px 1fr; gap: .95rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid rgba(12,42,77,.1); border-radius: 16px; background: #fff; border-left: 4px solid var(--navy); }
.assign-card.is-coordinator { border-left-color: #c98900; }
.assign-photo, .assign-initials { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: #e8eef6; }
.assign-initials { display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.assign-label { margin: 0 0 .15rem; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.assign-name { margin: 0; color: var(--navy); font-size: 1.15rem; font-weight: 700; }
.assign-title { margin: .15rem 0 .45rem; font-size: .9rem; font-weight: 600; color: var(--navy); }
.assign-contact { margin: 0; font-size: .88rem; display: grid; gap: .15rem; }
.assign-contact a { color: var(--navy); font-weight: 600; }
.assign-flag { margin: .35rem 0 0; font-size: .8rem; color: #8a5a00; }
.assign-admin { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid rgba(12,42,77,.1); }
.assign-admin h2 { margin-bottom: .4rem; }
.assign-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: .8rem 0 1.2rem; }
.assign-table th, .assign-table td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid rgba(12,42,77,.1); vertical-align: middle; }
.assign-table th { color: var(--navy); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.assign-table .is-pending { color: #8a5a00; font-weight: 600; }
@media (max-width: 700px) {
  .assign-grid { grid-template-columns: 1fr; }
}


/* Staff buyer preview */
.preview-banner { position: sticky; top: var(--header-h, 72px); z-index: 40; margin: 0 0 1.2rem; padding: .85rem 1.1rem; border-radius: 12px; background: #0c2a4d; color: #fff; font-size: .95rem; font-weight: 500; box-shadow: 0 8px 24px rgba(12,42,77,.18); }
.preview-banner a { color: #f2c14e; font-weight: 700; }
.staff-preview-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: .8rem 0 0; }
.staff-preview-pick { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; margin: .8rem 0 0; }
.staff-preview-pick label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.staff-preview-pick select { min-height: 2.6rem; min-width: 220px; border: 1.5px solid var(--line); border-radius: 10px; padding: .4rem .7rem; font: inherit; }
.is-buyer-preview .upload-form,
.is-buyer-preview .chat-form,
.is-buyer-preview [data-save],
.is-buyer-preview [data-cancel],
.is-buyer-preview form.lead-form button[type=submit],
.is-buyer-preview #tour-form { opacity: .55; pointer-events: none; }
.is-buyer-preview #showing-form button[type=submit] { opacity: .55; pointer-events: none; }
.msg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; max-height: 420px; overflow: auto; }
.msg { display: grid; grid-template-columns: 40px 1fr; gap: .7rem; align-items: start; }
.msg.is-mine { grid-template-columns: 1fr 40px; }
.msg.is-mine .msg-av { grid-column: 2; grid-row: 1; }
.msg.is-mine .msg-body { grid-column: 1; grid-row: 1; text-align: right; }
.msg-av { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .75rem; }
.msg-meta { margin: 0 0 .25rem; font-size: .8rem; color: var(--muted); }
.msg-text { margin: 0; padding: .7rem .85rem; border-radius: 12px; background: #f1f5fb; color: var(--ink); }
.msg.is-mine .msg-text { background: #e8f2ff; }
.msg-form { display: grid; gap: .6rem; margin-top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.unread-pill { display: inline-block; margin-left: .35rem; padding: .1rem .45rem; border-radius: 999px; background: #fff4de; color: #8a5a00; font-size: .72rem; font-weight: 700; }
.file-inactive { background: #f7f5f0; border-left: 4px solid #9aa3b2; padding: .85rem 1rem; border-radius: 12px; margin-bottom: 1rem; }

/* Staff portal calendar + tables */
.staff-welcome-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cal-head { flex-wrap: wrap; }
.cal-controls { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.seg { display: flex; background: #f1f5fb; border-radius: 999px; padding: 3px; }
.seg-btn { border: 0; background: none; border-radius: 999px; padding: .4rem .85rem; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg-btn.is-active { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(12,42,77,.12); }
.cal-nav { display: flex; gap: .4rem; }
.cal-period { font-weight: 700; color: var(--navy); margin: 0 0 .8rem; }
.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin: 0 0 1rem; padding: 0; font-size: .82rem; color: var(--muted); }
.cal-dot, .cal-proposed-swatch { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; vertical-align: -1px; margin-right: .25rem; }
.cal-proposed-swatch { border-radius: 2px; border: 2px dashed #8a5a00; background: transparent; }
.cal-dot.t-binding { background: #0c2a4d; }
.cal-dot.t-inspection { background: #1a7a4c; }
.cal-dot.t-financing { background: #c98900; }
.cal-dot.t-appraisal { background: #b5561a; }
.cal-dot.t-walkthrough { background: #6b4ea1; }
.cal-dot.t-closing { background: #1d5fc4; }
.cal-dot.t-other { background: #6b7280; }
.cal-dot.is-proposed { background: transparent; border: 2px dashed currentColor; box-sizing: border-box; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; margin-bottom: .3rem; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; }
.cal-day { display: flex; flex-direction: column; gap: .2rem; min-height: 4.4rem; border: 1px solid rgba(12,42,77,.1); border-radius: 10px; background: #fff; padding: .35rem; text-align: left; cursor: pointer; font: inherit; }
.cal-day.is-outside { opacity: .4; }
.cal-day.is-today { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.cal-day.is-selected { background: #e8f2ff; }
.cal-day.has-events { background: #f8fafc; }
.cal-num { font-weight: 700; color: var(--navy); font-size: .85rem; }
.cal-dots { display: flex; flex-wrap: wrap; gap: 2px; }
.cal-more { font-size: .68rem; color: var(--muted); }
.cal-day-detail { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(12,42,77,.1); }
.cal-event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.cal-event a { display: grid; gap: .1rem; padding: .7rem .85rem; border-radius: 10px; border-left: 4px solid var(--navy); background: #f8fafc; text-decoration: none; color: inherit; }
.cal-event.t-inspection a { border-left-color: #1a7a4c; }
.cal-event.t-financing a { border-left-color: #c98900; }
.cal-event.t-appraisal a { border-left-color: #b5561a; }
.cal-event.t-walkthrough a { border-left-color: #6b4ea1; }
.cal-event.t-closing a { border-left-color: #1d5fc4; }
.cal-event.is-proposed a { border-left-style: dashed; }
.cal-event-label { font-weight: 700; color: var(--navy); }
.cal-event-addr, .cal-event-date { font-size: .85rem; color: var(--muted); }
.staff-filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: .8rem; align-items: end; margin: 1rem 0; }
.table-wrap { overflow-x: auto; }
.staff-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.staff-table th, .staff-table td { text-align: left; padding: .65rem .5rem; border-bottom: 1px solid rgba(12,42,77,.1); vertical-align: top; }
.staff-table th { color: var(--navy); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.status-pill.stage-touring { background: #e8f2ff; color: #1d5fc4; }
.status-pill.stage-offer-started, .status-pill.stage-offer-submitted { background: #fff4de; color: #8a5a00; }
.status-pill.stage-under-contract, .status-pill.stage-inspection, .status-pill.stage-appraisal-financing { background: #e8f6ee; color: var(--savings); }
.status-pill.stage-clear-to-close { background: #e5f5ec; color: var(--savings); }
.status-pill.stage-closed { background: #eef2f8; color: var(--navy); }
.status-pill.stage-archived { background: #f3f5f8; color: #6b7280; }
.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.dl-list li { padding: .55rem .75rem; border-radius: 10px; background: #f8fafc; border-left: 4px solid var(--navy); }
.dl-list li.is-proposed { border-left-style: dashed; }
.lead-form.compact { display: grid; gap: .6rem; }
.fine { font-size: .82rem; color: var(--muted); }
.tx-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .4rem 0 0; }
@media (max-width: 800px) {
  .staff-filters { grid-template-columns: 1fr; }
  .cal-day { min-height: 3.2rem; padding: .2rem; }
}

/* Showing date + time pickers */
.field-label { display: block; font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: .35rem; }
.dt-picker { position: relative; }
.dt-pair { display: grid; grid-template-columns: 1fr 8.6rem; gap: .5rem; }
.dt-date-btn, .dt-time { width: 100%; min-height: 3rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; text-align: left; padding: 0 .85rem; }
.dt-date-btn.has-value, .dt-time:not(:disabled) { color: var(--navy); font-weight: 600; }
.dt-date-btn:focus, .dt-time:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(43,127,255,.18); }
.dt-cal { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(20.5rem, 100vw - 2rem); background: #fff; border: 1px solid rgba(12,42,77,.12); border-radius: 16px; box-shadow: 0 16px 40px rgba(12,42,77,.18); padding: .85rem; }
.dt-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .55rem; }
.dt-cal-title { margin: 0; font-weight: 700; color: var(--navy); }
.dt-cal-nav { width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: #f1f5fb; color: var(--navy); font-size: 1.2rem; cursor: pointer; }
.dt-cal-nav:hover { background: var(--navy); color: #fff; }
.dt-weekdays, .dt-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .2rem; text-align: center; }
.dt-weekdays { font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: .25rem; }
.dt-day { min-height: 2.35rem; border: 0; border-radius: 10px; background: transparent; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; }
.dt-day:hover:not(:disabled) { background: #e8f2ff; }
.dt-day.is-outside { color: #9aa3b2; font-weight: 500; }
.dt-day.is-today { box-shadow: inset 0 0 0 1.5px var(--navy); }
.dt-day.is-selected { background: var(--navy); color: #fff; }
.dt-day.is-disabled, .dt-day:disabled { color: #c5cad3; background: transparent; cursor: not-allowed; text-decoration: line-through; font-weight: 500; }
.dt-hint { margin: .4rem 0 0; }
@media (max-width: 700px) {
  .dt-row { grid-template-columns: 1fr !important; }
  .dt-pair { grid-template-columns: 1fr; }
  .dt-cal { width: 100%; }
  .dt-day { min-height: 2.7rem; }
}

.staff-gate-card { max-width: 28rem; margin: 0 0 1.5rem; }
.team-signin-note { margin-top: 1rem; }

/* Face ID / passkey */
.passkey-divider { display: flex; align-items: center; gap: .75rem; margin: 1.1rem 0 .9rem; color: #6b7a90; font-size: .85rem; }
.passkey-divider::before, .passkey-divider::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }
.passkey-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; }
.passkey-icon { width: 22px; height: 22px; flex: none; }
.passkey-hint { margin-top: .5rem; text-align: center; }
.passkey-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin: 1rem 0; padding: 1rem 1.15rem; border: 1px solid #dbe4f0; border-radius: 14px; background: #fff; }
.passkey-card-text { display: grid; gap: .2rem; flex: 1 1 240px; color: var(--navy); }
.passkey-card-text .form-fine { margin: 0; }
.passkey-msg { flex-basis: 100%; margin: 0; }
.passkey-msg.is-error { color: var(--danger); }
.passkey-msg.is-ok { color: var(--savings); }

/* Recently Closed photos (staff) */
.cp-panel { margin-top: 1.5rem; }
.cp-intro { margin: 0 0 .5rem; }
.cp-status.is-error { color: var(--danger); }
.cp-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .75rem; }
.cp-row { display: grid; grid-template-columns: 120px 1fr auto; gap: .9rem 1rem; align-items: center; padding: .75rem; border: 1px solid #dbe4f0; border-radius: 12px; background: #fff; }
.cp-thumb { width: 120px; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: var(--navy); }
.cp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-ph { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; color: #fff; text-align: center; font-size: .8rem; padding: .3rem; }
.cp-ph strong { font-size: .88rem; }
.cp-ph span { color: var(--gold-light, #e8d5a3); font-size: .72rem; }
.cp-info p { margin: 0; }
.cp-addr { font-weight: 600; color: var(--navy); }
.cp-row-msg:empty { display: none; }
.cp-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.cp-upload { cursor: pointer; position: relative; white-space: nowrap; }
.cp-upload:focus-within { outline: 3px solid #e8d5a3; outline-offset: 2px; }
@media (max-width: 640px) {
  .cp-row { grid-template-columns: 96px 1fr; }
  .cp-thumb { width: 96px; }
  .cp-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Driver's license checklist (private IDs: filenames only, never thumbnails) */
.id-lines { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.id-line { border: 1px solid #e3e8f0; border-radius: 14px; padding: 0.9rem 1rem; background: #fff; }
.id-line.is-done { border-color: #cfe6d8; background: #fbfefc; }
.id-line-head { display: flex; align-items: center; gap: 0.75rem; }
.id-line-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.id-line-title .doc-meta { margin-top: 0.1rem; }
.id-check { width: 1.6rem; height: 1.6rem; flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: #eef2f8; color: #0b2545; font-weight: 700; }
.id-line.is-done .id-check { background: #1f7a4d; color: #fff; }
.id-files { list-style: none; margin: 0.7rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.id-files li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; padding: 0.5rem 0.65rem; border-radius: 10px; background: #f6f8fc; }
.id-file-name { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; word-break: break-all; }
.id-file-actions { margin-left: auto; display: inline-flex; gap: 0.6rem; align-items: center; }
.id-upload { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 0.6rem; align-items: end; margin-top: 0.75rem; }
.id-upload label, .id-add label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; color: #0b2545; }
.id-upload select, .id-upload input[type=file], .id-add input { width: 100%; font: inherit; font-size: 0.9rem; }
.id-upload .form-error, .id-add .form-error { grid-column: 1 / -1; margin: 0; }
.id-add { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 0.6rem; align-items: end; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed #d6dde8; }
.id-add input { padding: 0.6rem 0.75rem; border: 1px solid #cfd8e3; border-radius: 10px; }
.id-remove-buyer { margin-top: 0.5rem; font-size: 0.85rem; }
@media (max-width: 760px) { .id-upload, .id-add { grid-template-columns: 1fr; } .id-file-actions { margin-left: 0; } }
.id-add-title { grid-column: 1 / -1; margin: 0; font-weight: 700; color: #0b2545; }
.id-add .opt { font-weight: 400; color: #5b6b80; }
.id-add .form-fine, .id-add .form-ok { grid-column: 1 / -1; margin: 0; }
.id-add .form-ok { color: #1f7a4d; font-size: 0.88rem; font-weight: 600; }
/* Co-buyer portal invite status on each checklist line */
.id-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; margin: 0.55rem 0 0 2.35rem; font-size: 0.85rem; }
.id-invite .status-pill { font-size: 0.72rem; padding: 0.15rem 0.55rem; }
.id-invite .doc-meta { word-break: break-all; }
.id-invite .link-btn { font-size: 0.85rem; }
.id-invite-msg.is-ok { color: #1f7a4d; font-weight: 600; }
.id-invite-msg.is-error { color: #b42318; font-weight: 600; }
@media (max-width: 760px) { .id-invite { margin-left: 0; } }
/* Brokermint "Would create" preview (staff only) */
.bm-plan .bm-mode { margin: 0 0 0.75rem; }
.bm-plan dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0 0 0.75rem; font-size: 0.92rem; }
.bm-plan dt { font-weight: 600; color: #0b2545; }
.bm-plan dd { margin: 0; word-break: break-word; }
.bm-plan ul.bm-people { margin: 0; padding-left: 1.1rem; }
.bm-plan .bm-warn { background: #fff8e6; border: 1px solid #f1d28a; border-radius: 10px; padding: 0.6rem 0.8rem; font-size: 0.88rem; margin: 0 0 0.75rem; }
.bm-plan .bm-warn ul { margin: 0.25rem 0 0; padding-left: 1.1rem; }
.bm-plan details { margin-top: 0.5rem; }
.bm-plan pre { max-height: 420px; overflow: auto; background: #0b2545; color: #e8eef7; padding: 0.8rem; border-radius: 10px; font-size: 0.78rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 640px) { .bm-plan dl { grid-template-columns: 1fr; } }

/* Showami test-mode payload preview (staff only) */
#showami details { margin-top: 0.5rem; }
#showami summary { cursor: pointer; font-weight: 600; color: #0b2545; }
#showami pre { max-height: 420px; overflow: auto; background: #0b2545; color: #e8eef7; padding: 0.8rem; border-radius: 10px; font-size: 0.78rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
#showami .doc-meta { margin-top: .35rem; }

/* ---------- Title company / lender / closing time / contract status / title package ---------- */
.contact-company { font-weight: 600; font-size: 1.05rem; color: #0c2a4d; margin: 0 0 .5rem; }
.contact-dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 .75rem; }
.contact-dl dt { color: #5b6472; font-size: .85rem; }
.contact-dl dd { margin: 0; overflow-wrap: anywhere; }
.closing-date { display: flex; flex-direction: column; gap: .1rem; margin: 0 0 .75rem; }
.closing-date strong { font-size: 1.1rem; color: #0c2a4d; }
.closing-form select, .closing-form textarea { width: 100%; }
.check-row { display: flex; align-items: flex-start; gap: .5rem; font-weight: 400; }
.check-row input { width: auto; margin-top: .25rem; }
.src-badge { display: inline-block; font-size: .7rem; font-weight: 600; padding: .05rem .4rem; border-radius: 999px; background: #eef2f7; color: #0c2a4d; vertical-align: middle; }
.src-badge.ai { background: #e8f0fe; color: #1d5fc4; }
.tc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; }
.tc-grid label { display: flex; flex-direction: column; font-size: .85rem; }
.tc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .75rem; }
.tc-scan { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: .5rem 0 .75rem; }
.file-label.inline { display: inline-flex; flex-direction: column; font-size: .85rem; }
.ok-text { color: #1a7a4c; }
.contract-progress { list-style: none; display: flex; padding: 0; margin: .25rem 0 .5rem; gap: 0; }
.contract-progress li { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; color: #8a93a1; font-size: .85rem; }
.contract-progress li::before { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: #dde3ea; z-index: 0; }
.contract-progress li:first-child::before { display: none; }
.contract-progress li.is-done::before, .contract-progress li.is-current::before { background: #0c2a4d; }
.contract-progress .cp-dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid #dde3ea; font-weight: 600; font-size: .8rem; }
.contract-progress li.is-done .cp-dot { background: #0c2a4d; border-color: #0c2a4d; color: #fff; }
.contract-progress li.is-current .cp-dot { border-color: #0c2a4d; color: #0c2a4d; }
.contract-progress li.is-current { color: #0c2a4d; font-weight: 600; }
.contract-progress .cp-label { margin-top: .35rem; text-align: center; }
.contract-row + .contract-row { border-top: 1px solid #eef2f7; margin-top: .75rem; padding-top: .75rem; }
.contract-addr { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .25rem; }
.cs-quick { display: block; margin-top: .35rem; }
.cs-quick select { font-size: .8rem; padding: .2rem .35rem; }
.cs-log li { font-size: .9rem; }
.tp-list { list-style: none; padding: 0; margin: .25rem 0 .5rem; display: grid; gap: .35rem; }
.tp-email input, .tp-email textarea { width: 100%; }
.tp-email textarea { font-family: inherit; }
@media (max-width: 760px) { .tc-grid { grid-template-columns: 1fr; } .contact-dl { grid-template-columns: 1fr; } .contact-dl dt { margin-top: .35rem; } }
/* Dashboard layout (Leslie 11/19): team bar across the top; lender + title above the helper in the side column. */
.dash .team-bar { margin: 0 0 1.25rem; }
.dash .dash-side { position: static; }
.assign-initials.is-placeholder { background: #eef2f8; color: #8a93a1; border: 2px dashed #c7d0db; }
@media (max-width: 760px) { .dash .team-bar .assign-grid { grid-template-columns: 1fr; } }
/* Fix: the staff-only buttons on the dashboard were visible to buyers because display:flex overrode [hidden]. */
.staff-preview-actions[hidden], .staff-preview-pick[hidden] { display: none; }

/* ---------- Buyer Agreement e-sign ---------- */
@font-face { font-family: "Great Vibes"; src: url("fonts/GreatVibes-Regular.ttf") format("truetype"); font-display: swap; }
.ba-wrap { max-width: 860px; display: grid; gap: 1.2rem; }
.ba-wrap > h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.ba-wrap > .eyebrow, .ba-wrap > .dash-sub, .ba-back { margin: 0; }
.ba-back a { color: var(--navy); font-weight: 600; font-size: .9rem; }
.ba-review-flag { margin: 0; background: #fff8e6; border: 1px solid #f0d9a0; color: #6b4a00; border-radius: 10px; padding: .6rem .9rem; font-size: .88rem; }
.ba-buyer { border: 1px solid rgba(12,42,77,.12); border-radius: 12px; padding: .9rem 1rem .4rem; margin: 0 0 .9rem; }
.ba-buyer legend { font-weight: 700; color: var(--navy); padding: 0 .35rem; font-size: .95rem; }
.ba-buyer input[readonly] { background: #f5f7fb; color: #44546a; }
.btn-link { background: none; border: 0; padding: 0 0 .6rem; color: #b42318; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; text-decoration: underline; }
.ba-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .9rem; }
.ba-pages { display: grid; gap: 1rem; max-height: 75vh; overflow-y: auto; background: #f2f5fa; border-radius: 12px; padding: .8rem; border: 1px solid rgba(12,42,77,.08); }
.ba-page { margin: 0; }
.ba-page-canvas { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 2px 10px rgba(12,42,77,.12); border-radius: 4px; }
.ba-page figcaption { text-align: center; font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.ba-consent { background: #f5f8fd; border: 1px solid rgba(12,42,77,.1); border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1rem; }
.ba-consent-title { font-weight: 700; color: var(--navy); margin: 0 0 .35rem; }
.ba-consent p { font-size: .9rem; margin: 0 0 .7rem; color: #33445c; }
.ba-sig-preview { border-bottom: 2px solid var(--navy); padding: .3rem .4rem .2rem; margin: .4rem 0 .2rem; min-height: 4.2rem; display: flex; flex-direction: column; justify-content: flex-end; }
.ba-sig-preview span { font-family: "Great Vibes", cursive; font-size: 2.6rem; line-height: 1; color: var(--navy); }
.ba-sig-preview small { font-size: .72rem; color: var(--muted); }
.ba-cosigner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; align-items: center; width: 100%; border: 1px solid rgba(12,42,77,.1); border-radius: 12px; padding: .7rem .9rem; }
.ba-cosigner p { margin: 0; }
.ba-card-list { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .35rem; font-size: .92rem; }
.ba-card-list li { display: flex; justify-content: space-between; gap: .6rem; }
.ba-warn { background: #fff4de; color: #8a5a00; border-radius: 10px; padding: .55rem .8rem; font-size: .9rem; margin: 0 0 .8rem; }
.ba-audit { font-size: .82rem; color: #44546a; margin: .6rem 0 0; padding-left: 1.1rem; }
.btn-small { padding: .45rem .9rem; font-size: .85rem; }
/* Dashboard: first two quick links stand out; homes for sale shows one row (swipe on mobile) */
.dash-jump a.jump-primary { background: var(--navy); color: #fff; }
.dash-jump a.jump-primary:hover { background: var(--navy-3, #1b3d66); color: #fff; }
.listing-grid.homes-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.homes-more { margin: 1rem 0 0; text-align: center; }
@media (max-width: 720px) {
  .listing-grid.homes-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .8rem; padding-bottom: .5rem; -webkit-overflow-scrolling: touch; }
  .listing-grid.homes-row > * { flex: 0 0 82%; scroll-snap-align: start; }
}
/* AI home analysis (property page) */
.ai-analysis { border-top: 4px solid var(--navy); }
.aia-summary { font-size: 1.02rem; color: #1d2c42; margin: 0 0 .8rem; }
.aia-h { font-size: .95rem; color: var(--navy); margin: 1rem 0 .4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.aia-tag { font-size: .7rem; font-weight: 700; background: #fff4de; color: #8a5a00; border-radius: 999px; padding: .12rem .55rem; }
.aia-list { margin: 0; padding-left: 1.15rem; display: grid; gap: .3rem; font-size: .93rem; color: #2a3a52; }
.aia-ppsf { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 .5rem; }
.aia-ppsf span { background: #f1f5fb; border-radius: 10px; padding: .35rem .7rem; font-size: .85rem; color: #33445c; }
.aia-ppsf .aia-diff { background: var(--navy); color: #fff; font-weight: 600; }
.aia-est { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.1rem; }
.aia-est-box { border: 1px solid rgba(12,42,77,.1); border-radius: 12px; padding: .8rem .9rem; background: #fbfcfe; }
.aia-label { margin: 0; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.aia-big { margin: .15rem 0 .4rem; font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.aia-big small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.aia-inputs { gap: .5rem; } .aia-inputs .field { margin-bottom: .3rem; } .aia-inputs input { padding: .4rem .5rem; }
.aia-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
@media (max-width: 720px) { .aia-est { grid-template-columns: 1fr; } .aia-cta .btn { flex: 1 1 100%; text-align: center; } }
.contract-progress .cp-label { text-align: center; line-height: 1.2; padding: 0 .2rem; }
/* Collapsible documents list per property */
.docs-collapse { border: 1px solid rgba(12,42,77,.1); border-radius: 12px; margin: .8rem 0; }
.docs-toggle { width: 100%; display: flex; align-items: center; gap: .6rem; background: #f6f8fc; border: 0; border-radius: 12px; padding: .7rem .9rem; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; text-align: left; }
.docs-collapse.is-open .docs-toggle { border-radius: 12px 12px 0 0; }
.docs-toggle:focus-visible { outline: 3px solid #6b8fd6; outline-offset: 2px; }
.docs-sum { flex: 1; }
.docs-need { color: #8a5a00; background: #fff4de; border-radius: 999px; padding: .1rem .5rem; font-size: .85rem; }
.docs-act { font-size: .82rem; color: #44546a; }
.docs-chev { width: .55rem; height: .55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; margin-top: -.2rem; }
.docs-collapse.is-open .docs-chev { transform: rotate(-135deg); margin-top: .2rem; }
.docs-body { padding: .3rem .9rem .8rem; }

/* Messages: one bordered card per property (Nov 19) */
.msg-card { border: 1px solid #d7e0ec; border-radius: 14px; background: #fff; margin: 0 0 .9rem; overflow: hidden; }
.msg-card[open] { box-shadow: 0 2px 10px rgba(12, 42, 77, .06); }
.msg-card.is-archived { background: #f7f8fa; border-style: dashed; }
.msg-card-head { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; padding: .85rem 1rem; background: #f4f7fb; border-bottom: 1px solid transparent; }
.msg-card[open] > .msg-card-head { border-bottom-color: #d7e0ec; }
.msg-card-head::-webkit-details-marker { display: none; }
.msg-card-addr { font-weight: 700; color: var(--navy); flex: 1 1 14rem; }
.msg-card-chev { width: .6rem; height: .6rem; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); margin-left: auto; transition: transform .15s; }
.msg-card[open] .msg-card-chev { transform: rotate(-135deg); }
.msg-card .msg-mount { padding: 1rem; }
.msg-card.is-archived .msg-card-addr { color: #5a6678; }
.status-pill.stage-archived { background: #eceff3; color: #4a5568; }
.contract-row.is-cancelled { border-top: 1px solid #e3e8ef; padding-top: .6rem; margin-top: .6rem; }

/* Staff: Archived section + lender manual entry */
.archived-section { margin-top: 1.2rem; border: 1px solid #d7e0ec; border-radius: 12px; background: #fafbfc; }
.archived-section > summary { cursor: pointer; padding: .8rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.archived-section .archived-title { font-weight: 700; color: var(--navy); }
.archived-section .table-wrap { padding: 0 1rem 1rem; }
.unread-pill.muted { background: #e6eaf0; color: #3d4a5c; }
.tc-manual { margin-top: .6rem; }
.tc-manual > summary { cursor: pointer; font-weight: 600; color: var(--navy); }

/* Submitted offer (copy from Brokermint, staff approved) */
.so-box { margin: .5rem 0 .75rem; border: 1px solid #d8dee9; border-left: 4px solid #c9a24a; border-radius: 10px; padding: .25rem .75rem; background: #fffdf7; }
.so-box .doc-list { margin: 0; }
.so-pick .item-list li label { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; cursor: pointer; }
.so-list .item { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }

/* Saved homes + compare (Nov 19 2026) */
.fav-btn { display: inline-flex; align-items: center; gap: .35rem; }
.fav-btn svg { fill: none; stroke: currentColor; stroke-width: 2; }
.fav-btn svg path { fill: transparent; stroke: currentColor; stroke-width: 1.8; }
.fav-btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.fav-btn[aria-pressed="true"] svg path { fill: var(--gold); stroke: var(--gold); }
.fav-btn.fav-compact { padding: .25rem .6rem; font-size: .78rem; min-height: 32px; }
.item-side { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.saved-count { font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: .35rem; }
.saved-addr-card .listing-body, .saved-card .listing-body { padding-top: 1rem; }
.saved-nophoto { display: flex; align-items: center; justify-content: center; background: #eef1f6; color: var(--muted); font-size: .82rem; text-align: center; padding: 1rem; aspect-ratio: 16/10; }
.saved-card.is-picked { outline: 2px solid var(--navy); outline-offset: -2px; }
.cmp-pick { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .86rem; color: var(--navy); margin: .3rem 0 .5rem; cursor: pointer; }
.cmp-pick input { width: 18px; height: 18px; accent-color: var(--navy); }
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e6eaf0; border-radius: 12px; }
.cmp-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 620px; font-size: .9rem; }
.cmp-table th, .cmp-table td { padding: .7rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid #eef1f6; }
.cmp-table thead th { background: #f5f7fa; font-weight: 600; color: var(--navy); min-width: 170px; }
.cmp-table thead th img { display: block; width: 100%; max-width: 220px; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; margin-bottom: .4rem; }
.cmp-table thead th a { color: var(--navy); }
.cmp-table tbody th { position: sticky; left: 0; background: #fff; color: var(--muted); font-weight: 600; width: 140px; min-width: 120px; z-index: 1; }
.cmp-table thead th:first-child { position: sticky; left: 0; z-index: 2; min-width: 120px; }
.cmp-table td { font-weight: 600; color: var(--ink); }
.cmp-table td.cmp-best { color: var(--savings); }
.cmp-table td.cmp-best::after { content: " ●"; font-size: .6rem; vertical-align: middle; }
.cmp-na { color: #9aa3af; font-weight: 500; }
.cmp-ai td { font-weight: 400; font-size: .86rem; line-height: 1.5; }
.cmp-ai td p { margin: 0 0 .4rem; }
.cmp-ai ul { margin: 0 0 .4rem; padding-left: 1.1rem; }
.cmp-ai-h { font-weight: 600; color: var(--navy); margin-top: .4rem !important; }
.cmp-ai-ppsf { color: var(--navy); font-weight: 500; }
.cmp-table tfoot td { font-size: .78rem; color: var(--muted); font-weight: 400; border-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Staff dashboard (Nov 19 2026) */
.sd-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; flex-wrap: wrap; }
.sd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.sd-kpi { background: #fff; border: 1px solid rgba(12,42,77,.09); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem; }
.sd-kpi-label { margin: 0; color: var(--muted); font-weight: 600; font-size: .82rem; }
.sd-kpi-num { margin: .15rem 0; font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.sd-kpi-sub { margin: 0; font-size: .8rem; color: var(--muted); }
.sd-commission { margin-bottom: 1.5rem; border-color: var(--gold-light); }
.sd-commission .dash-card-head h2 { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.sd-comm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.sd-comm-grid .sd-kpi { box-shadow: none; background: #fbf8f0; border-color: var(--gold-light); }
.sd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; margin-bottom: 1.5rem; align-items: start; }
#sd-root > .dash-card { margin-bottom: 1.5rem; }
.sd-status-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.sd-status { background: #f5f7fa; border-radius: 999px; padding: .3rem .8rem; font-size: .84rem; color: var(--navy); }
.sd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sd-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.sd-table th, .sd-table td { text-align: left; padding: .6rem .6rem; border-bottom: 1px solid #eef1f6; vertical-align: top; }
.sd-table thead th { color: var(--muted); font-weight: 600; font-size: .8rem; white-space: nowrap; }
.sd-table tbody th { font-weight: 600; color: var(--navy); }
.sd-table small { display: block; color: var(--muted); font-weight: 400; font-size: .76rem; }
.sd-table td { white-space: nowrap; }
.sd-table .sd-muted th, .sd-table .sd-muted td { color: var(--muted); font-weight: 400; }
.status-pill.sd-test { background: #f3f5f8; color: #6b7280; font-size: .7rem; }
@media (max-width: 900px) { .sd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sd-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .sd-kpi-num { font-size: 1.6rem; } .sd-comm-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  #sd-files thead { display: none; }
  #sd-files tr { display: block; padding: .7rem 0; border-bottom: 1px solid #eef1f6; }
  #sd-files tbody th, #sd-files td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .2rem 0; white-space: normal; }
  #sd-files tbody th { display: block; padding-bottom: .4rem; }
  #sd-files td::before { content: attr(data-label); color: var(--muted); font-weight: 500; flex-shrink: 0; white-space: nowrap; }
  #sd-files td small { display: inline; margin-left: .3rem; }
  #sd-files td { text-align: right; }
}
.cmp-best-key { color: var(--savings); font-size: .7rem; }

/* Start an offer: inspection + title-company questions */
.offer-fieldset { border: 0; margin: 0 0 1rem; padding: 0; }
.offer-fieldset legend { font-weight: 650; font-size: 0.9rem; margin-bottom: 0.45rem; color: var(--navy); padding: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem .7rem; margin-bottom: .55rem; }
.choice { display: flex; align-items: flex-start; gap: .5rem; margin: 0; font-weight: 500; color: var(--ink); cursor: pointer; }
.choice input { width: auto; margin: .2rem 0 0; accent-color: var(--navy); flex-shrink: 0; }
.title-options { display: grid; gap: .45rem; margin: .35rem 0 .55rem; }
.title-opt { border: 1.5px solid var(--line); border-radius: 10px; padding: .65rem .75rem; background: #fff; }
.title-opt:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(43,127,255,.18); }
.title-opt small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; margin-top: .15rem; }
.rec-note { margin: 0 0 .7rem; }
.of-preapp-ack { display: flex; width: 100%; max-width: 100%; min-width: 0; margin: .15rem 0 .7rem; align-items: flex-start; white-space: normal; }
.of-preapp-ack span { display: block; flex: 1 1 0; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: break-word; word-wrap: break-word; line-height: 1.45; }
#of-preapp-wrap, .offer-fieldset, #offer-form { min-width: 0; max-width: 100%; overflow: visible; }
#of-preapp-legend { line-height: 1.45; white-space: normal; overflow-wrap: break-word; max-width: 100%; display: block; float: none; width: 100%; }
.of-preapp-q-row { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 .35rem; max-width: 100%; min-width: 0; }
#of-preapp-q { margin: 0; font-weight: 600; color: var(--navy); }
#of-preapp-note, #of-preapp-cash { margin: .15rem 0 0; }
.of-no-tours { margin: 0 0 1rem; }
.of-home-summary { margin: .35rem 0 0; color: var(--muted); line-height: 1.45; }
.info-tip-btn {
  width: 1.35rem; height: 1.35rem; border-radius: 50%; border: 1.5px solid var(--navy);
  background: var(--navy); color: #fff; font: 700 .78rem/1 Poppins, sans-serif;
  cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-tip-btn:hover, .info-tip-btn:focus-visible { background: #fff; color: var(--navy); }
.info-tip-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.info-tip-pop {
  display: none; flex: 1 0 100%; box-sizing: border-box; width: 100%;
  background: var(--navy); color: #fff; font-family: Poppins, sans-serif;
  font-size: .82rem; font-weight: 400; line-height: 1.5;
  padding: .75rem .9rem; border-radius: 10px; box-shadow: var(--shadow);
}
.of-preapp-q-row.is-open .info-tip-pop { display: block; }

.offer-item .item-meta { overflow-wrap: anywhere; }
.offer-terms { display: grid; gap: .55rem .9rem; margin: 0; }
.offer-terms div { min-width: 0; }
.offer-terms dt { font-size: .78rem; font-weight: 600; color: var(--muted); margin: 0; }
.offer-terms dd { margin: .1rem 0 0; color: var(--ink); }
@media (min-width: 700px) { .offer-terms { grid-template-columns: 1fr 1fr; } }

/* Staff reports and file payouts (Nov 20 2026) */
.sr-toolbar { margin-bottom: 1.2rem; padding: 1.1rem 1.2rem 1.2rem; display: grid; gap: .85rem; }
.sr-presets { display: flex; flex-wrap: wrap; gap: .45rem; }
.sr-presets .btn.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.sr-fields { display: flex; flex-wrap: wrap; gap: .8rem 1.1rem; align-items: end; }
.sr-fields label { display: grid; gap: .25rem; font-size: .82rem; font-weight: 600; color: var(--navy); }
.sr-fields input[type="date"], .sr-fields select { min-height: 2.5rem; border: 1.5px solid var(--line); border-radius: 10px; padding: .35rem .6rem; font: inherit; }
.sr-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
#sr-root > .dash-card { margin-bottom: 1.5rem; }
#sr-kpis { margin-bottom: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#assignment select { display: block; width: 100%; margin: .15rem 0 .7rem; min-height: 2.5rem; border: 1.5px solid var(--line); border-radius: 10px; padding: .35rem .6rem; font: inherit; }
.po-price-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .2rem 0 .35rem; }
.po-price-row input { flex: 1 1 140px; min-height: 2.5rem; border: 1.5px solid var(--line); border-radius: 10px; padding: .35rem .6rem; font: inherit; }
@media (max-width: 700px) { #sr-kpis { grid-template-columns: 1fr; } }
@media print {
  .site-header, .site-footer, .sr-no-print, .skip-link, .staff-welcome-actions, #staff-gate, #staff-signin { display: none !important; }
  body.portal-dash, .portal-page { background: #fff; }
  .dash-card, .sd-kpi { box-shadow: none; border-color: #ddd; break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  #sr-root { display: block !important; }
}

.team-row-actions { white-space: nowrap; }
.team-row-actions .link-btn { margin-right: .55rem; }
.team-checks { display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem; padding-bottom: .2rem; }
.team-checks .check { font-size: .9rem; }
#team-ok { color: #0c2a4d; font-weight: 600; }
@media (max-width: 800px) {
  .team-row-actions { white-space: normal; }
}

#walkthrough-card .closing-date, #walkthrough-staff .closing-date { margin-bottom: .5rem; }

.team-roster-name { display: flex; align-items: center; gap: .7rem; }
.team-roster-photo {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  background: #e8edf3; flex: 0 0 40px;
}
.team-roster-photo.is-empty { display: inline-block; }
.team-photo-edit { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.team-photo-edit img {
  width: 96px; height: 96px; border-radius: 12px; object-fit: cover;
  border: 1px solid #d5dae3; background: #f5f7fa;
}

/* Live IDX search on the buyer portal and the map search page */
.dash-live-search, .search-live-slot { margin: 0 0 1rem; }
.search-live-slot { padding: 0 0 0.6rem; }


/* One-tap showing confirm and save-home handoff from IDX */
.confirm-showing-card { max-width: 36rem; }
.confirm-dl { margin: 0 0 1rem; display: grid; gap: 0.85rem; }
.confirm-dl > div { display: grid; gap: 0.15rem; }
.confirm-dl dt { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: #5a6573; font-weight: 600; }
.confirm-dl dd { margin: 0; font-size: 1.05rem; color: #0c2a4d; font-weight: 600; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1rem; }
.confirm-actions .btn-block { width: auto; flex: 1 1 16rem; }
#confirm-done { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1rem; }
#confirm-done[hidden] { display: none; }


/* Floating team-messages chat widget */
.tm-widget { z-index: 180; font-family: inherit; }
.tm-fab {
  position: fixed;
  right: 1.15rem;
  bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
  width: 3.55rem;
  height: 3.55rem;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 28px rgba(12, 42, 77, 0.32);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 181;
}
.tm-fab:hover { background: var(--navy-2); }
.tm-fab:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.tm-fab-icon { width: 1.5rem; height: 1.5rem; display: block; }
.tm-badge {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.32rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px #fff;
  line-height: 1;
}
.tm-badge[hidden] { display: none; }
.tm-widget.is-open .tm-fab { display: none; }
.tm-panel {
  position: fixed;
  right: 1.15rem;
  bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
  width: 360px;
  height: 520px;
  max-width: calc(100vw - 1.6rem);
  max-height: calc(100vh - 2.4rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(12, 42, 77, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 182;
}
.tm-panel[hidden] { display: none; }
.tm-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 0.8rem;
  min-height: 3.4rem;
  flex: 0 0 auto;
}
.tm-head-text { flex: 1; min-width: 0; }
.tm-head h2 {
  margin: 0;
  font-size: 1.02rem;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tm-sub {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tm-sub[hidden] { display: none; }
.tm-back, .tm-min {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  flex: 0 0 auto;
}
.tm-back:hover, .tm-min:hover { background: rgba(255, 255, 255, 0.22); }
.tm-back[hidden] { display: none; }
.tm-threads {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #f6f8fc;
  padding: 0.55rem;
}
.tm-threads[hidden] { display: none; }
.tm-thread-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  border: 0;
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  margin: 0 0 0.45rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(12, 42, 77, 0.06);
  font: inherit;
  color: var(--navy);
}
.tm-thread-item:hover, .tm-thread-item:focus-visible { background: #eef3fb; }
.tm-thread-item.is-archived { opacity: 0.85; }
.tm-thread-buyer { display: block; font-weight: 700; font-size: 0.92rem; }
.tm-thread-addr { font-size: 0.86rem; font-weight: 600; color: var(--navy); line-height: 1.35; }
.tm-thread-meta { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.tm-unread {
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
}
.tm-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tm-chat[hidden] { display: none; }
.tm-log { flex: 1; min-height: 0; overflow-y: auto; padding: 0.7rem 0.8rem 1rem; background: #f6f8fc; }
.tm-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  padding: 0.65rem 0.7rem;
  background: #fff;
  border-top: 1px solid var(--line);
  align-items: end;
  flex: 0 0 auto;
}
.tm-form[hidden] { display: none; }
.tm-form textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-size: 0.9rem;
  resize: none;
  max-height: 96px;
  min-height: 2.5rem;
  color: var(--ink);
}
.tm-form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.18); }
.tm-form .form-error { grid-column: 1 / -1; margin: 0; }
.tm-send { padding: 0.55rem 1rem; }
.tm-empty { margin: auto; padding: 1.6rem 1.2rem; text-align: center; color: var(--muted); font-size: 0.92rem; }
.tm-empty[hidden] { display: none; }
.tm-msg-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.tm-readonly { margin: 0; padding: 0.6rem 0.8rem 0.85rem; background: #fff; border-top: 1px solid var(--line); font-size: 0.85rem; }
.tm-widget .msg.is-mine .msg-text { background: var(--navy); color: #fff; }
.tm-widget .msg.is-mine .msg-av { background: var(--navy); color: #fff; }
.tm-log .msg-list { max-height: none; overflow: visible; gap: 0.65rem; }

@media (max-width: 640px) {
  .tm-fab {
    right: 1rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
  .tm-panel {
    inset: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    border: 0;
  }
}

/* Compact buyer dashboard (less scrolling). Scoped so other portal pages stay unchanged. */
.portal-page.dash-compact { padding-bottom: 6.5rem; }
.dash-compact .dash-welcome { align-items: flex-end; margin-bottom: 0.85rem; gap: 1rem; }
.dash-compact .dash-welcome h1 { font-size: clamp(1.55rem, 3.4vw, 2.15rem); margin-bottom: 0.1rem; }
.dash-compact #welcome-team { display: none; }
.dash-compact.is-staff-view #welcome-team { display: block; margin: 0 0 0.4rem; }
.dash-compact .dash-sub { margin: 0 0 0.4rem; }
.dash-compact .dash-note { margin: 0 0 0.65rem; }
.dash-compact .dash-grid { gap: 1rem; }
.dash-compact .dash-main, .dash-compact .dash-side { gap: 1rem; }
.dash-compact .dash-card { padding: 0.95rem 1.05rem 1rem; }
.dash-compact .dash-card-head { margin-bottom: 0.55rem; gap: 0.6rem; align-items: center; }
.dash-compact .dash-card h2 { font-size: 1.08rem; }
.dash-compact .dash-card.is-collapsed { padding-bottom: 0.7rem; }
.dash-compact .dash-card.is-collapsed > .dash-card-head { margin-bottom: 0; }
.dash-compact .card-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.15rem 0.15rem 0.15rem 0.4rem;
  border-radius: 999px;
}
.dash-compact .card-toggle:hover { background: #f1f5fb; }
.dash-compact .card-toggle:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.dash-compact .card-toggle .docs-chev {
  width: 0.55rem; height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  display: inline-block;
  margin-bottom: 0.2rem;
}
.dash-compact .dash-card.is-collapsed .card-toggle .docs-chev { transform: rotate(-45deg); margin-bottom: 0; }

.dash-summary {
  display: grid;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid rgba(12,42,77,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.95rem 1.1rem 1rem;
  margin: 0 0 0.85rem;
}
.dash-summary-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.dash-summary-next {
  margin: 0.2rem 0 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.dash-summary-context {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.dash-summary-action { margin: 0.15rem 0 0; }
.dash-summary-action .btn { min-height: 2.6rem; padding: 0.55rem 1.15rem; }
.dash-compact .dash-welcome { margin-bottom: 0.7rem; }

.dash-completed {
  background: var(--white);
  border: 1px solid rgba(12,42,77,.09);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 0 1rem;
  overflow: hidden;
}
.dash-completed-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  background: #f7f9fc;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
  padding: 0.75rem 1rem;
  cursor: pointer;
}
.dash-completed-toggle:hover { background: #eef2f8; }
.dash-completed-toggle:focus-visible { outline: 3px solid var(--gold-light); outline-offset: -3px; }
.dash-completed-count {
  display: inline-flex;
  min-width: 1.3rem;
  justify-content: center;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: #e5f5ec;
  color: var(--savings);
  font-size: 0.75rem;
  font-weight: 700;
}
.dash-completed-toggle .docs-chev {
  margin-left: auto;
  width: 0.55rem; height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  display: inline-block;
}
.dash-completed.is-open .dash-completed-toggle .docs-chev { transform: rotate(45deg); margin-bottom: 0.15rem; }
.dash-completed-body { display: grid; gap: 0.75rem; padding: 0.75rem; }
.dash-completed-body[hidden] { display: none; }
.dash-completed-body > .dash-card { box-shadow: none; margin: 0; }

/* One-line driver’s license row once uploaded. */
.dash-compact #drivers-license.ids-received.is-collapsed {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.dash-compact #drivers-license.ids-received.is-collapsed .dash-card-head { margin: 0; }
.dash-compact #drivers-license.ids-received #ids-title { font-size: 0.98rem; font-weight: 600; }
.dash-compact #ids-title .ids-check { color: var(--savings); font-weight: 700; margin-left: 0.15rem; }

/* When the floating messages widget is present, hide the leftover inline card. */
.dash-compact:has(.tm-widget) #messages.dash-card { display: none; }

.dash-compact .assign-header { margin: 0; }
.dash-compact #assigned-team.is-collapsed .assign-grid { display: none; }

@media (max-width: 760px) {
  .portal-page.dash-compact { padding-bottom: 6.25rem; }
  .dash-compact .dash-card { padding: 0.85rem 0.85rem 0.95rem; }
  .dash-summary { padding: 0.85rem 0.9rem; }
  .dash-summary-next { font-size: 1.08rem; }
}

/* Staff deadline review: approved files collapse and move to the bottom of the list. */
.deadline-group-h {
  margin: 1.6rem 0 .7rem;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted, #5b6472);
}
.deadline-review-body {
  overflow: hidden;
  max-height: 2400px;
  opacity: 1;
  transition: max-height .35s ease, opacity .25s ease;
}
.deadline-review.is-collapsed .deadline-review-body {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}
.deadline-review-toggle {
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.deadline-review-toggle:focus-visible {
  outline: 2px solid var(--navy, #0b1f4d);
  outline-offset: 3px;
}
.deadline-review-who { flex: 1; min-width: 0; }
.deadline-review-name {
  display: block;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy, #0b1f4d);
  line-height: 1.25;
}
.deadline-review-flags { flex: 0 0 auto; }
.deadline-review-chevron {
  flex: 0 0 auto;
  width: .5rem;
  height: .5rem;
  margin-left: .15rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s ease;
  opacity: .7;
}
.deadline-review.is-collapsed .deadline-review-chevron {
  transform: rotate(-45deg);
}
.deadline-review.is-approved.is-collapsed {
  padding-top: .85rem;
  padding-bottom: .85rem;
}
.deadline-review.is-approved.is-collapsed .dash-card-head { margin: 0; }
.deadline-next { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin: 0 0 1rem; }

/* Principal-only offer activity and net after payouts on the staff dashboard. */
.sd-net-label { margin: .85rem 0 0; color: var(--navy, #0c2a4d); font-weight: 650; font-size: .82rem; }
.sd-net-num { font-size: 1.45rem !important; }
.sd-offer-activity { margin-bottom: 1.5rem; border-color: var(--gold-light, #e6d7a8); }
.sd-offer-activity .dash-card-head h2 { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.sd-oa-legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 0 0 .85rem; font-size: .8rem; color: var(--muted, #5b6472); }
.sd-oa-legend i { display: inline-block; width: .85rem; height: .45rem; border-radius: 2px; margin-right: .35rem; vertical-align: middle; }
.sd-oa-row { display: grid; grid-template-columns: 8.75rem minmax(0, 1fr); gap: .25rem .75rem; align-items: center; margin: 0 0 .4rem; }
.sd-oa-month { font-size: .8rem; color: var(--navy, #0c2a4d); font-weight: 600; }
.sd-oa-bars { display: flex; flex-direction: column; gap: 2px; min-height: 1.15rem; justify-content: center; }
.sd-oa-bar { display: block; height: 5px; border-radius: 99px; background: var(--navy, #0c2a4d); max-width: 100%; }
.sd-oa-bar-started { background: var(--navy, #0c2a4d); }
.sd-oa-bar-offers { background: var(--gold, #c4a35a); }
.sd-oa-bar-contracts { background: #7b8ba3; }
.sd-offer-activity .sd-table { font-size: .9rem; }
.sd-offer-activity .sd-table-wrap { margin-top: .6rem; }
@media (max-width: 640px) {
  .sd-oa-row { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .sd-oa-month { font-size: .75rem; }
}

/* Collapsible Created in Brokermint card on staff file pages. */
#brokermint-create.is-collapsed { padding-bottom: 0.7rem; }
#brokermint-create.is-collapsed > .dash-card-head { margin-bottom: 0; }
#brokermint-create.is-collapsed #bm-create-root { display: none; }
#brokermint-create .card-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.15rem 0.15rem 0.15rem 0.4rem;
  border-radius: 999px;
}
#brokermint-create .card-toggle:hover { background: #f1f5fb; }
#brokermint-create .card-toggle:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
#brokermint-create .card-toggle .docs-chev {
  width: 0.55rem; height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  display: inline-block;
  margin-bottom: 0.2rem;
}
#brokermint-create.is-collapsed .card-toggle .docs-chev { transform: rotate(-45deg); margin-bottom: 0; }
