:root {
  --ink: #0d1728;
  --muted: #667386;
  --line: #dce4ed;
  --surface: #ffffff;
  --canvas: #f5f7f5;
  --green: #087cf0;
  --green-2: #0565ca;
  --mint: #e8f3ff;
  --lime: #18e0a5;
  --amber: #e7a93b;
  --shadow: 0 18px 45px rgba(31, 52, 43, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font: 14px/1.5 "DM Sans", sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }
[data-owner-only]:not(.owner-visible) { display: none !important; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 20;
  display: flex; flex-direction: column; padding: 20px 18px 14px; overflow: hidden;
  background: #050b1a; color: #f4f8ff;
}
.brand {
  display: flex; align-items: center; gap: 11px; padding: 0 9px 28px;
  color: white; text-decoration: none; font: 800 21px "Manrope", sans-serif; letter-spacing: -.7px;
}
.brand > span:last-child > span { color: #41d9bd; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  color: white; background: transparent;
}
.brand-mark img { width: 38px; height: 38px; display: block; }
.orbit-brand { gap: 9px; letter-spacing: 4px; }
.orbit-brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.orbit-brand small { margin-top: 5px; color: #5d7894; font: 600 6px "DM Sans"; letter-spacing: 1.2px; }
.orbit-mark { width: 40px; height: 40px; }
.orbit-mark { flex: 0 0 auto; }
.main-nav { min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; overscroll-behavior: contain; }
.nav-item {
  width: 100%; min-height: 36px; display: flex; align-items: center; gap: 11px;
  padding: 0 12px; border: 0; border-radius: 10px; background: transparent;
  color: #a9bbb3; text-align: left; font-size: 12px; font-weight: 600; transition: .2s;
}
.nav-item:hover:not(:disabled), .nav-item.active { color: white; background: rgba(22,126,240,.15); }
.nav-item.active { box-shadow: inset 3px 0 var(--lime); }
.nav-item svg { width: 17px; }
.nav-count { margin-left: auto; min-width: 22px; padding: 1px 6px; border-radius: 20px; text-align: center; background: rgba(255,255,255,.12); font-size: 11px; }
.soon { margin-left: auto; font-size: 9px; padding: 2px 6px; border-radius: 12px; background: rgba(216,245,138,.12); color: #bcd38b; text-transform: uppercase; }

.plan-card { flex: 0 0 auto; margin-top: 12px; padding: 16px; border: 1px solid rgba(255,255,255,.11); border-radius: 14px; background: rgba(255,255,255,.055); }
.plan-topline { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; }
.plan-price { color: #a6b8b0; font-weight: 500; }
.usage-track { height: 5px; margin: 13px 0 10px; overflow: hidden; background: rgba(255,255,255,.12); border-radius: 9px; }
.usage-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--lime); transition: width .4s; }
.plan-card p { margin: 0; color: #b7c6c0; font-size: 11px; }
.plan-card p strong { color: white; }
.text-button { margin-top: 12px; padding: 0; border: 0; background: none; color: #d8f58a; font-size: 11px; font-weight: 600; }
.text-button span { padding-left: 4px; }
.profile { width: 100%; min-width: 0; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 6px 3px; overflow: hidden; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #123254; font-size: 11px; font-weight: 700; }
.hot-count { color: #07101f; background: #18e0a5; }
.ai-nav-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #18e0a5; box-shadow: 0 0 0 3px rgba(24,224,165,.12); }
.profile > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.profile strong { font-size: 12px; }
.profile small { display: block; max-width: 100%; overflow: hidden; color: #91a49c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.profile button { flex: 0 0 auto; border: 0; background: none; color: #91a49c; }

main { grid-column: 2; min-width: 0; }
.topbar {
  min-height: 108px; display: flex; align-items: center; justify-content: space-between;
  padding: 23px clamp(28px, 5vw, 72px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.8);
  backdrop-filter: blur(12px);
}
.eyebrow { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: 1.45px; }
.topbar h1 { margin: 4px 0 0; font: 800 clamp(24px, 3vw, 34px)/1.15 "Manrope"; letter-spacing: -1.3px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.mode-pill { display: flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 20px; background: white; color: var(--muted); font-size: 11px; }
.mode-pill i { width: 7px; height: 7px; border-radius: 50%; background: #91a098; }
.mode-pill.live i, .mode-pill.feed i { background: #2ea06e; box-shadow: 0 0 0 3px #dff3e9; }
.mode-pill.demo i { background: var(--amber); box-shadow: 0 0 0 3px #fff1d6; }
.icon-button, .mobile-menu { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); }
.topbar-notifications { position: relative; }
#notificationButton { position: relative; }
.notification-badge {
  position: absolute; right: -5px; top: -6px; min-width: 19px; height: 19px; display: grid; place-items: center;
  padding: 0 5px; border: 2px solid white; border-radius: 20px; background: #e54f4f; color: white;
  font-size: 9px; font-weight: 800;
}
.notification-panel {
  position: absolute; z-index: 45; right: 0; top: calc(100% + 12px); width: min(390px, calc(100vw - 32px));
  overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white;
  box-shadow: 0 22px 60px rgba(13, 23, 40, .18);
}
.notification-heading { display: flex; align-items: center; justify-content: space-between; padding: 18px 19px; border-bottom: 1px solid #edf1f5; }
.notification-heading > div { display: flex; flex-direction: column; }
.notification-heading strong { font: 800 16px "Manrope"; }
.notification-heading small { color: var(--muted); font-size: 11px; }
.notification-heading button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: #f3f6f8; color: #627084; font-size: 20px; line-height: 1; }
.notification-list { max-height: 420px; overflow-y: auto; }
.notification-item {
  width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 15px 18px; border: 0; border-bottom: 1px solid #edf1f5; background: white; color: var(--ink); text-align: left;
}
.notification-item:hover { background: #f8fafc; }
.notification-item > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; font-size: 17px; font-weight: 800; }
.notification-item.urgent > span { color: #c64343; background: #fff0f0; }
.notification-item.attention > span { color: #a66a09; background: #fff5df; }
.notification-item.info > span { color: #096ecf; background: #eaf4ff; }
.notification-item > div { min-width: 0; display: flex; flex-direction: column; }
.notification-item strong { font: 750 13px/1.35 "Manrope"; }
.notification-item small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.notification-item > b { color: var(--green); font-size: 16px; }
.notification-clear { display: flex; align-items: center; gap: 12px; padding: 22px 19px; }
.notification-clear > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #e8f7f1; color: #17855f; font-size: 18px; font-weight: 800; }
.notification-clear div { display: flex; flex-direction: column; }
.notification-clear strong { font: 750 13px "Manrope"; }
.notification-clear small, .notification-loading { color: var(--muted); font-size: 11px; }
.notification-loading { padding: 25px 19px; text-align: center; }
.mobile-menu { display: none; }

.content { max-width: 1180px; margin: 0 auto; padding: 38px clamp(24px, 5vw, 72px) 80px; }
.search-intro, .results-heading, .page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.search-intro h2, .results-heading h2, .page-heading h2, .empty-page h2 { margin: 0 0 4px; font: 750 20px "Manrope"; letter-spacing: -.5px; }
.search-intro p { margin: 0; color: var(--muted); }
.ghost-button, .outline-button {
  display: flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600;
}
.ghost-button:hover, .outline-button:hover { border-color: #b6c6bd; color: var(--ink); background: white; }
.ghost-button svg { width: 16px; }

.search-panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.smart-input { position: relative; display: block; }
.smart-input textarea {
  width: 100%; max-width: 100%; min-height: 92px; resize: vertical; padding: 17px 165px 17px 46px; border: 1.5px solid #b9d5c8; border-radius: 14px; outline: 0; background: #fbfdfc; color: var(--ink); line-height: 1.55;
}
.smart-input textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(18,107,77,.08); }
.smart-input textarea::placeholder { color: #95a29c; }
.sparkle { position: absolute; left: 17px; top: 16px; z-index: 1; color: var(--green); font-size: 19px; }
.ai-label { position: absolute; right: 13px; top: 13px; padding: 4px 8px; border-radius: 7px; background: var(--mint); color: var(--green); font-size: 10px; font-weight: 700; }
.voice-search-button {
  position: absolute; right: 13px; bottom: 13px; min-width: 126px; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 15px; border: 0; border-radius: 22px; background: linear-gradient(115deg, #087cf0, #11b99a); color: white; font-size: 11px; font-weight: 800;
  box-shadow: 0 9px 22px rgba(8,124,240,.22); transition: transform .2s, box-shadow .2s, background .2s;
}
.voice-search-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.voice-search-button:hover { background: linear-gradient(115deg, #076fd7, #0fa98c); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(8,124,240,.27); }
.voice-search-button.listening { background: linear-gradient(115deg, #d83f4d, #ef6c58); color: white; animation: voice-pulse 1.25s infinite; }
.voice-search-button:disabled { opacity: .48; cursor: not-allowed; }
.voice-search-hint { margin: 7px 3px 0; color: #7d8b84; font-size: 9px; }
.voice-search-hint.listening { color: #c83f3f; font-weight: 700; }
@keyframes voice-pulse { 50% { box-shadow: 0 0 0 8px rgba(224,82,82,.12), 0 10px 24px rgba(216,63,77,.22); } }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #9aa69f; font-size: 10px; text-transform: uppercase; letter-spacing: .8px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: #edf0ee; }
.filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.filter-grid label { min-width: 0; }
.filter-grid label > span, .features-row > span { display: block; margin-bottom: 7px; color: #536059; font-size: 11px; font-weight: 700; }
input, select {
  width: 100%; height: 43px; padding: 0 12px; border: 1px solid #d9e2dd; border-radius: 9px; outline: 0; background: white; color: var(--ink);
}
select { appearance: none; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7770' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(18,107,77,.07); }
.money-input, .suffix-input { position: relative; }
.money-input b, .suffix-input b { position: absolute; top: 50%; transform: translateY(-50%); color: #7c8882; font-size: 11px; }
.money-input b { left: 12px; }
.money-input input { padding-left: 35px; }
.suffix-input b { right: 12px; }
.suffix-input input { padding-right: 38px; }
.features-row { margin-top: 19px; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-chips button { padding: 7px 12px; border: 1px solid #dce4df; border-radius: 20px; background: white; color: #68746e; font-size: 11px; }
.feature-chips button:hover, .feature-chips button.selected { border-color: #92c4ad; background: var(--mint); color: var(--green); }
.search-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 19px; border-top: 1px solid #edf0ee; }
.search-footer p { display: flex; align-items: center; gap: 7px; margin: 0; color: #7e8a84; font-size: 11px; }
.search-footer p svg { width: 16px; color: var(--green); }
.primary-button {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 15px; border: 0; border-radius: 10px; background: var(--green); color: white; font-weight: 700;
  box-shadow: 0 7px 18px rgba(18,107,77,.18); transition: .2s;
}
.primary-button:hover { background: var(--green-2); transform: translateY(-1px); }
.primary-button:disabled { opacity: .65; cursor: wait; transform: none; }
.primary-button svg { width: 18px; }
.primary-button span { margin-left: 5px; padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.15); font-size: 9px; font-weight: 600; }

.results-section { margin-top: 45px; }
.results-heading { align-items: center; }
.results-heading .eyebrow { display: block; margin-bottom: 3px; }
.outline-button { background: white; color: var(--ink); }
.outline-button svg { width: 17px; }
.demo-notice { margin: -4px 0 18px; padding: 12px 15px; border: 1px solid #f1d291; border-radius: 10px; background: #fff8e9; color: #765518; font-size: 12px; }
.demo-notice strong { margin-right: 7px; }
.search-client-context { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -4px 0 18px; padding: 13px 15px; border: 1px solid #cfe1f1; border-radius: 12px; background: #f5f9fd; }
.search-client-context > div { min-width: 0; display: flex; flex-direction: column; }
.search-client-context .eyebrow { margin-bottom: 3px; font-size: 8px; }
.search-client-context strong { overflow: hidden; color: #183b5b; font: 700 12px "Manrope"; text-overflow: ellipsis; white-space: nowrap; }
.search-client-context label { width: min(290px, 45%); }
.search-client-context label > span { display: block; margin-bottom: 4px; color: #64788c; font-size: 9px; font-weight: 700; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.property-card { overflow: hidden; display: grid; grid-template-columns: 156px minmax(0, 1fr); min-height: 205px; border: 1px solid var(--line); border-radius: 15px; background: white; transition: .2s; }
.property-card.selected-for-client { border-color: #44a8ef; box-shadow: 0 0 0 2px rgba(8,124,240,.08), 0 10px 25px rgba(8,124,240,.08); }
.property-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.property-image { position: relative; min-height: 205px; overflow: hidden; background: linear-gradient(145deg, #bed2c7, #e8eee9); }
.property-image img { width: 100%; height: 100%; object-fit: cover; }
.house-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(16,43,34,.25); }
.house-placeholder svg { width: 58px; stroke-width: 1.2; }
.match-badge { position: absolute; left: 9px; top: 9px; z-index: 1; padding: 5px 8px; border-radius: 7px; background: rgba(16,43,34,.88); color: white; font-size: 10px; font-weight: 700; backdrop-filter: blur(4px); }
.property-body { min-width: 0; display: flex; flex-direction: column; padding: 15px; }
.property-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.source { overflow: hidden; color: var(--green); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; text-overflow: ellipsis; white-space: nowrap; }
.source-type { flex: 0 0 auto; padding: 3px 6px; border: 1px solid #dbe9e3; border-radius: 999px; color: #6d8279; font-size: 8px; font-weight: 700; white-space: nowrap; }
.source-count { flex: 0 0 auto; padding: 3px 6px; border-radius: 999px; background: #e8f5ee; color: #16845e; font-size: 8px; font-weight: 800; white-space: nowrap; }
.search-criteria-summary { margin: 5px 0 0; color: #71808b; font-size: 11px; }
.calculator-layout { display: grid; grid-template-columns: minmax(300px, 420px) minmax(320px, 1fr); gap: 18px; align-items: start; }
.calculator-form, .calculator-result { padding: 24px; }
.calculator-form { display: grid; gap: 14px; }
.calculator-form h3 { margin: 0 0 2px; color: var(--ink); font-size: 17px; }
.calculator-form label { display: grid; gap: 6px; color: #506171; font-size: 12px; font-weight: 700; }
.calculator-form input, .calculator-form select { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; }
.calculator-form hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid #edf1f4; }
.calculator-form .outline-button { justify-content: center; }
.calculator-result { min-height: 360px; background: linear-gradient(145deg, #07182d, #0a3d51); color: #fff; }
.calculator-result .eyebrow { color: #38e0b2; }
.calculator-result h3 { margin: 24px 0 10px; font-size: 28px; }
.calculator-result p { color: #b9d2d5; line-height: 1.6; }
.calculator-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.calculator-result-grid div { padding: 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(255,255,255,.06); }
.calculator-result-grid small { display: block; color: #a7c5c6; font-size: 11px; }
.calculator-result-grid strong { display: block; margin-top: 5px; color: #fff; font-size: 20px; }
.client-search-profile { display: grid; gap: 8px; padding: 14px; border: 1px solid #dce9ef; border-radius: 10px; background: #f7fbfd; }
.client-search-profile > span { color: var(--ink); font-size: 12px; font-weight: 800; }
.client-search-profile > small { color: #72808c; font-size: 11px; }
.profile-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.profile-filter-grid label { display: grid; gap: 5px; color: #506171; font-size: 11px; font-weight: 700; }
.profile-filter-grid input, .profile-filter-grid select { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
@media (max-width: 760px) { .profile-filter-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .calculator-layout { grid-template-columns: 1fr; } }
.favorite-button { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: white; color: #748078; }
.favorite-button.saved { color: #d95959; background: #fff2f2; border-color: #f2cccc; }
.favorite-button svg { width: 16px; }
.favorite-button.saved svg { fill: currentColor; }
.property-card h3 { overflow: hidden; margin: 6px 0 2px; font: 700 14px "Manrope"; text-overflow: ellipsis; white-space: nowrap; }
.location { margin: 0; color: var(--muted); font-size: 10px; }
.price { margin: 9px 0 6px; font: 800 17px "Manrope"; letter-spacing: -.4px; }
.price small { color: var(--muted); font: 400 9px "DM Sans"; }
.property-features { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; color: #58645e; font-size: 10px; }
.property-features span { display: flex; align-items: center; gap: 4px; }
.property-features svg { width: 13px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #edf0ee; }
.reason { min-width: 0; flex: 1; overflow: hidden; color: #638070; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.selection-button { flex: 0 0 auto; padding: 5px 7px; border: 1px solid #bfd3e6; border-radius: 7px; background: #f6faff; color: #126bb1; font-size: 8px; font-weight: 800; }
.selection-button.selected { border-color: #7ac6a9; background: #e8f7f1; color: #147451; }
.source-link { flex: 0 0 auto; color: var(--green); font-size: 10px; font-weight: 700; text-decoration: none; }
.source-link:hover { text-decoration: underline; }

.empty-page { max-width: 450px; margin: 90px auto 20px; text-align: center; }
.empty-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: var(--mint); color: var(--green); font-size: 30px; }
.empty-page p { margin: 4px 0 22px; color: var(--muted); }
#savedPage:not(.empty) #savedGrid { margin-top: 5px; }
#savedPage:not(.empty) .empty-page { display: none; }
.history-list { display: grid; gap: 12px; }
.history-item { display: flex; align-items: center; gap: 16px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.history-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--mint); color: var(--green); }
.history-icon svg { width: 18px; }
.history-item > div { min-width: 0; flex: 1; }
.history-item h3 { margin: 0 0 2px; font: 700 13px "Manrope"; }
.history-item p { overflow: hidden; margin: 0; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.history-item time { color: #87928c; font-size: 10px; }
.empty-history { padding: 40px; border: 1px dashed #ccd7d1; border-radius: 14px; color: var(--muted); text-align: center; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: 360px; padding: 12px 16px; border-radius: 10px; background: #102b22; color: white; box-shadow: 0 15px 35px rgba(0,0,0,.2); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: none; }
.toast.error { background: #8e3535; }
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(10,24,18,.62); backdrop-filter: blur(5px); }
.modal { position: relative; width: min(850px, 100%); padding: 30px; border-radius: 19px; background: white; box-shadow: 0 30px 80px rgba(0,0,0,.22); }
.modal > h2 { margin: 5px 0 22px; font: 800 25px "Manrope"; letter-spacing: -.8px; }
.modal-close { position: absolute; right: 20px; top: 17px; border: 0; background: none; color: #7a8680; font-size: 25px; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.plans-grid article { padding: 19px; border: 1px solid var(--line); border-radius: 13px; }
.plans-grid article.featured { border-color: #78b99b; box-shadow: inset 0 3px var(--green); }
.plans-grid article > span { color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.plans-grid h3 { margin: 8px 0 12px; font: 800 21px "Manrope"; }
.plans-grid h3 small { color: var(--muted); font: 400 10px "DM Sans"; }
.plans-grid strong { font-size: 13px; }
.plans-grid p { min-height: 48px; color: var(--muted); font-size: 11px; }
.plans-grid button { width: 100%; height: 38px; border: 1px solid var(--green); border-radius: 8px; background: var(--green); color: white; font-weight: 700; }
.plans-grid button:disabled { border-color: var(--line); background: #f1f4f2; color: #7d8982; cursor: default; }
.modal-footnote { margin: 18px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.form-modal { width: min(640px, 100%); padding: 32px; }
.form-modal > h2 { margin: 5px 0 4px; font: 800 26px "Manrope"; letter-spacing: -.7px; }
.form-modal-intro { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.timeline-modal { width: min(720px, 100%); }
.client-timeline { max-height: min(58vh, 620px); overflow: auto; margin: 0 -4px 4px; padding: 2px 4px; }
.timeline-event { position: relative; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 11px; align-items: start; padding: 13px 2px; border-bottom: 1px solid #edf1f5; }
.timeline-event:last-child { border-bottom: 0; }
.timeline-event-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #e8f3ff; color: #087cf0; font-size: 12px; font-weight: 900; }
.timeline-event-icon.visit { background: #e6f3ed; color: #16845e; }
.timeline-event-icon.negotiation, .timeline-event-icon.proposal { background: #fff1d8; color: #9a6a22; }
.timeline-event-icon.document { background: #f0eaff; color: #7656bd; }
.timeline-event > div { min-width: 0; }
.timeline-event strong { display: block; color: var(--ink); font: 750 12px "Manrope"; }
.timeline-event p { margin: 3px 0; color: #647583; font-size: 10px; line-height: 1.45; }
.timeline-event small { color: #8b97a0; font-size: 8px; }
.timeline-event em { margin-top: 2px; padding: 4px 6px; border-radius: 7px; background: #edf1f5; color: #63717e; font-size: 8px; font-style: normal; font-weight: 800; text-transform: capitalize; }
.timeline-event em.completed, .timeline-event em.sent { background: #e2f4ec; color: #197353; }
.timeline-event em.pending, .timeline-event em.draft { background: #fff1d8; color: #94651e; }
.portfolio-quality-card { margin-bottom: 18px; }
.portfolio-quality-summary { display: flex; align-items: center; gap: 16px; padding: 18px 2px 14px; }
.quality-ring { width: 62px; height: 62px; display: grid; place-content: center; border-radius: 50%; background: radial-gradient(closest-side, #fff 78%, transparent 80% 100%), conic-gradient(#0db784 var(--quality), #e7eef0 0); text-align: center; }
.quality-ring strong { color: var(--ink); font: 800 14px "Manrope"; line-height: 1; }
.quality-ring small { color: #78908a; font-size: 7px; }
.portfolio-quality-summary > div:last-child strong { color: var(--ink); font: 750 13px "Manrope"; }
.portfolio-quality-summary > div:last-child p { margin: 4px 0 0; color: #75828e; font-size: 10px; }
.portfolio-review-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.portfolio-review-list article { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px; border: 1px solid #edf1ee; border-radius: 10px; }
.portfolio-review-list article > span { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 9px; background: #fff1d8; color: #94651e; font-size: 8px; font-weight: 800; }
.portfolio-review-list strong, .portfolio-review-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portfolio-review-list strong { color: var(--ink); font: 700 10px "Manrope"; }
.portfolio-review-list small { margin-top: 2px; color: #83909a; font-size: 8px; }
.portfolio-all-clear { margin: 0; padding: 12px 0 4px; color: #197353; font-size: 10px; font-weight: 700; }
.entity-form { display: grid; gap: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 14px; }
.form-field { min-width: 0; display: flex; flex-direction: column; }
.form-field-wide { grid-column: 1 / -1; }
.form-field > span { margin-bottom: 7px; color: #445267; font-size: 12px; font-weight: 700; }
.form-field > span b { color: #087cf0; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; border: 1px solid #d5dfea; border-radius: 10px; outline: 0; background: #fbfcfe; color: var(--ink); font-size: 13px;
}
.form-field input,
.form-field select { height: 47px; padding: 0 13px; }
.form-field textarea { min-height: 105px; padding: 12px 13px; resize: vertical; line-height: 1.5; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: #087cf0; background: white; box-shadow: 0 0 0 3px rgba(8,124,240,.09); }
.form-field small { margin-top: 6px; color: #8995a3; font-size: 10px; }
.form-error { min-height: 18px; margin: 9px 0 0; color: #c94a54; font-size: 11px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 15px; border-top: 1px solid #edf1f5; }
.form-actions .outline-button { min-height: 44px; }
.entity-form.busy { opacity: .65; pointer-events: none; }
.form-guidance { display: flex; flex-direction: column; margin-top: 17px; padding: 13px 15px; border: 1px solid #cfe2f5; border-radius: 10px; background: #f3f8fd; color: #52677d; }
.form-guidance strong { color: #1c588e; font-size: 11px; }
.form-guidance span { margin-top: 3px; font-size: 10px; }

.dashboard-content { max-width: 1320px; }
.dashboard-welcome {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px;
}
.today-label { color: #829088; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.dashboard-welcome h2 { margin: 4px 0 3px; font: 800 24px "Manrope"; letter-spacing: -.8px; }
.dashboard-welcome p { margin: 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card {
  position: relative; min-width: 0; display: flex; align-items: center; gap: 13px; min-height: 112px; padding: 17px;
  border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 8px 25px rgba(31,52,43,.035);
}
.metric-icon { flex: 0 0 auto; width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; }
.metric-icon svg { width: 19px; }
.metric-icon.green { color: #14704f; background: #e1f3ea; }
.metric-icon.blue { color: #3b6d9b; background: #e7f0f8; }
.metric-icon.amber { color: #a66b18; background: #fcf1dd; }
.metric-icon.violet { color: #765aa6; background: #eee9f7; }
.metric-card > div { min-width: 0; display: flex; flex-direction: column; }
.metric-card div > span { overflow: hidden; color: #66736c; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.metric-card strong { margin: 1px 0; font: 800 24px "Manrope"; letter-spacing: -.8px; }
.metric-card small { color: #89948e; font-size: 9px; }
.metric-card small.up { color: var(--green); }
.credit-metric { padding-right: 69px; }
.mini-ring {
  position: absolute; right: 14px; width: 47px; height: 47px; display: grid; place-items: center; border-radius: 50%;
  background: conic-gradient(var(--green) 100%, #e4eae6 0); box-shadow: inset 0 0 0 5px white;
}
.mini-ring::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: white; }
.mini-ring b { position: relative; z-index: 1; font-size: 8px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(290px, .75fr); gap: 18px; }
.dashboard-card { min-width: 0; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 8px 25px rgba(31,52,43,.035); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 19px; border-bottom: 1px solid #edf1ee; }
.card-heading h3, .portal-teaser h3 { margin: 0 0 2px; font: 750 14px "Manrope"; }
.card-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.small-link { border: 0; background: none; color: var(--green); font-size: 10px; font-weight: 700; white-space: nowrap; }
.demand-list { padding: 0 18px; }
.demand-row { display: grid; grid-template-columns: 34px minmax(105px, .8fr) minmax(150px, 1.25fr) 70px 59px; align-items: center; gap: 10px; min-height: 69px; border-bottom: 1px solid #edf1ee; }
.demand-row:last-child { border-bottom: 0; }
.client-avatar { flex: 0 0 auto; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; font-size: 9px; font-style: normal; font-weight: 800; }
.client-avatar.coral { color: #9b514b; background: #f8e5e2; }
.client-avatar.blue { color: #426b96; background: #e3eef8; }
.client-avatar.green { color: #2d7559; background: #e2f2e9; }
.client-avatar.violet { color: #75599a; background: #eee7f6; }
.demand-client, .demand-request { min-width: 0; display: flex; flex-direction: column; }
.demand-client strong, .demand-request strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.demand-client small, .demand-request small { overflow: hidden; color: #89938e; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.match-count { padding: 5px 6px; border-radius: 7px; background: #eaf4ef; color: #47715e; font-size: 8px; text-align: center; white-space: nowrap; }
.match-count b { color: var(--green); }
.match-count.hot { background: #e1f3e9; }
.match-count.muted { background: #f0f2f1; color: #7d8782; }
.row-action { padding: 6px 7px; border: 1px solid #d7e1db; border-radius: 7px; background: white; color: #526159; font-size: 8.5px; font-weight: 700; }
.row-action:hover { border-color: #8bb7a2; color: var(--green); }
.insight-list { padding: 2px 18px 5px; }
.insight-list article { display: flex; gap: 11px; padding: 15px 0; border-bottom: 1px solid #edf1ee; }
.insight-list article:last-child { border-bottom: 0; }
.insight-dot { flex: 0 0 auto; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; }
.insight-dot svg { width: 15px; }
.insight-dot.new { color: #267355; background: #e2f2e9; }
.insight-dot.price { color: #9b6b25; background: #f9efd9; }
.insight-dot.alert { color: #765aa0; background: #eee8f6; }
.insight-list div { min-width: 0; }
.insight-list strong { font-size: 10px; }
.insight-list p { margin: 2px 0 5px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.insight-list button { padding: 0; border: 0; background: none; color: var(--green); font-size: 8.5px; font-weight: 700; }
.dashboard-bottom { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(290px, .75fr); gap: 18px; margin-top: 18px; }
.pipeline { display: flex; align-items: center; padding: 21px 20px 23px; }
.pipeline > div { min-width: 82px; flex: 1; display: flex; flex-direction: column; }
.pipeline > b { margin: 0 12px; color: #b3bdb7; font-weight: 400; }
.pipeline span { color: #6a7770; font-size: 9px; }
.pipeline strong { margin: 3px 0 8px; font: 800 18px "Manrope"; }
.pipeline i { position: relative; height: 4px; overflow: hidden; border-radius: 5px; background: #edf1ee; }
.pipeline i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--fill); border-radius: inherit; background: var(--green); }
.portal-teaser { display: flex; align-items: center; gap: 14px; padding: 20px; background: linear-gradient(135deg, #071326, #07345a); color: white; }
.portal-icon { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(216,245,138,.12); color: var(--lime); }
.portal-icon svg { width: 21px; }
.soon-label { color: var(--lime); font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.portal-teaser h3 { margin-top: 3px; }
.portal-teaser p { margin: 2px 0 0; color: #b8cbc3; font-size: 9px; line-height: 1.4; }

.system-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.system-page-heading h2 { margin: 3px 0 3px; font: 800 23px "Manrope"; letter-spacing: -.7px; }
.system-page-heading p { margin: 0; color: var(--muted); }
.button-plus { margin: 0 !important; padding: 0 !important; background: none !important; font-size: 18px !important; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.table-search { position: relative; width: 250px; }
.table-search svg { position: absolute; left: 12px; top: 12px; z-index: 1; width: 16px; color: #849089; }
.table-search input { padding-left: 37px; background: white; }
.toolbar-filters { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.toolbar-filters button { padding: 6px 9px; border: 0; border-radius: 7px; background: none; color: #647069; font-size: 10px; }
.toolbar-filters button.active { background: var(--mint); color: var(--green); font-weight: 700; }
.toolbar-filters b { margin-left: 3px; font-size: 8px; }
.client-table { overflow: hidden; }
.table-head, .table-row { display: grid; grid-template-columns: 1.15fr 1.4fr .65fr .65fr; align-items: center; gap: 18px; padding: 0 20px; }
.table-head { min-height: 42px; background: #f8faf8; color: #7c8881; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.table-row { min-height: 72px; border-top: 1px solid #edf1ee; color: #69756f; font-size: 10px; }
.table-row > span:not(.client-cell) { min-width: 0; display: flex; flex-direction: column; }
.table-row span > b { overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.table-row small { display: block; color: #8a958f; font-size: 8.5px; font-weight: 400; }
.client-cell { display: flex; align-items: center; gap: 10px; }
.client-cell > b { min-width: 0; }
.table-row > button { border: 0; background: none; color: #87938c; }
.client-search-action { width: fit-content; margin-top: 5px; padding: 0; border: 0; background: none; color: #087cf0; font-size: 8px; font-weight: 800; text-align: left; }
.status { width: fit-content; padding: 5px 7px; border-radius: 7px; font-size: 8px; font-style: normal; font-weight: 700; }
.status.searching { color: #267356; background: #e3f2ea; }
.status.visit { color: #3f6790; background: #e5eef7; }
.status.negotiation { color: #9a6a22; background: #faf0dc; }
.selection-tray { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding: 14px 16px; border: 1px solid #add4f5; border-radius: 13px; background: linear-gradient(135deg, #f4faff, #f8fffc); box-shadow: 0 8px 24px rgba(8,124,240,.06); }
.selection-tray > div { display: flex; align-items: center; gap: 9px; }
.selection-count { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: #087cf0; color: white; font: 800 16px "Manrope"; }
.selection-tray p { display: flex; flex-direction: column; margin: 0; }
.selection-tray p strong { color: #102b43; font: 750 12px "Manrope"; }
.selection-tray p small { color: #718497; font-size: 9px; }
.selection-tray button { min-height: 38px; }
.selection-history { overflow: hidden; margin-top: 18px; }
.selection-history-row { display: grid; grid-template-columns: 38px minmax(180px,1fr) 75px 75px 105px 76px; align-items: center; gap: 13px; min-height: 68px; padding: 0 18px; border-top: 1px solid #edf1f5; color: #6c7987; font-size: 9px; }
.selection-history-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #e8f3ff; color: #087cf0; font-weight: 800; }
.selection-history-row > div { min-width: 0; display: flex; flex-direction: column; }
.selection-history-row strong { overflow: hidden; color: var(--ink); font: 700 11px "Manrope"; text-overflow: ellipsis; white-space: nowrap; }
.selection-history-row small { color: #8995a1; font-size: 8px; }
.selection-history-row em { width: fit-content; padding: 5px 7px; border-radius: 8px; font-size: 8px; font-style: normal; font-weight: 800; }
.selection-history-row em.draft { background: #fff1d8; color: #94651e; }
.selection-history-row em.sent { background: #e2f4ec; color: #197353; }
.selection-history-row button { padding: 7px 8px; border: 1px solid #d4dfe8; border-radius: 7px; background: white; color: #3574a7; font-size: 8px; font-weight: 800; }
.opportunity-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.opportunity-summary article { display: flex; flex-direction: column; padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.opportunity-summary span { color: #68756e; font-size: 9px; font-weight: 700; }
.opportunity-summary strong { font: 800 21px "Manrope"; }
.opportunity-summary small { color: #8a958f; font-size: 8px; }
.opportunity-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.board-column { padding: 10px; border-radius: 13px; background: #edf1ee; }
.board-title { display: flex; align-items: center; justify-content: space-between; padding: 5px 5px 12px; color: #617068; font-size: 8px; font-weight: 800; letter-spacing: .7px; }
.board-title b { min-width: 20px; padding: 2px 5px; border-radius: 10px; background: #dce4df; text-align: center; }
.board-column article { margin-bottom: 9px; padding: 14px; border: 1px solid #dfe6e2; border-radius: 10px; background: white; box-shadow: 0 5px 15px rgba(31,52,43,.04); }
.board-column article > em { color: var(--green); font-size: 8px; font-style: normal; font-weight: 800; }
.board-column article > strong { display: block; margin: 5px 0 2px; font: 700 11px "Manrope"; }
.board-column article > small { color: #7d8882; font-size: 8.5px; }
.board-column footer { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #edf1ee; }
.board-column footer .client-avatar { width: 24px; height: 24px; border-radius: 7px; font-size: 7px; }
.board-column footer b { font-size: 8.5px; }

.meta-hero {
  position: relative; overflow: hidden; margin-bottom: 18px; padding: 30px 32px 0;
  border-radius: 17px; background: radial-gradient(circle at 88% -30%, rgba(0,227,165,.24), transparent 38%), linear-gradient(125deg, #050b1a 0%, #07172e 58%, #06335a 100%); color: white;
}
.meta-hero::after { content: ""; position: absolute; width: 280px; height: 280px; right: -90px; top: -150px; border: 1px solid rgba(216,245,138,.18); border-radius: 50%; box-shadow: 0 0 0 45px rgba(216,245,138,.035), 0 0 0 90px rgba(216,245,138,.025); }
.meta-kicker { position: relative; z-index: 1; color: var(--lime); font-size: 9px; font-weight: 800; letter-spacing: 1.4px; }
.meta-hero h2 { position: relative; z-index: 1; margin: 7px 0 5px; font: 800 27px/1.18 "Manrope"; letter-spacing: -1px; }
.meta-hero > p { position: relative; z-index: 1; margin: 0; color: #b9cec5; font-size: 11px; }
.meta-searchbar {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .75fr 1fr .85fr auto; align-items: end; gap: 1px;
  margin: 22px 0 0; padding: 7px; border-radius: 12px; background: white; box-shadow: 0 16px 35px rgba(4,21,14,.25);
}
.meta-searchbar label { min-width: 0; padding: 0 10px; border-right: 1px solid #e8eeea; }
.meta-searchbar label > span { display: block; margin-bottom: -3px; color: #728078; font-size: 8px; font-weight: 700; }
.meta-searchbar input, .meta-searchbar select { height: 38px; padding: 0; border: 0; box-shadow: none; font-weight: 600; }
.meta-searchbar select { background-position: right 2px center; }
.meta-searchbar .orbita-native-select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.meta-searchbar .orbita-select { position: relative; display: block; margin: 0; color: var(--ink); }
.orbita-select > button { width: 100%; height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; }
.orbita-select > button b { overflow: hidden; font: 600 16px "DM Sans"; text-overflow: ellipsis; white-space: nowrap; }
.orbita-select > button svg { width: 14px; flex: 0 0 auto; color: #718078; transition: transform .2s ease; }
.orbita-select.open > button svg { transform: rotate(180deg); }
.orbita-options { position: fixed; z-index: 500; display: none !important; overflow: hidden; padding: 6px; border: 1px solid #dce5ed; border-radius: 12px; background: rgba(255,255,255,.98); box-shadow: 0 18px 45px rgba(7,19,38,.18); backdrop-filter: blur(14px); }
.orbita-select.open .orbita-options { display: grid !important; animation: modalEnter .2s cubic-bezier(.2,.8,.25,1) both; }
.orbita-options > button { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; color: #334155; font-size: 13px; text-align: left; }
.orbita-options > button:hover,
.orbita-options > button:focus-visible { outline: 0; background: #eef7ff; color: #086fcf; }
.orbita-options > button.selected { background: #e7f4ff; color: #087cf0; font-weight: 800; }
.orbita-options i { visibility: hidden; color: #0db784; font-style: normal; font-weight: 900; }
.orbita-options > button.selected i { visibility: visible; }
.meta-searchbar .money-input b { left: 0; }
.meta-searchbar .money-input input { padding-left: 25px; }
.meta-searchbar .primary-button { height: 45px; min-width: 150px; }
.source-strip { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; min-height: 48px; margin-top: 17px; border-top: 1px solid rgba(255,255,255,.1); color: #a9bfb5; }
.source-strip > span { color: #7fa294; font-size: 7px; font-weight: 800; letter-spacing: 1px; }
.source-strip b { color: #d8e5df; font-size: 8px; white-space: nowrap; }
.source-strip em { margin-left: auto; padding: 4px 7px; border: 1px solid rgba(216,245,138,.2); border-radius: 12px; color: var(--lime); font-size: 7px; font-style: normal; white-space: nowrap; }
.meta-metrics { margin-bottom: 18px; }
.meta-grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr); }
.meta-search-list { padding: 0 18px; }
.meta-search-list article { display: grid; grid-template-columns: 34px minmax(170px, 1fr) 72px 55px 76px; align-items: center; gap: 11px; min-height: 74px; border-bottom: 1px solid #edf1ee; }
.meta-search-list article:last-child { border-bottom: 0; }
.search-home-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: var(--mint); }
.search-home-icon svg { width: 16px; }
.meta-search-list article > div { min-width: 0; display: flex; flex-direction: column; }
.meta-search-list strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.meta-search-list small { color: #85918a; font-size: 8px; }
.meta-search-list article > span:nth-child(3) { color: #65736c; font-size: 8px; text-align: center; }
.meta-search-list article > span:nth-child(3) b { color: var(--ink); font-size: 11px; }
.meta-search-list article > em { padding: 5px 7px; border-radius: 12px; background: #e5f3eb; color: var(--green); font-size: 7.5px; font-style: normal; font-weight: 700; text-align: center; white-space: nowrap; }
.meta-search-list article > button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--green); font-size: 8px; font-weight: 700; }
.price-radar { padding: 2px 18px 4px; }
.price-radar article { display: flex; align-items: center; gap: 10px; min-height: 72px; border-bottom: 1px solid #edf1ee; }
.price-radar article:last-child { border-bottom: 0; }
.price-radar article > span { flex: 0 0 auto; min-width: 37px; padding: 6px; border-radius: 8px; background: #e5f3eb; color: var(--green); font-size: 9px; font-weight: 800; text-align: center; }
.price-radar article > div { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.price-radar strong { overflow: hidden; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.price-radar small { color: #87928c; font-size: 8px; }
.price-radar small b { color: var(--green); }
.price-radar .duplicate-hint > span { color: #8c6429; background: #f8eedb; }
.price-radar button { padding: 0; border: 0; background: none; color: var(--green); font-size: 8px; font-weight: 700; }
.source-health { overflow: hidden; }
.demo-tag { padding: 4px 7px; border-radius: 12px; background: #fff1d8; color: #94651e; font-size: 7px; font-weight: 800; }
.source-health-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 14px; }
.source-health-grid > span { display: grid; grid-template-columns: 27px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 8px; padding: 7px; border-right: 1px solid #edf1ee; }
.source-health-grid > span:last-child { border-right: 0; }
.source-logo { grid-row: 1 / 3; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: white; font-size: 9px; font-style: normal; font-weight: 800; }
.source-logo.zap { background: #6655c7; }
.source-logo.viva { background: #ed6b45; }
.source-logo.olx { background: #6c2785; }
.source-logo.imovelweb { background: #e0443e; }
.source-health-grid b { font-size: 8.5px; }
.source-health-grid em { color: #2f865f; font-size: 7px; font-style: normal; }
.dashboard-empty-state { grid-column: 1 / -1; display: flex; min-height: 170px; align-items: center; justify-content: center; flex-direction: column; padding: 28px; color: var(--muted); text-align: center; }
.dashboard-empty-state strong { color: var(--ink); font: 750 13px "Manrope"; }
.dashboard-empty-state span { max-width: 390px; margin-top: 4px; font-size: 10px; line-height: 1.5; }
.preview-badge { padding: 5px 8px; border-radius: 12px; background: #eef2f6; color: #6d7885; font-size: 8px; font-weight: 800; }
.ai-online.preview { border-color: #d8e1eb; background: #f3f6f9; color: #637184; }
.ai-online.preview i { background: #8c99a8; box-shadow: 0 0 0 3px rgba(140,153,168,.13); }

.comparison-context { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; padding: 18px 20px; }
.comparison-property { display: flex; align-items: center; gap: 13px; }
.comparison-house { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 11px; color: var(--green); background: var(--mint); }
.comparison-house svg { width: 21px; }
.comparison-property span { color: #9a6c28; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.comparison-property h3 { margin: 2px 0; font: 750 14px "Manrope"; }
.comparison-property p { margin: 0; color: var(--muted); font-size: 9px; }
.comparison-saving { display: flex; flex-direction: column; padding-left: 22px; border-left: 1px solid var(--line); color: #78847d; font-size: 8px; }
.comparison-saving strong { color: var(--green); font: 800 18px "Manrope"; }
.offer-comparison { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.offer-comparison article { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 8px 25px rgba(31,52,43,.04); }
.offer-comparison article.best-offer { border: 2px solid #56a984; }
.best-label { position: absolute; right: 12px; top: 12px; padding: 4px 7px; border-radius: 10px; background: var(--mint); color: var(--green); font-size: 7px; font-weight: 800; }
.offer-source { display: flex; align-items: center; gap: 9px; }
.offer-source > div { display: flex; flex-direction: column; }
.offer-source strong { font-size: 10px; }
.offer-source small { color: #88948d; font-size: 8px; }
.offer-comparison h3 { margin: 18px 0 0; font: 800 22px "Manrope"; }
.offer-comparison > article > p { margin: 1px 0 14px; color: var(--muted); font-size: 9px; }
.offer-comparison ul { min-height: 73px; margin: 0 0 15px; padding: 12px 0 8px; border-top: 1px solid #edf1ee; list-style: none; color: #68756e; font-size: 9px; line-height: 1.8; }
.offer-comparison a { display: block; padding: 10px; border-radius: 8px; background: var(--green); color: white; font-size: 9px; font-weight: 700; text-align: center; text-decoration: none; }
.comparison-disclaimer { color: #89948e; font-size: 8px; text-align: center; }
.alert-list { display: grid; gap: 11px; }
.alert-list article { display: grid; grid-template-columns: 60px minmax(220px, 1fr) 100px 85px; align-items: center; gap: 16px; padding: 17px 19px; }
.alert-status { width: fit-content; padding: 5px 7px; border-radius: 9px; font-size: 7px; font-weight: 800; }
.alert-status.active { color: var(--green); background: var(--mint); }
.alert-status.paused { color: #7f8984; background: #ecefed; }
.alert-list article > div { min-width: 0; }
.alert-list h3 { margin: 0; font: 700 11px "Manrope"; }
.alert-list p { margin: 2px 0; color: #68756e; font-size: 9px; }
.alert-list small { color: #8b9690; font-size: 8px; }
.alert-news { color: #51615a; font-size: 8px; text-align: center; }
.alert-news b { display: block; color: var(--green); font: 800 16px "Manrope"; }
.alert-news.muted b { color: #87928c; }
.alert-list article > button { padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--green); font-size: 8px; font-weight: 700; }

.module-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.module-stat-grid article { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.module-stat-grid article > div { display: flex; flex-direction: column; }
.module-stat-grid small { color: var(--muted); font-size: 9px; }
.module-stat-grid strong { font: 800 20px "Manrope"; }
.document-center { overflow: hidden; }
.document-row { display: grid; grid-template-columns: 37px minmax(220px, 1fr) 80px 85px 25px; align-items: center; gap: 13px; min-height: 68px; padding: 0 19px; border-top: 1px solid #edf1f5; color: var(--muted); font-size: 9px; }
.file-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; font-size: 7px; font-weight: 800; }
.file-icon.pdf { color: #e04e58; background: #ffedef; }
.file-icon.doc { color: #2477d4; background: #e8f2ff; }
.document-row > div { min-width: 0; }
.document-row strong { display: block; overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.document-row small { color: #8a96a2; font-size: 8px; }
.doc-status { width: fit-content; padding: 5px 7px; border-radius: 8px; font-size: 7px; font-style: normal; font-weight: 800; }
.doc-status.signed { color: #07815e; background: #e4f7f1; }
.doc-status.pending { color: #a46b17; background: #fff2dc; }
.doc-status.review { color: #4c6eb0; background: #eaf1ff; }
.document-row > button { border: 0; background: none; color: #84909c; }
.lead-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.lead-board > section { min-height: 360px; padding: 10px; border: 1px solid #dfe6ee; border-radius: 13px; background: #edf2f7; }
.lead-board header { display: flex; align-items: center; justify-content: space-between; padding: 5px 4px 12px; color: #657385; font-size: 8px; font-weight: 800; letter-spacing: .7px; }
.lead-board header b { min-width: 20px; padding: 2px 5px; border-radius: 10px; background: #dce5ee; text-align: center; }
.lead-board article { margin-bottom: 9px; padding: 14px; border: 1px solid #dde5ed; border-radius: 10px; background: white; box-shadow: 0 5px 14px rgba(13,23,40,.04); }
.lead-board article strong { font: 700 10px "Manrope"; }
.lead-board article p { margin: 5px 0 10px; color: #657386; font-size: 8.5px; line-height: 1.4; }
.lead-board article small { color: #8995a1; font-size: 7.5px; }
.lead-stage { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; padding-top: 11px; border-top: 1px solid #edf1f5; color: #778493; font-size: 8px; }
.lead-stage select { width: auto; min-width: 92px; height: 30px; padding: 0 26px 0 9px; border-radius: 7px; background-position: right 7px center; font-size: 8px; }
.lead-card-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf1f5; }
.lead-card-actions button { min-height: 36px; padding: 0 11px; font-size: 10px; }
.analytics-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 15px; }
.analytics-grid > section { min-height: 270px; }
.conversion-chart { grid-row: span 2; }
.conversion-chart .card-heading > strong { color: var(--green); font: 800 19px "Manrope"; }
.conversion-chart .card-heading > strong small { color: #12a879; font: 700 8px "DM Sans"; }
.bar-chart { height: 205px; display: flex; align-items: end; gap: 18px; padding: 25px 28px 22px; }
.bar-chart span { position: relative; flex: 1; height: var(--h); border-radius: 7px 7px 2px 2px; background: linear-gradient(#17d8b1, #087cf0); }
.bar-chart span::after { content: ""; position: absolute; inset: auto 0 -1px; height: 1px; background: #dfe7ef; }
.bar-chart b { position: absolute; left: 50%; bottom: -19px; transform: translateX(-50%); color: #7c8996; font-size: 8px; font-weight: 500; }
.channel-list, .price-distribution { display: grid; gap: 16px; padding: 22px; }
.channel-list span, .price-distribution span { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 5px; color: #5f6d7d; font-size: 9px; }
.channel-list i, .price-distribution i { grid-column: 1 / 3; position: relative; height: 5px; border-radius: 5px; background: #e9eef3; }
.channel-list i::after, .price-distribution i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #087cf0, #18d8b1); }
.channel-list em, .price-distribution em { font-style: normal; font-weight: 800; }
.market-chart { grid-column: 2; }
.ai-online { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #cceadf; border-radius: 20px; background: #edfaf5; color: #168661; font-size: 9px; font-weight: 700; }
.ai-online i { width: 7px; height: 7px; border-radius: 50%; background: #18c88e; box-shadow: 0 0 0 3px rgba(24,200,142,.13); }
.ai-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 15px; }
.ai-conversation { min-height: 540px; display: flex; flex-direction: column; padding: 24px; background: radial-gradient(circle at 50% 35%, #f2f8ff, white 50%); }
.ai-thread { min-height: 390px; max-height: 490px; display: flex; flex-direction: column; gap: 13px; overflow-y: auto; padding: 4px 4px 20px; scrollbar-width: thin; }
.ai-empty { max-width: 550px; margin: auto; text-align: center; }
.ai-orbit-icon { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 21px; background: #071326; box-shadow: 0 15px 35px rgba(7,19,38,.18); }
.ai-orbit-icon img { width: 50px; height: 50px; display: block; }
.ai-empty h3 { margin: 0 0 5px; font: 800 19px "Manrope"; }
.ai-empty > p { margin: 0 auto 20px; color: var(--muted); font-size: 10px; }
.ai-suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ai-suggestions button { padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: white; color: #526173; font-size: 8.5px; text-align: left; }
.ai-suggestions button:hover { border-color: #8eb8e7; color: var(--green); }
.ai-composer { display: flex; gap: 9px; margin-top: auto; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 10px 30px rgba(13,23,40,.07); }
.ai-composer textarea { min-height: 42px; flex: 1; resize: none; padding: 12px; border: 0; outline: 0; color: var(--ink); }
.ai-composer button { width: 42px; height: 42px; display: grid; place-items: center; align-self: end; border: 0; border-radius: 10px; background: var(--green); color: white; }
.ai-composer button:disabled { cursor: wait; opacity: .55; }
.ai-composer svg { width: 18px; }
.ai-composer .assistant-voice-button { background: #ecf5ff; color: var(--green); }
.ai-composer .assistant-voice-button.recording { background: #e24c4c; color: white; }
.ai-message { max-width: min(82%, 720px); display: grid; gap: 5px; animation: message-in .25s ease both; }
.ai-message.user { align-self: end; }
.ai-message.assistant { align-self: start; }
.ai-message > span { color: #8090a0; font-size: 9px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.ai-message.user > span { text-align: right; }
.ai-message > div { padding: 12px 15px; border: 1px solid var(--line); border-radius: 4px 15px 15px; background: white; color: #304052; font-size: 12px; line-height: 1.55; white-space: pre-wrap; box-shadow: 0 7px 20px rgba(16,37,62,.05); }
.ai-message.user > div { border-color: #087cf0; border-radius: 15px 4px 15px 15px; background: #087cf0; color: white; }
.ai-message.thinking > div { display: flex; align-items: center; gap: 5px; color: #7c8996; }
.ai-message.thinking i { width: 6px; height: 6px; border-radius: 50%; background: #18c88e; animation: thinking-dot 1s infinite ease-in-out; }
.ai-message.thinking i:nth-child(2) { animation-delay: .14s; }
.ai-message.thinking i:nth-child(3) { animation-delay: .28s; }
.ai-privacy-note { margin: 0; padding: 15px 17px 18px; border-top: 1px solid #edf1f5; color: #718091; font-size: 9px; line-height: 1.5; }
@keyframes thinking-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes message-in { from { opacity: 0; transform: translateY(6px); } }
.ai-capabilities { overflow: hidden; }
.ai-context-list { display: grid; padding: 8px 17px; }
.ai-context-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 47px; border-bottom: 1px solid #edf1f5; color: #586779; font-size: 9px; }
.ai-context-row:last-child { border-bottom: 0; }
.ai-context-row > span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ai-capabilities i { width: 6px; height: 6px; border-radius: 50%; }
.green-dot { background: #16bf88; }
.amber-dot { background: #e5a73c; }
.ai-capabilities em { flex: 0 0 auto; margin-left: auto; color: #8995a1; font-size: 7px; font-style: normal; text-align: right; }

.auth-gate { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: minmax(390px, .9fr) minmax(480px, 1.1fr); background: #f7f9fc; }
.auth-gate.authenticated { display: none; }
.auth-brand-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(45px, 7vw, 100px); background: radial-gradient(circle at 20% 15%, rgba(0,224,166,.14), transparent 30%), radial-gradient(circle at 90% 90%, rgba(8,124,255,.22), transparent 40%), #050b1a; color: white; }
.auth-brand-panel::after { content: ""; position: absolute; right: -190px; bottom: -190px; width: 500px; height: 500px; border: 1px solid rgba(24,224,165,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(8,124,255,.025), 0 0 0 140px rgba(8,124,255,.018); }
.auth-orbit-symbol { width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 30px; border: 1px solid rgba(255,255,255,.09); border-radius: 22px; background: rgba(255,255,255,.04); box-shadow: 0 20px 45px rgba(0,0,0,.25); }
.auth-orbit-symbol img { width: 64px; height: 64px; display: block; }
.auth-brand-panel > span { color: #18e0a5; font-size: 9px; font-weight: 800; letter-spacing: 1.7px; }
.auth-brand-panel h2 { position: relative; z-index: 1; margin: 10px 0 12px; font: 800 clamp(29px, 3.4vw, 48px)/1.12 "Manrope"; letter-spacing: -1.8px; }
.auth-brand-panel h2 b { color: #18e0a5; }
.auth-brand-panel > p { position: relative; z-index: 1; max-width: 500px; margin: 0; color: #9db0c5; font-size: 12px; line-height: 1.65; }
.auth-feature-list { position: relative; z-index: 1; display: grid; gap: 10px; margin-top: 35px; color: #c7d4e2; font-size: 10px; }
.auth-feature-list span::first-letter { color: #18e0a5; }
.auth-form-panel { width: min(490px, calc(100% - 50px)); display: flex; flex-direction: column; justify-content: center; margin: auto; padding: 35px 0; }
.auth-mobile-brand { display: none; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 34px; padding: 4px; border-radius: 10px; background: #e9eef5; }
.auth-tabs button { height: 37px; border: 0; border-radius: 8px; background: transparent; color: #687587; font-size: 10px; font-weight: 700; }
.auth-tabs button.active { background: white; color: #087cf0; box-shadow: 0 4px 14px rgba(13,23,40,.08); }
.auth-form { display: grid; gap: 16px; }
.auth-form > div:first-child { margin-bottom: 5px; }
.auth-form h2 { margin: 5px 0 4px; font: 800 26px "Manrope"; letter-spacing: -.8px; }
.auth-form > div:first-child p { margin: 0; color: var(--muted); }
.auth-form label > span { display: block; margin-bottom: 6px; color: #4d5b6b; font-size: 10px; font-weight: 700; }
.auth-form input { height: 47px; padding: 0 14px; background: white; }
.auth-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-submit { width: 100%; height: 48px; margin-top: 3px; }
.auth-error { min-height: 17px; margin: -6px 0 0; color: #c94a54; font-size: 9px; text-align: center; }
.auth-terms { margin-top: 25px; color: #8a96a4; font-size: 8px; line-height: 1.5; text-align: center; }
.auth-form.busy { opacity: .65; pointer-events: none; }
.empty-module-state { display: flex; flex-direction: column; align-items: center; padding: 44px 20px; color: var(--muted); text-align: center; }
.empty-module-state strong { color: var(--ink); font: 700 12px "Manrope"; }
.empty-module-state span { margin-top: 4px; font-size: 9px; }
.empty-lead-column { padding: 24px 8px; color: #8b97a4; font-size: 8px; text-align: center; }
.heading-actions { display: flex; gap: 8px; }
.source-manager { overflow: hidden; margin-bottom: 16px; }
.source-standard { padding: 5px 8px; border-radius: 10px; background: #e9f3ff; color: #087cf0; font-size: 7px; font-weight: 800; }
.source-manager-list { display: grid; }
.source-run-history { margin: 0 18px 18px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #f9fbfd; color: var(--muted); font-size: 10px; }
.source-run-history strong { display: block; margin-bottom: 7px; color: var(--ink); font: 800 11px "Manrope"; }
.source-run-history p { margin: 5px 0; }
.source-manager-row { display: grid; grid-template-columns: 34px minmax(180px, 1fr) 90px 90px 95px 75px; align-items: center; gap: 13px; min-height: 65px; padding: 0 18px; border-top: 1px solid #edf1f5; color: #667486; font-size: 8.5px; }
.source-manager-row > span:first-child { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #e8f3ff; color: #087cf0; font-weight: 800; }
.property-library-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.property-library-stats article { display: flex; align-items: center; gap: 14px; min-height: 106px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.property-library-stats article > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: var(--mint); color: var(--green); font-size: 22px; }
.property-library-stats article:nth-child(2) > span { background: #e6f6ef; color: #16805d; }
.property-library-stats article:nth-child(3) > span { background: #fff2dc; color: #a66a09; }
.property-library-stats div { display: flex; flex-direction: column; }
.property-library-stats small { color: var(--muted); font-size: 12px; font-weight: 700; }
.property-library-stats strong { color: var(--ink); font: 800 28px "Manrope"; }
.property-library-card { overflow: hidden; }
.property-library { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 20px; }
.property-library .property-card { grid-template-columns: 1fr; min-height: 0; }
.property-library .property-image { height: 230px; min-height: 230px; }
.property-library .property-card h3 { font-size: 16px; }
.property-library .price { font-size: 20px; }
.property-library-empty { grid-column: 1 / -1; min-height: 330px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; padding: 40px; text-align: center; }
.property-library-empty > span { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 20px; background: var(--mint); color: var(--green); font-size: 31px; }
.property-library-empty > div { display: flex; flex-direction: column; gap: 5px; }
.property-library-empty strong { font: 800 19px "Manrope"; }
.property-library-empty small { max-width: 480px; color: var(--muted); font-size: 13px; }
.owner-admin-panel { margin-top: 32px; padding-top: 27px; border-top: 1px solid var(--line); }
.owner-admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.owner-admin-heading h3 { margin: 5px 0 3px; font: 800 21px "Manrope"; }
.owner-admin-heading p { margin: 0; color: var(--muted); font-size: 12px; }

/* Dashboard operacional */
.operations-welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding: 5px 2px; }
.operations-welcome .eyebrow { display: block; margin-bottom: 6px; color: #087cf0; }
.operations-welcome h2 { margin: 0 0 4px; font: 800 29px "Manrope"; letter-spacing: -1px; }
.operations-welcome p { margin: 0; color: #738078; font-size: 12px; }
.operations-actions { display: flex; gap: 9px; }
.operations-actions .outline-button,
.operations-actions .primary-button { min-height: 46px; padding-inline: 17px; }

.operations-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.operation-metric { position: relative; min-width: 0; display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 16px; min-height: 150px; padding: 22px; overflow: hidden; border: 1px solid #dfe7e2; border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(27,48,39,.035); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.operation-metric:hover { transform: translateY(-2px); border-color: #cad9d1; box-shadow: 0 13px 30px rgba(27,48,39,.07); }
.operation-metric > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; }
.operation-metric > span svg { width: 25px; }
.operation-metric.blue > span { color: #087cf0; background: #e8f3ff; }
.operation-metric.amber > span { color: #a76c13; background: #fff1d9; }
.operation-metric.violet > span { color: #7754a8; background: #f0eafa; }
.operation-metric.green > span { color: #16805d; background: #e1f4eb; }
.operation-metric > div { min-width: 0; display: flex; flex-direction: column; }
.operation-metric small { overflow: hidden; color: #67756d; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.operation-metric strong { margin: 1px 0 0; color: #091627; font: 800 34px "Manrope"; letter-spacing: -1px; }
.operation-metric em { overflow: hidden; color: #8a9690; font-size: 11px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.operation-metric > button { position: absolute; left: 90px; bottom: 17px; padding: 0; border: 0; background: none; color: #087cf0; font-size: 11px; font-weight: 800; }

.operations-primary-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(310px, .72fr); gap: 18px; margin-bottom: 18px; }
.operations-secondary-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: 18px; margin-bottom: 18px; }
.live-label { padding: 5px 8px; border-radius: 20px; background: #e6f5ee; color: #16805d; font-size: 7px; font-weight: 800; letter-spacing: .5px; }
.operations-priorities,
.operations-funnel,
.operations-clients,
.operations-activity,
.operations-sources { overflow: hidden; }
.operations-priorities > div:last-child,
.operations-clients > div:last-child,
.operations-activity > div:last-child { padding: 0 18px; }
.operations-priorities article { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 15px; min-height: 88px; border-bottom: 1px solid #edf1ee; }
.operations-priorities article:last-child { border-bottom: 0; }
.operations-priorities article > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-size: 14px; font-weight: 900; }
.operations-priorities article.urgent > span { color: #b53b4a; background: #fdebed; }
.operations-priorities article.attention > span { color: #a36b18; background: #fff1d9; }
.operations-priorities article.info > span { color: #0874d7; background: #e7f3ff; }
.operations-priorities article.neutral > span { color: #607284; background: #edf2f6; font-size: 7px; }
.operations-priorities article > div { min-width: 0; display: flex; flex-direction: column; }
.operations-priorities article strong { color: #172332; font: 700 14px "Manrope"; }
.operations-priorities article small { margin-top: 2px; color: #86928c; font-size: 11px; }
.operations-priorities article button { padding: 9px 11px; border: 1px solid #d8e2dc; border-radius: 8px; background: white; color: #3f6f5b; font-size: 10.5px; font-weight: 800; }
.operations-all-clear { min-height: 150px; display: flex; align-items: center; justify-content: center; gap: 14px; color: #688076; }
.operations-all-clear > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #e1f4eb; color: #16805d; font-weight: 900; }
.operations-all-clear div { display: flex; flex-direction: column; }
.operations-all-clear strong { color: #1b3329; font: 750 15px "Manrope"; }
.operations-all-clear small { margin-top: 2px; font-size: 11px; }

.operations-funnel > div:last-child { display: grid; gap: 16px; padding: 22px 20px 24px; }
.operations-funnel article > div { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.operations-funnel article span { color: #59675f; font-size: 13px; font-weight: 700; }
.operations-funnel article strong { color: #102019; font: 800 18px "Manrope"; }
.operations-funnel article > i { display: block; height: 7px; overflow: hidden; border-radius: 10px; background: #edf2ef; }
.operations-funnel article > i b { display: block; height: 100%; border-radius: inherit; transition: width .55s cubic-bezier(.2,.8,.3,1); }
.operations-funnel b.blue { background: #087cf0; }
.operations-funnel b.cyan { background: #18b9cf; }
.operations-funnel b.amber { background: #e6a43a; }
.operations-funnel b.green { background: #18a774; }

.operations-clients article,
.operations-activity article { display: grid; align-items: center; gap: 12px; min-height: 70px; border-bottom: 1px solid #edf1ee; }
.operations-clients article:last-child,
.operations-activity article:last-child { border-bottom: 0; }
.operations-clients article { grid-template-columns: 36px minmax(0,1fr) auto; }
.operations-clients article > div,
.operations-activity article > div { min-width: 0; display: flex; flex-direction: column; }
.operations-clients article strong,
.operations-activity article strong { overflow: hidden; color: #172332; font: 700 13.5px "Manrope"; text-overflow: ellipsis; white-space: nowrap; }
.operations-clients article small,
.operations-activity article small { overflow: hidden; color: #87938d; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.operations-clients article button,
.operations-activity article button { padding: 0; border: 0; background: none; color: #087cf0; font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.operations-activity article { grid-template-columns: 34px minmax(0,1fr) auto; }
.operations-activity article > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; font-size: 10px; font-weight: 900; }
.operations-activity article > span.sent { color: #16805d; background: #e1f4eb; }
.operations-activity article > span.draft { color: #9a681c; background: #fff1d9; }
.operations-activity article > span.search { color: #087cf0; background: #e8f3ff; }

.operations-sources .card-heading > div:last-child { display: flex; align-items: center; gap: 12px; }
.operations-sources .card-heading > div:last-child > span { padding: 5px 8px; border-radius: 10px; background: #eff4f1; color: #6b7972; font-size: 8px; font-weight: 700; }
.operations-sources .source-health-grid { min-height: 96px; }

/* Movimento sutil: resposta visual sem tirar o foco da operação. */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}
@keyframes itemEnter {
  from { opacity: 0; transform: translateY(7px) scale(.992); }
  to { opacity: 1; transform: none; }
}
@keyframes modalBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalEnter {
  from { opacity: 0; transform: translateY(15px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes metricPop {
  0% { transform: translateY(4px); opacity: .45; }
  65% { transform: translateY(-1px); }
  100% { transform: none; opacity: 1; }
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(46,160,110,.14); }
  50% { box-shadow: 0 0 0 6px rgba(46,160,110,0); }
}
@keyframes logoBreathe {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 8px 14px rgba(8,124,255,.12)); }
  50% { transform: translateY(-3px); filter: drop-shadow(0 12px 20px rgba(0,227,165,.22)); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.content.page-enter { animation: pageEnter .34s cubic-bezier(.22,.8,.3,1) both; }
.content.page-enter > * { animation: itemEnter .38s cubic-bezier(.22,.8,.3,1) both; }
.content.page-enter > :nth-child(2) { animation-delay: 45ms; }
.content.page-enter > :nth-child(3) { animation-delay: 85ms; }
.content.page-enter > :nth-child(4) { animation-delay: 115ms; }

.dashboard-card,
.metric-card,
.table-row,
.lead-board article,
.source-manager-row {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dashboard-card:hover,
.metric-card:hover { border-color: #cddad3; box-shadow: 0 12px 30px rgba(31,52,43,.065); }
.metric-card:hover { transform: translateY(-2px); }
.table-row:hover,
.source-manager-row:hover { background: #fbfdfc; }
.lead-board article { animation: itemEnter .3s ease both; }
.lead-board article:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(13,23,40,.08); }
.results-grid .property-card { animation: itemEnter .36s ease both; }
.results-grid .property-card:nth-child(2) { animation-delay: 55ms; }
.results-grid .property-card:nth-child(3) { animation-delay: 95ms; }
.results-grid .property-card:nth-child(4) { animation-delay: 125ms; }

button,
.ghost-button,
.outline-button { transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease; }
button:active:not(:disabled) { transform: scale(.975); }
.primary-button:hover { box-shadow: 0 10px 24px rgba(18,107,77,.24); }
.primary-button:disabled::after,
.entity-form.busy .primary-button::after,
.auth-form.busy .primary-button::after {
  content: ""; width: 14px; height: 14px; flex: 0 0 auto; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite;
}

.modal-backdrop:not(.hidden) { animation: modalBackdropIn .2s ease both; }
.modal-backdrop:not(.hidden) .modal { animation: modalEnter .28s cubic-bezier(.2,.8,.25,1) both; }
.metric-card strong.metric-updated { animation: metricPop .42s ease both; }
.mode-pill.live i,
.mode-pill.feed i { animation: statusPulse 2.2s ease-in-out infinite; }
.auth-orbit-symbol img { animation: logoBreathe 4.2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 760px) {
  .search-client-context,
  .selection-tray { align-items: stretch; flex-direction: column; }
  .search-client-context label { width: 100%; }
  .selection-tray > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .selection-tray #sendSelectionButton { grid-column: 1 / -1; }
  .selection-history-row { grid-template-columns: 38px minmax(0,1fr) auto; padding: 12px; }
  .selection-history-row time { display: none; }
  .selection-history-row button { grid-column: 2 / -1; width: fit-content; }
  .card-footer { flex-wrap: wrap; }
  .reason { flex-basis: 100%; }
  .operations-welcome { align-items: flex-start; flex-direction: column; }
  .operations-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .operations-actions button { width: 100%; }
  .operations-welcome h2 { font-size: 25px; }
  .operations-metrics,
  .operations-primary-grid,
  .operations-secondary-grid { grid-template-columns: 1fr; }
  .operation-metric { min-height: 116px; }
  .operations-priorities article { grid-template-columns: 34px minmax(0,1fr); padding: 11px 0; }
  .operations-priorities article button { grid-column: 2; width: fit-content; }
  .operations-sources .card-heading { align-items: flex-start; flex-direction: column; }
}

@media (min-width: 761px) and (max-width: 1120px) {
  .operations-metrics { grid-template-columns: 1fr 1fr; }
  .operations-primary-grid,
  .operations-secondary-grid { grid-template-columns: 1fr; }
}
.source-manager-row > div { min-width: 0; display: flex; flex-direction: column; }
.source-manager-row strong { overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.source-manager-row small { overflow: hidden; color: #8995a1; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.source-manager-row em { width: fit-content; padding: 4px 7px; border-radius: 8px; font-size: 7px; font-style: normal; font-weight: 800; }
.source-manager-row em.active { color: #11805f; background: #e4f6ef; }
.source-manager-row em.error { color: #bb4e58; background: #ffebed; }
.source-manager-row em.pending { color: #9c6a1f; background: #fff1dc; }
.source-manager-row button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--green); font-size: 8px; font-weight: 700; }

.workflow-board { padding-bottom: 18px; overflow: hidden; }
.workflow-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 18px; }
.workflow-columns article { min-height: 145px; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafc; }
.workflow-columns span { display: block; margin-bottom: 24px; color: var(--green); font-size: 7px; font-weight: 800; letter-spacing: .8px; }
.workflow-columns strong { display: block; font: 700 11px "Manrope"; }
.workflow-columns small { display: block; margin-top: 6px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.workflow-columns button { margin-top: 9px; border: 1px solid #b8d8f5; border-radius: 7px; padding: 6px 8px; background: #f7fbff; color: var(--blue); font: 700 8px "Manrope"; cursor: pointer; }
.empty-feature-card { min-height: 350px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 40px; text-align: center; }
.feature-symbol { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--mint); color: var(--green); font-size: 32px; }
.empty-feature-card h3 { margin: 15px 0 5px; font: 800 17px "Manrope"; }
.empty-feature-card p { max-width: 470px; margin: 0 0 18px; color: var(--muted); font-size: 10px; }
.agenda-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .6fr); gap: 15px; }
.agenda-calendar, .agenda-today { overflow: hidden; }
.calendar-controls { display: flex; gap: 5px; }
.calendar-controls button { min-width: 28px; height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font-size: 9px; }
.calendar-week, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 18px; }
.calendar-week b { padding: 10px 4px; color: #8995a1; font-size: 7px; text-align: center; }
.calendar-days { padding-bottom: 18px; }
.calendar-days span { min-height: 58px; padding: 7px; border-top: 1px solid #edf1f5; border-left: 1px solid #edf1f5; color: #526173; font-size: 9px; }
.calendar-days span:nth-child(7n) { border-right: 1px solid #edf1f5; }
.calendar-days span:nth-last-child(-n+7) { border-bottom: 1px solid #edf1f5; }
.calendar-days .muted { color: #bec6cf; background: #fafbfc; }
.calendar-days .today { position: relative; color: white; background: linear-gradient(135deg, #087cf0, #18cfa0); font-weight: 800; }
.agenda-today .empty-module-state { min-height: 310px; justify-content: center; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.settings-card { min-height: 120px; display: grid; grid-template-columns: 45px 1fr auto; align-items: center; gap: 14px; padding: 18px; }
.settings-profile-card { align-items: start; }
.inline-settings-form { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(130px, .65fr) auto; gap: 8px; margin-top: 12px; }
.inline-settings-form input { min-width: 0; height: 35px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: 600 10px "Manrope"; color: var(--ink); }
.preferences-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; }
.preferences-form label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.preferences-form input { accent-color: var(--green); }
.team-invite-list { margin-top: 10px; color: var(--muted); font-size: 9px; }
.team-invite-list p { margin: 4px 0; }
.smart-property-card textarea, .smart-preview textarea { width: 100%; box-sizing: border-box; margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; padding: 14px; font: 500 13px "Manrope"; color: var(--ink); resize: vertical; }
.smart-property-actions { display: flex; justify-content: flex-end; }
.smart-preview { margin-top: 16px; padding: 20px; }
.report-stat-grid { grid-template-columns: repeat(3, 1fr); }
.report-priority-list { display: grid; gap: 10px; padding: 16px 20px 20px; }
.report-priority-list p { margin: 0; color: var(--muted); font-size: 11px; }
.settings-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; background: var(--mint); color: var(--green); font-size: 20px; }
.settings-card h3 { margin: 0 0 4px; font: 750 12px "Manrope"; }
.settings-card p { margin: 0; color: var(--muted); font-size: 8.5px; }
.settings-card small { display: block; margin-top: 7px; color: #138461; font-size: 7.5px; font-weight: 700; }
.settings-card button { white-space: nowrap; }
.security-card { border-color: #bfe9db; background: linear-gradient(135deg, #fff, #f1fbf7); }
.security-status { padding: 6px 8px; border-radius: 12px; background: #dff6ee; color: #12805f; font-size: 7px; font-weight: 800; }

/* Escala de leitura para o painel em notebooks e monitores */
@media (min-width: 981px) {
  .content {
    max-width: 1500px;
    padding: 40px clamp(28px, 2.6vw, 44px) 90px;
  }
  .dashboard-content { max-width: 1600px; }

  .meta-hero { padding: 42px 44px 0; }
  .meta-kicker { font-size: 12px; }
  .meta-hero h2 { margin-top: 10px; font-size: 40px; line-height: 1.12; }
  .meta-hero > p { font-size: 16px; }
  .meta-searchbar { margin-top: 30px; padding: 10px; }
  .meta-searchbar label { padding: 0 14px; }
  .meta-searchbar label > span { margin-bottom: 0; font-size: 11px; }
  .meta-searchbar input,
  .meta-searchbar select { height: 48px; font-size: 17px; }
  .meta-searchbar .primary-button { min-width: 195px; height: 56px; font-size: 15px; }
  .source-strip { min-height: 64px; gap: 23px; }
  .source-strip > span { font-size: 10px; }
  .source-strip b { font-size: 11px; }
  .source-strip em { padding: 6px 10px; font-size: 10px; }

  .metric-grid { gap: 16px; margin-bottom: 20px; }
  .metric-card { min-height: 145px; gap: 17px; padding: 24px; }
  .metric-icon { width: 50px; height: 50px; }
  .metric-icon svg { width: 24px; }
  .metric-card div > span { font-size: 15px; }
  .metric-card strong { font-size: 33px; }
  .metric-card small { font-size: 12px; }
  .mini-ring { right: 18px; width: 58px; height: 58px; }
  .mini-ring b { font-size: 11px; }

  .dashboard-grid,
  .dashboard-bottom { gap: 20px; }
  .card-heading { padding: 24px 25px; }
  .card-heading h3,
  .portal-teaser h3 { font-size: 20px; }
  .card-heading p { font-size: 14px; }
  .small-link { font-size: 13px; }

  .meta-search-list { padding: 0 24px; }
  .meta-search-list article {
    grid-template-columns: 46px minmax(220px, 1fr) 94px 76px 102px;
    gap: 15px;
    min-height: 102px;
  }
  .search-home-icon { width: 42px; height: 42px; }
  .search-home-icon svg { width: 21px; }
  .meta-search-list strong { font-size: 15px; }
  .meta-search-list small { font-size: 12px; }
  .meta-search-list article > span:nth-child(3) { font-size: 11px; }
  .meta-search-list article > span:nth-child(3) b { font-size: 16px; }
  .meta-search-list article > em { padding: 7px 10px; font-size: 10px; }
  .meta-search-list article > button { padding: 9px 11px; font-size: 11px; }

  .price-radar { padding-inline: 24px; }
  .price-radar article { min-height: 102px; gap: 14px; }
  .price-radar article > span { min-width: 48px; padding: 9px; font-size: 12px; }
  .price-radar strong { font-size: 14px; }
  .price-radar small { font-size: 11.5px; }
  .price-radar button { font-size: 11px; }

  .source-health-grid { padding: 18px; }
  .source-health-grid > span { grid-template-columns: 34px 1fr; column-gap: 10px; padding: 10px; }
  .source-logo { width: 34px; height: 34px; font-size: 11px; }
  .source-health-grid b { font-size: 13px; }
  .source-health-grid em { font-size: 10px; }
  .demo-tag { font-size: 10px; }
  .dashboard-empty-state { min-height: 205px; }
  .dashboard-empty-state strong { font-size: 16px; }
  .dashboard-empty-state span { font-size: 13px; }
  .preview-badge { font-size: 10px; }

  .system-page-heading h2 { font-size: 30px; }
  .system-page-heading p { font-size: 14px; }
  .table-head { font-size: 11px; }
  .table-row { min-height: 82px; font-size: 12px; }
  .table-row span > b { font-size: 13px; }
  .table-row small { font-size: 10.5px; }
  .status { font-size: 10px; }
  .document-row { min-height: 80px; font-size: 11px; }
  .document-row strong { font-size: 13px; }
  .document-row small { font-size: 10px; }
  .lead-board header { font-size: 10px; }
  .lead-board article strong { font-size: 13px; }
  .lead-board article p { font-size: 11px; }
  .lead-board article small { font-size: 9.5px; }

  /* Escala interna compartilhada por todas as abas */
  .eyebrow { font-size: 12px; }
  .search-intro h2,
  .results-heading h2,
  .page-heading h2,
  .empty-page h2 { font-size: 29px; }
  .search-intro p,
  .empty-page p { font-size: 14px; }
  .ghost-button,
  .outline-button,
  .primary-button { font-size: 14px; }
  .search-panel { padding: 30px; }
  .smart-input textarea { min-height: 96px; font-size: 15px; }
  .ai-label { font-size: 12px; }
  .divider { font-size: 12px; }
  .filter-grid label > span,
  .features-row > span { font-size: 13px; }
  .filter-grid input,
  .filter-grid select { height: 48px; font-size: 14px; }
  .feature-chips button { padding: 9px 14px; font-size: 13px; }
  .search-footer p { font-size: 13px; }
  .demo-notice { font-size: 14px; }

  .property-card { grid-template-columns: 190px minmax(0, 1fr); min-height: 250px; }
  .property-image { min-height: 250px; }
  .property-body { padding: 20px; }
  .source { font-size: 11px; }
  .property-card h3 { font-size: 17px; }
  .location { font-size: 13px; }
  .price { font-size: 21px; }
  .price small { font-size: 11px; }
  .property-features { font-size: 12px; }
  .reason { font-size: 11px; }
  .source-link { font-size: 12px; }

  .toolbar-filters button { padding: 8px 11px; font-size: 12px; }
  .toolbar-filters b { font-size: 10px; }
  .table-search { width: 310px; }
  .table-search input { height: 48px; font-size: 13px; }
  .client-avatar { width: 38px; height: 38px; font-size: 11px; }

  .opportunity-summary article { padding: 20px; }
  .opportunity-summary span { font-size: 12px; }
  .opportunity-summary strong { font-size: 27px; }
  .opportunity-summary small { font-size: 10.5px; }
  .board-title { font-size: 10px; }
  .board-column article { padding: 18px; }
  .board-column article > em { font-size: 10px; }
  .board-column article > strong { font-size: 14px; }
  .board-column article > small { font-size: 11px; }
  .board-column footer b { font-size: 11px; }

  .module-stat-grid article { padding: 20px; }
  .module-stat-grid small { font-size: 12px; }
  .module-stat-grid strong { font-size: 27px; }
  .file-icon { width: 42px; height: 42px; font-size: 9px; }
  .doc-status { font-size: 9px; }

  .lead-board { gap: 16px; }
  .lead-board section { min-height: 430px; }
  .lead-board header { padding: 8px 6px 15px; font-size: 11px; }
  .lead-board article { padding: 17px; }
  .lead-board article strong { font-size: 15px; }
  .lead-board article p { font-size: 13px; }
  .lead-board article small { font-size: 11px; }
  .empty-lead-column { font-size: 12px; }
  .lead-stage { font-size: 11px; }
  .lead-stage select { min-width: 120px; height: 36px; font-size: 11px; }
  .lead-card-actions button { min-height: 40px; font-size: 12px; }

  .conversion-chart .card-heading > strong { font-size: 24px; }
  .conversion-chart .card-heading > strong small { font-size: 11px; }
  .bar-chart b { font-size: 11px; }
  .channel-list span,
  .price-distribution span { font-size: 12px; }

  .ai-online { padding: 9px 13px; font-size: 12px; }
  .ai-workspace { grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
  .ai-conversation { min-height: 650px; padding: 30px; }
  .ai-thread { min-height: 480px; max-height: 580px; }
  .ai-empty { max-width: 720px; }
  .ai-orbit-icon { width: 82px; height: 82px; }
  .ai-orbit-icon img { width: 56px; height: 56px; }
  .ai-empty h3 { font-size: 27px; }
  .ai-empty > p { font-size: 14px; }
  .ai-suggestions { gap: 11px; }
  .ai-suggestions button { padding: 14px; font-size: 13px; }
  .ai-composer textarea { min-height: 58px; font-size: 15px; }
  .ai-composer button { width: 50px; height: 50px; }
  .ai-message > div { padding: 15px 18px; font-size: 15px; }
  .ai-message > span, .ai-privacy-note { font-size: 11px; }
  .ai-context-list { padding: 10px 20px; }
  .ai-context-row { min-height: 62px; font-size: 13px; }
  .ai-capabilities i { width: 8px; height: 8px; }
  .ai-capabilities em { font-size: 11px; }

  .source-standard { font-size: 10px; }
  .source-manager-row {
    grid-template-columns: 42px minmax(220px, 1fr) 100px 110px 120px 90px;
    min-height: 82px;
    font-size: 11px;
  }
  .source-manager-row > span:first-child { width: 38px; height: 38px; }
  .source-manager-row strong { font-size: 13px; }
  .source-manager-row small { font-size: 10px; }
  .source-manager-row em,
  .source-manager-row button { font-size: 10px; }

  .workflow-columns article { min-height: 175px; padding: 20px; }
  .workflow-columns span { font-size: 10px; }
  .workflow-columns strong { font-size: 14px; }
  .workflow-columns small { font-size: 11px; }
  .empty-feature-card h3 { font-size: 22px; }
  .empty-feature-card p { font-size: 14px; }

  .calendar-controls button { min-width: 34px; height: 34px; font-size: 11px; }
  .calendar-week b { font-size: 10px; }
  .calendar-days span { min-height: 72px; font-size: 12px; }
  .empty-module-state strong { font-size: 15px; }
  .empty-module-state span { font-size: 12px; }

  .settings-card { min-height: 145px; padding: 22px; }
  .settings-icon { width: 50px; height: 50px; }
  .settings-card h3 { font-size: 15px; }
  .settings-card p { font-size: 12px; }
  .settings-card small { font-size: 10px; }
  .security-status { font-size: 10px; }

  .comparison-property span { font-size: 10px; }
  .comparison-property h3 { font-size: 17px; }
  .comparison-property p { font-size: 12px; }
  .comparison-saving { font-size: 11px; }
  .offer-source strong { font-size: 13px; }
  .offer-source small { font-size: 10px; }
  .offer-comparison > article > p,
  .offer-comparison ul,
  .offer-comparison a { font-size: 12px; }
  .comparison-disclaimer { font-size: 11px; }

  .alert-status { font-size: 10px; }
  .alert-list h3 { font-size: 16px; }
  .alert-list p { font-size: 12px; }
  .alert-list small,
  .alert-news,
  .alert-list article > button { font-size: 11px; }
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  main { grid-column: 1; }
  .sidebar { transform: translateX(-105%); transition: .25s; box-shadow: 20px 0 60px rgba(0,0,0,.2); }
  .sidebar.open { transform: none; }
  .mobile-menu { display: grid; }
  .topbar { min-height: 90px; padding: 18px 24px; }
  .topbar-title { margin-right: auto; margin-left: 14px; }
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid, .dashboard-bottom { grid-template-columns: 1fr; }
  .table-head, .table-row { grid-template-columns: 1.1fr 1.2fr .7fr; }
  .table-head span:nth-child(4), .table-row > span:nth-child(4) { display: none; }
  .meta-searchbar { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
  .meta-searchbar label { border: 0; }
  .meta-searchbar .primary-button { grid-column: 1 / 3; }
  .source-strip { overflow-x: auto; }
  .meta-grid { grid-template-columns: 1fr; }
  .property-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-comparison { grid-template-columns: 1fr; }
  .lead-board { grid-template-columns: 1fr 1fr; }
  .analytics-grid { grid-template-columns: 1fr; }
  .conversion-chart, .market-chart { grid-column: 1; grid-row: auto; }
  .ai-workspace { grid-template-columns: 1fr; }
  .workflow-columns { grid-template-columns: 1fr 1fr; }
  .agenda-layout { grid-template-columns: 1fr; }
  .auth-gate { grid-template-columns: 1fr; overflow-y: auto; }
  .auth-brand-panel { display: none; }
  .auth-mobile-brand { display: block; margin-bottom: 25px; color: #08182f; font: 800 20px "Manrope"; letter-spacing: 5px; text-align: center; }
}

@media (max-width: 700px) {
  .topbar h1 { font-size: 22px; }
  .mode-pill { display: none; }
  .notification-panel { position: fixed; top: 78px; right: 16px; left: 16px; width: auto; }
  .content { width: 100%; min-width: 0; padding: 28px 16px 60px; overflow: hidden; }
  .search-intro { align-items: flex-start; }
  .results-heading { align-items: stretch; flex-wrap: wrap; gap: 10px; }
  .results-heading > div:first-child { width: 100%; }
  .results-heading > .outline-button { flex: 1 1 calc(50% - 6px); justify-content: center; min-height: 46px; padding-inline: 10px; }
  .results-heading > .outline-button:last-child { flex-basis: 100%; }
  .search-criteria-summary { font-size: 12px; line-height: 1.5; }
  .ghost-button { font-size: 0; padding: 9px; }
  .filter-grid { grid-template-columns: minmax(0, 1fr); }
  .search-panel { padding: 17px; border-radius: 14px; }
  .smart-input textarea { padding-right: 45px; min-height: 100px; }
  .ai-label { font-size: 0; padding: 5px; }
  .ai-label::after { content: "IA"; font-size: 9px; }
  .voice-search-button { right: 10px; bottom: 10px; min-width: 42px; width: 42px; height: 42px; padding: 0; }
  .voice-search-button span { display: none; }
  .search-footer { align-items: stretch; flex-direction: column; gap: 14px; }
  .search-footer .primary-button { width: 100%; }
  .results-grid { grid-template-columns: 1fr; }
  .property-library-stats,
  .property-library { grid-template-columns: 1fr; }
  .property-library { padding: 14px; }
  .property-library .property-image { height: 210px; min-height: 210px; }
  .owner-admin-heading { align-items: stretch; flex-direction: column; }
  .property-card { grid-template-columns: 120px minmax(0, 1fr); }
  .property-image { min-height: 200px; }
  .plans-grid { grid-template-columns: 1fr; max-height: 65vh; overflow-y: auto; }
  .plans-grid p { min-height: auto; }
  .dashboard-welcome, .system-page-heading { align-items: stretch; flex-direction: column; }
  .dashboard-welcome .primary-button, .system-page-heading .primary-button { width: 100%; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 102px; padding: 13px; }
  .metric-icon { display: none; }
  .credit-metric { padding-right: 58px; }
  .dashboard-grid, .dashboard-bottom { gap: 12px; }
  .demand-row { grid-template-columns: 32px minmax(0, 1fr) 55px; }
  .demand-request, .row-action { display: none; }
  .pipeline { overflow-x: auto; }
  .pipeline > div { min-width: 100px; }
  .portal-teaser { align-items: flex-start; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .table-search { width: 100%; }
  .toolbar-filters { overflow-x: auto; }
  .toolbar-filters button { white-space: nowrap; }
  .table-head { display: none; }
  .table-row { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .table-row > span:nth-child(2), .table-row > span:nth-child(4) { display: none; }
  .table-row > span:nth-child(3) { grid-column: 1; padding-left: 41px; }
  .table-row > button { grid-column: 2; grid-row: 1; }
  .opportunity-summary { grid-template-columns: 1fr 1fr; }
  .opportunity-board { grid-template-columns: 1fr; }
  .meta-hero { padding: 24px 18px 0; }
  .meta-hero h2 { font-size: 22px; }
  .meta-searchbar { grid-template-columns: 1fr; }
  .meta-searchbar .primary-button { grid-column: 1; }
  .source-strip { gap: 13px; }
  .source-health-grid { grid-template-columns: 1fr 1fr; }
  .source-health-grid > span { border-right: 0; }
  .meta-search-list article { grid-template-columns: 31px minmax(0, 1fr) 54px; }
  .meta-search-list article > span:nth-child(3), .meta-search-list article > button { display: none; }
  .comparison-context { align-items: flex-start; flex-direction: column; }
  .comparison-saving { padding: 0; border: 0; }
  .alert-list article { grid-template-columns: 55px 1fr; }
  .alert-news, .alert-list article > button { grid-column: 2; text-align: left; }
  .alert-news b { display: inline; margin-right: 4px; }
  .module-stat-grid { grid-template-columns: 1fr; }
  .document-row { grid-template-columns: 36px 1fr 25px; padding: 10px 14px; }
  .document-row > em, .document-row > span:nth-child(4) { display: none; }
  .lead-board { grid-template-columns: 1fr; }
  .bar-chart { gap: 9px; padding-inline: 15px; }
  .ai-suggestions { grid-template-columns: 1fr; }
  .workflow-columns, .settings-grid { grid-template-columns: 1fr; }
  .inline-settings-form, .report-stat-grid { grid-template-columns: 1fr; }
  .settings-card { grid-template-columns: 40px 1fr; }
  .settings-card > button, .security-status { grid-column: 2; justify-self: start; }
  .modal-backdrop { align-items: start; padding: 12px; overflow-y: auto; }
  .form-modal { margin: 18px 0; padding: 25px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field-wide { grid-column: auto; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions button { width: 100%; }
}

/* Mobile hardening: dashboard cards must never depend on absolute positioning. */
.onboarding-card { overflow: hidden; }
.onboarding-steps { display: flex; flex-wrap: wrap; gap: 9px; padding: 0 18px 18px; }
.onboarding-steps button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 9px 12px; border: 1px solid #d8e2dc; border-radius: 10px; background: #fff; color: #50625a; font: 700 11px "DM Sans"; cursor: pointer; }
.onboarding-steps button.done { border-color: #bde8d8; background: #effaf5; color: #167e5d; }
.quick-notes-card { overflow: hidden; }
.quick-notes-card form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 0 18px 16px; }
.quick-notes-card textarea { width: 100%; min-height: 82px; padding: 12px; resize: vertical; border: 1px solid #d6e0e3; border-radius: 10px; color: var(--ink); font: 13px/1.45 "DM Sans"; }
.quick-notes-card form .primary-button { align-self: end; min-height: 46px; white-space: nowrap; }
#quickNoteList { display: grid; gap: 8px; padding: 0 18px 18px; }
#quickNoteList p { margin: 0; padding: 11px 12px; border-radius: 9px; background: #f7faf8; color: #53645d; font-size: 12px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .meta-dashboard > .dashboard-card { margin-top: 22px; }
  .operation-metric { grid-template-columns: 50px minmax(0, 1fr); min-height: 0; padding: 18px; }
  .operation-metric > div { min-height: 65px; }
  .operation-metric small,
  .operation-metric em { overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.28; }
  .operation-metric > button { position: static; grid-column: 2; justify-self: start; margin-top: 4px; min-height: 30px; }
  .onboarding-steps { display: grid; grid-template-columns: 1fr 1fr; padding: 0 16px 16px; }
  .onboarding-steps button { width: 100%; justify-content: flex-start; font-size: 11px; }
  .quick-notes-card form { grid-template-columns: 1fr; padding: 0 16px 16px; }
  .quick-notes-card form .primary-button { width: 100%; }
  #quickNoteList { padding: 0 16px 16px; }
}

@media (max-width: 420px) {
  .operations-actions { grid-template-columns: 1fr; }
  .onboarding-steps { grid-template-columns: 1fr; }
  .operation-metric { gap: 13px; padding: 16px; }
  .operation-metric > span { width: 46px; height: 46px; }
  .operation-metric strong { font-size: 31px; }
}

/* One-column safety net for every operational module on a phone. */
@media (max-width: 700px) {
  .profile-filter-grid,
  .calculator-result-grid,
  .portfolio-review-list,
  .property-library-stats,
  .source-health-grid,
  .opportunity-summary,
  .auth-two-columns { grid-template-columns: 1fr; }

  .calculator-layout { grid-template-columns: minmax(0, 1fr); }
  .calculator-form, .calculator-result { padding: 18px; }
  .source-health-grid { gap: 9px; padding: 14px; }
  .source-health-grid > span { border: 0; border-radius: 10px; background: #f8faf9; }
  .portfolio-review-list article { padding: 12px; }
  .portfolio-review-list strong,
  .portfolio-review-list small { overflow: visible; white-space: normal; text-overflow: clip; }

  .source-manager-row { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 13px 14px; min-height: 0; }
  .source-manager-row > :not(:first-child):not(:nth-child(2)) { grid-column: 2; }
  .source-manager-row strong,
  .source-manager-row small { overflow: visible; white-space: normal; text-overflow: clip; }

  .selection-history-row { align-items: start; }
  .selection-history-row strong,
  .selection-history-row small { overflow: visible; white-space: normal; text-overflow: clip; }
  .timeline-event { grid-template-columns: 34px minmax(0, 1fr); }
  .timeline-event time { grid-column: 2; }
  .notification-item { grid-template-columns: 42px minmax(0, 1fr); }
  .notification-item > b { grid-column: 2; }
}

@media (max-width: 520px) {
  .property-card { grid-template-columns: 1fr; }
  .property-image { min-height: 185px; height: 185px; }
  .property-body { padding: 15px; }
  .property-card h3,
  .location { overflow: visible; white-space: normal; text-overflow: clip; }
  .property-meta { flex-wrap: wrap; }
  .card-footer { align-items: flex-start; flex-wrap: wrap; }
  .reason { flex-basis: 100%; overflow: visible; white-space: normal; text-overflow: clip; }
  .source-link { margin-left: auto; }
}

/* iOS Safari can make the visual viewport wider than the layout viewport when
   a grid child, fixed panel or long URL overflows. Keep the app anchored to the
   screen; deliberate horizontal scrolling remains inside its own components. */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

img, video, canvas, svg { max-width: 100%; }

@media (max-width: 980px) {
  .app-shell,
  main,
  main > .content,
  .topbar,
  .search-panel,
  .dashboard-card,
  .form-modal {
    min-width: 0;
    max-width: 100%;
  }

  .app-shell,
  main { width: 100%; overflow-x: hidden; }

  @supports (overflow: clip) {
    .app-shell,
    main { overflow-x: clip; }
  }

  input, select, textarea, button { max-width: 100%; }
}

/* Safari-specific viewport and touch safeguards. */
@supports (-webkit-touch-callout: none) {
  .app-shell { min-height: 100dvh; }
  .sidebar { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .toast { bottom: max(16px, calc(16px + env(safe-area-inset-bottom))); }
  .modal-backdrop { padding-bottom: max(12px, calc(12px + env(safe-area-inset-bottom))); }
  select { -webkit-appearance: none; }
}

button, a, input, select, textarea { touch-action: manipulation; }
