/* EstateHub — staff shell (topbar, sidebar, nav, search, assistant, dashboard, pipeline). After base.css; staff pages only. */
/* ---------------------------------------------------------------- shell */
.topbar {
  position: sticky; top: 0; z-index: 40; height: calc(var(--top-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 12px 0; display: flex; align-items: center; gap: 8px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.wordmark img, .wordmark .ab-mark { height: 28px; width: auto; display: block; }
.wordmark b { font: 600 1.18rem/1 var(--serif); letter-spacing: -.02em; font-variation-settings: "opsz" 48; }
.topbar .title { font-weight: 600; font-size: .9rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; position: relative;
  color: var(--ink-2); background: transparent; border: 1px solid transparent; cursor: pointer;
}
.icon-btn:hover { background: var(--surface); border-color: var(--line); }
.dot { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }

.layout { display: block; }
.sidebar { display: none; }
.main { padding: 18px 16px calc(var(--bottom-h) + 32px + env(safe-area-inset-bottom, 0px)); max-width: 1240px; margin: 0 auto; }

.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.bottomnav a, .bottomnav button {
  display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted);
  background: none; border: 0; padding: 6px 0; cursor: pointer; position: relative; font-family: inherit;
}
.bottomnav a.active { color: var(--brand); font-weight: 800; }
.bottomnav a.active::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); } /* current tab: bar + weight + aria-current, not colour alone */
.bottomnav .dot { top: 0; right: calc(50% - 22px); }
.fab {
  width: 52px; height: 52px; border-radius: 50%; margin-top: -22px; display: grid; place-items: center;
  background: var(--brand); color: #fff; box-shadow: 0 8px 20px -6px rgba(31, 90, 66, .55), 0 0 0 5px var(--paper);
}

@media (min-width: 1024px) {
.bottomnav { display: none; }
.layout { display: grid; grid-template-columns: var(--side-w) 1fr; }
.sidebar {
    display: flex; flex-direction: column; position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h));
    overflow-y: auto; padding: 18px 14px; border-right: 1px solid var(--line);
  }
.main { padding: 30px 36px 56px; width: 100%; }
.topbar { padding: 0 22px 0 20px; }
.topbar .title { padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--line-2); }
.hide-desktop { display: none !important; }
}
@media (max-width: 1023px) {.hide-mobile { display: none !important; } }

/* sidebar — a few grouped, collapsible sections */
.side-link {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; color: var(--ink-2); font-weight: 500; font-size: 14px;
}
.side-link .icon { width: 18px; height: 18px; color: var(--muted); }
.side-link:hover { background: rgba(28, 34, 30, .045); color: var(--text); }
.side-link.active { background: var(--surface); color: var(--text); font-weight: 650; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(28,34,30,.05); }
.side-link.active .icon { color: var(--brand); }
.side-link .count { margin-left: auto; font-size: 11.5px; font-weight: 700; background: var(--brand); color: #fff; padding: 1px 7px; border-radius: 10px; }
.side-group { margin-top: 14px; }
.side-group > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); padding: 6px 10px; border-radius: 8px;
}
.side-group > summary::-webkit-details-marker { display: none; }
.side-group > summary:hover { color: var(--muted); }
.side-group > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: 4px; }
.side-group[open] > summary::after { transform: rotate(45deg); }
.side-foot { margin-top: auto; padding: 14px 10px 2px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.side-foot b { color: var(--text); font-weight: 650; display: block; }

.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.stat .n { font: 500 1.9rem/1.1 var(--serif); letter-spacing: -.02em; font-variation-settings: "opsz" 72; }
.stat .l { font-size: .8rem; color: var(--muted); }
.stat.ok .n { color: var(--ok); }.stat.warn .n { color: var(--warn); }.stat.bad .n { color: var(--bad); }.stat.brand .n { color: var(--brand); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) {.stats { grid-template-columns: repeat(4, 1fr); } }
/* tabs / segmented */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.tabs a { flex: none; padding: 7px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 13px; background: var(--surface); }
.tabs a.active { color: #fff; border-color: var(--brand); background: var(--brand); }

/* tables (desktop), stacked on mobile */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: rgba(31, 90, 66, .035); }

/* inbox task */
.task { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task .prio { width: 3px; align-self: stretch; border-radius: 3px; background: var(--line-2); flex: none; }
.task .prio.p3 { background: var(--warn); }.task .prio.p4 { background: var(--bad); }
.task .grow { flex: 1; min-width: 0; }
.task .t { font-weight: 650; overflow-wrap: anywhere; }
.task .grow, .row .grow { overflow: hidden; }
.task-btns { display: flex; gap: 6px; flex: none; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 12px; font-weight: 650; text-align: center; }
.quick:hover { border-color: var(--brand); }
.quick .icon { color: var(--brand); width: 24px; height: 24px; }
/* search */
.search { position: relative; }
.search input { padding-left: 40px; min-height: 40px; border-radius: var(--radius-sm); background: var(--surface); font-size: 14px; }
.search .icon { position: absolute; left: 14px; top: 11px; width: 18px; height: 18px; color: var(--dim); }
.sheet .search input { min-height: var(--tap); font-size: 16px; }
.sheet .search .icon { top: 15px; }
.search-results { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); max-height: 60vh; overflow-y: auto; }
/* login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth .card { width: 100%; max-width: 410px; padding: 32px 28px; }
/* The full lockup, words and all - this is the one place the company signs its name. */
.auth .logo { display: block; margin: 0 auto 10px; width: 210px; max-width: 70%; height: auto; }
.auth h1 { text-align: center; font-size: 2.1rem; margin-bottom: .2em; }

/* workflow builder */
.wf-step { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; background: var(--surface); margin-bottom: 10px; }
.wf-arrow { text-align: center; color: var(--brand); margin: -4px 0 6px; }
.wf-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.wf-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; background: var(--brand-tint); color: var(--brand-ink); font-weight: 650; font-size: 12.5px; }

/* switch */
.switch { position: relative; width: 44px; height: 26px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 20px; background: var(--paper-2); border: 1px solid var(--line-2); cursor: pointer; transition: .2s; }
.switch i::before { content: ""; position: absolute; width: 20px; height: 20px; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: .2s; }
.switch input:checked + i { background: var(--brand); border-color: var(--brand); }
.switch input:checked + i::before { transform: translateX(18px); }

.calendar-day { margin-bottom: 14px; }
.calendar-day > h3 { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); background: var(--paper); padding: 8px 0; z-index: 2; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.time { font: 600 1rem var(--serif); width: 52px; flex: none; color: var(--brand); }

/* ---------------------------------------------------------------- home: lettings pipeline */
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.home-head h1 { font-size: 2.1rem; margin: 0; }
.home-head h1 em { font-style: normal; color: var(--brand); }
.home-head .lede { color: var(--muted); margin: 6px 0 0; font-size: .92rem; }
.home-head .lede b { color: var(--text); font-weight: 700; }
@media (min-width: 1024px) {.home-head h1 { font-size: 2.6rem; } }

.today { display: flex; align-items: stretch; gap: 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.today::-webkit-scrollbar { display: none; }
.today .lbl { flex: none; display: flex; align-items: center; padding: 11px 18px 11px 0; font: 600 italic .98rem var(--serif); color: var(--text); }
.today a { flex: none; display: flex; align-items: center; gap: 8px; padding: 11px 18px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; border-left: 1px solid var(--line); white-space: nowrap; }
.today a:hover { background: rgba(28,34,30,.03); color: var(--text); }
.today a b { font: 600 1.05rem/1 var(--serif); color: var(--text); }
.today a.bad b { color: var(--bad); }.today a.warn b { color: var(--warn); }
.today .calm { padding: 11px 18px; color: var(--muted); font-size: 13.5px; border-left: 1px solid var(--line); }
@media (max-width: 1023px) {
.home-head .lede { font-size: .86rem; }
.today { flex-wrap: wrap; overflow: visible; gap: 4px 16px; padding: 12px 0 13px; margin-bottom: 18px; }
.today .lbl { width: 100%; padding: 0 0 2px; font-size: .95rem; }
.today a, .today .calm { padding: 2px 0; border-left: 0; font-size: 13px; }
.today a:hover { background: none; }
}

.stage-rail { display: none; }
.pipeline { display: grid; gap: 14px; }
.stage { min-width: 0; display: flex; flex-direction: column; }
.stage-head { display: flex; align-items: baseline; gap: 8px; padding: 0 2px 10px; border-bottom: 2px solid var(--text); margin-bottom: 12px; }
.stage-head h2 { font: 500 1.25rem/1 var(--serif); margin: 0; letter-spacing: -.015em; font-variation-settings: "opsz" 60; }
.stage-head .n { font: 400 1.25rem/1 var(--serif); color: var(--dim); }
.stage-head .flag { line-height: 1; margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--warn); white-space: nowrap; }
.stage-hint { font-size: 12px; color: var(--muted); margin: -6px 2px 12px; }
.stage-cards { display: flex; flex-direction: column; gap: 10px; }
.stage-empty { border: 1px dashed var(--line-2); border-radius: 12px; padding: 18px 14px; color: var(--dim); font-size: 13px; text-align: center; }

.pcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(28,34,30,.04); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.pcard::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.pcard.tone-bad::before { background: var(--bad); }.pcard.tone-warn::before { background: var(--warn); }
.pcard-photo { display: block; aspect-ratio: 16 / 9; background: var(--paper-2) center / cover no-repeat; }
.pcard-body { padding: 13px 14px 12px; }
.pcard-top { display: flex; gap: 11px; align-items: flex-start; }
.plate { flex: none; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-ink);
  font: 500 1.02rem/1 var(--serif); letter-spacing: -.02em; font-variation-settings: "opsz" 36; }
.pcard h3 { font: 600 .98rem/1.25 var(--sans); margin: 0; letter-spacing: -.005em; }
.pcard h3 a { color: var(--text); }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; }
.pcard .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pcard .who { font-size: 13px; color: var(--ink-2); margin: 10px 0 0; }
.pcard .who span { color: var(--muted); }
.pcard .block { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; font-weight: 600; margin: 6px 0 0; color: var(--ink-2); }
.pcard .block i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); margin-top: 6px; }
.pcard.tone-bad .block { color: var(--bad); }.pcard.tone-bad .block i { background: var(--bad); }
.pcard.tone-warn .block { color: var(--warn); }.pcard.tone-warn .block i { background: var(--warn); }
.pcard.tone-ok .block { color: var(--ok); }.pcard.tone-ok .block i { background: var(--ok); }
.pcard .flags { font-size: 11.5px; color: var(--bad); margin: 4px 0 0 14px; }
.pcard .act { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; margin-top: 11px; padding: 6px 12px 6px 13px; border-radius: var(--radius-sm);
  font-size: 12.5px; font-weight: 700; color: var(--brand); background: var(--brand-tint); }
.pcard .act:hover { background: var(--brand); color: #fff; }
.pcard .act .icon { width: 14px; height: 14px; }
.pcard.tone-bad .act, .pcard.tone-warn .act { background: var(--brand); color: #fff; }

@media (max-width: 1023px) {
.stage-rail { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px; scrollbar-width: none; position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); z-index: 5; background: var(--paper); padding-block: 8px; }
.stage-rail::-webkit-scrollbar { display: none; }
.stage-rail a { flex: none; display: flex; align-items: baseline; gap: 6px; padding: 7px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 13px; font-weight: 650; background: var(--surface); }
.stage-rail a b { font: 600 .95rem/1 var(--serif); color: var(--muted); }
.stage-rail a.on { background: var(--text); border-color: var(--text); color: var(--paper); }
.stage-rail a.on b { color: #cfd6cf; }
.pipeline { grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; scrollbar-width: none; }
.pipeline::-webkit-scrollbar { display: none; }
.stage { scroll-snap-align: start; }
}
@media (min-width: 640px) and (max-width: 1023px) {.pipeline { grid-auto-columns: 46%; } }
@media (min-width: 1024px) {.pipeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; } }

.home-lower { display: grid; gap: 22px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-2); }
@media (min-width: 1024px) {.home-lower { grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; } }
.home-lower h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 1.15rem; margin-bottom: 10px; }
.home-lower h2 a, .home-lower h2 button { font: 650 12.5px var(--sans); }
.quiet-list { list-style: none; margin: 0; padding: 0; }
.quiet-list li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.quiet-list li:last-child { border-bottom: 0; }
.quiet-list a { color: var(--text); }
.quiet-list .when { flex: none; width: 46px; font: 600 .95rem var(--serif); color: var(--brand); }
.quiet-list .grow { flex: 1; min-width: 0; }
.quiet-list .s { display: block; color: var(--muted); font-size: 12.5px; }
.quiet-list .end { flex: none; color: var(--muted); font-size: 12px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand-2); cursor: pointer; }
.task a.grow { color: var(--text); }.task a.grow:hover .t { color: var(--brand); }

/* ---------------------------------------------------------------- Ask EstateHub (staff assistant) */
.icon-btn.sa-open { width: auto; padding: 0 12px; gap: 6px; color: var(--brand); border-color: var(--line); font: 650 .85rem var(--sans); }
.icon-btn.sa-open:hover { border-color: var(--brand); }
.sa-drawer { position: fixed; z-index: 70; right: 0; top: 0; bottom: 0; width: min(440px, 100vw); background: var(--paper);
  border-left: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(28,34,30,.35); display: flex; flex-direction: column;
  transform: translateX(105%); visibility: hidden; transition: transform .25s cubic-bezier(.2,.8,.2,1), visibility 0s linear .25s; padding-top: env(safe-area-inset-top, 0px); }
.sa-drawer.open { transform: none; visibility: visible; transition: transform .25s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.sa-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px 16px; border-bottom: 1px solid var(--line); }
.sa-head b { display: flex; align-items: center; gap: 8px; color: var(--brand); font: 600 1.2rem var(--serif); font-variation-settings: "opsz" 36; }
.sa-head .dim { flex: 1; font-size: .8rem; }
.sa { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.sa-page .sa { height: calc(100dvh - var(--top-h) - 190px); min-height: 420px; }
@media (max-width: 1023px) {
.sa-pagehead { display: none; }
.sa-page { position: fixed; z-index: 5; left: 10px; right: 10px; top: calc(var(--top-h) + env(safe-area-inset-top, 0px) + 10px);
    bottom: calc(var(--bottom-h) + 12px + env(safe-area-inset-bottom, 0px)); }
.sa-page .sa { height: 100%; min-height: 0; }
}
.sa-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.sa-msg { display: flex; }
.sa-msg.me { justify-content: flex-end; }
.sa-bubble { max-width: 88%; padding: 10px 13px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); line-height: 1.45; font-size: .95rem; }
.sa-bubble small { display: block; margin-top: 6px; }
.sa-msg.me .sa-bubble { background: var(--brand); color: #fff; border: 0; border-bottom-right-radius: 4px; font-weight: 500; }
.sa-msg.bot .sa-bubble { border-bottom-left-radius: 4px; }
.sa-text.warn { color: var(--warn); }
.sa-done { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--ok); background: #e5f0e8; border-radius: 99px; padding: 2px 9px; margin-bottom: 6px; }
.sa-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.sa-row { display: block; padding: 8px 10px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--line); color: var(--text); }
a.sa-row:hover { border-color: var(--brand); }
.sa-row b { display: block; font-weight: 650; font-size: .9rem; }
.sa-row small { display: block; margin: 0; font-size: .78rem; }
.sa-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sa-msg.typing .sa-bubble { display: flex; gap: 4px; padding: 14px; }
.sa-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: sa-dot 1s infinite ease-in-out; }
.sa-msg.typing span:nth-child(2) { animation-delay: .15s; }.sa-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes sa-dot {0%, 80%, 100% { opacity: .25; transform: translateY(0); }40% { opacity: 1; transform: translateY(-3px); } }
.sa-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 14px; scrollbar-width: none; }
.sa-chip { flex: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--brand); border-radius: 99px; padding: 6px 12px; font: 600 .82rem var(--sans); cursor: pointer; }
.sa-chip:hover { border-color: var(--brand); }
.sa-form { display: flex; gap: 8px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.sa-form input { flex: 1; min-width: 0; min-height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); padding: 0 14px; font: 16px var(--sans); }
.sa-form input:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus-ring); }
.sa-send { min-width: 48px; padding: 0 14px; }
.sa-page { padding: 0; overflow: hidden; }
.sa-more { margin-top: 6px; }
.sa-more > summary { cursor: pointer; font-size: .82rem; font-weight: 650; color: var(--brand-2); list-style: none; padding: 4px 2px; }
.sa-more > summary::-webkit-details-marker { display: none; }
.sa-more[open] > summary { display: none; }

/* search picker (type-ahead over properties / contacts; fills a hidden input) */
.picker { position: relative; min-width: 0; }
.form-grid > .field { min-width: 0; }
.picker input[type=search] { padding-left: 40px; }
.picker > .icon { position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; color: var(--dim); }
.picker:has(> .picked:not([hidden])) > .icon { display: none; }
.picker .search-results { max-height: 40vh; }
.picker .picked { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 8px 12px 8px 14px; border-radius: 10px; border: 1px solid rgba(31,90,66,.35); background: var(--brand-tint); }
.picker .picked b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.picker .picked small { color: var(--muted); flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker .picked button { flex: none; }
.picker .picked button { background: none; border: 0; color: var(--brand-2); font: 650 13px var(--sans); cursor: pointer; padding: 6px; }
.search-results .row { min-height: 52px; padding: 8px 14px; }

/* ---- Sticky form actions sit above the fixed bottom bar on phones, never underneath it ---- */
@media (max-width: 1023px) {
  .main .sticky-cta { bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px)); z-index: 30; padding-bottom: 6px; }
}
