:root {
  --font-dm-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-manrope: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink-950: #10241f;
  --ink-900: #173129;
  --ink-800: #27443b;
  --ink-700: #3d5a50;
  --ink-600: #5a7169;
  --ink-500: #768a83;
  --ink-400: #9aa9a3;
  --ink-300: #bcc7c2;
  --ink-200: #d8dedb;
  --ink-150: #e5e9e6;
  --ink-100: #eef1ef;
  --paper: #f5f3ed;
  --surface: #fffdfa;
  --white: #ffffff;
  --mustard: #f0c95f;
  --mustard-soft: #fff3c9;
  --red: #d9594c;
  --red-soft: #ffe9e4;
  --amber: #d8892e;
  --amber-soft: #fff0da;
  --blue: #4d79cf;
  --blue-soft: #e9efff;
  --violet: #805fc7;
  --violet-soft: #f0eafd;
  --green: #3a9a6c;
  --green-soft: #e4f6ec;
  --teal: #258b82;
  --teal-soft: #e2f5f2;
  --shadow-sm: 0 1px 2px rgba(16, 36, 31, 0.06), 0 8px 24px rgba(16, 36, 31, 0.04);
  --shadow-md: 0 16px 46px rgba(16, 36, 31, 0.12), 0 3px 12px rgba(16, 36, 31, 0.08);
  --shadow-lg: 0 30px 90px rgba(16, 36, 31, 0.22);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --topbar-height: 76px;
  --inbox-width: 342px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  color: var(--ink-950);
  background: var(--paper);
  font-family: var(--font-dm-sans), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.momentum-root {
  display: contents;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

svg {
  display: block;
}

.app-shell {
  min-height: 100dvh;
}

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(340px, 1.2fr) minmax(230px, 0.7fr);
  align-items: center;
  gap: 24px;
  height: var(--topbar-height);
  padding: 0 28px;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--ink-950);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--mustard);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand strong {
  font-family: var(--font-manrope), sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.global-search {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 44px;
  padding: 0 11px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.075);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.global-search:focus-within {
  border-color: rgba(240, 201, 95, 0.7);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 4px rgba(240, 201, 95, 0.12);
}

.global-search svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.56);
  stroke-width: 1.9;
  stroke-linecap: round;
}

.global-search input {
  min-width: 0;
  color: var(--white);
  border: 0;
  outline: none;
  background: transparent;
}

.global-search input::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.global-search kbd {
  padding: 3px 7px;
  color: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  font-family: inherit;
  font-size: 11px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 11px;
}

.connection-button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px 7px 11px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.065);
  cursor: pointer;
  transition: background 150ms ease;
}

.connection-button:hover {
  background: rgba(255, 255, 255, 0.11);
}

.connection-button > svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.48);
  stroke-width: 1.8;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #67d494;
  box-shadow: 0 0 0 4px rgba(103, 212, 148, 0.12);
}

.connection-copy {
  display: flex;
  flex-direction: column;
  min-width: 74px;
  text-align: left;
  line-height: 1.15;
}

.connection-copy strong {
  font-size: 12px;
  font-weight: 700;
}

.connection-copy small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.avatar-button {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: var(--ink-950);
  border: 0;
  border-radius: 12px;
  background: var(--mustard);
  font-family: var(--font-manrope), sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.workspace {
  display: grid;
  grid-template-columns: var(--inbox-width) minmax(0, 1fr);
  min-height: calc(100dvh - var(--topbar-height));
}

.inbox-panel {
  position: sticky;
  top: var(--topbar-height);
  display: flex;
  flex-direction: column;
  width: var(--inbox-width);
  height: calc(100dvh - var(--topbar-height));
  overflow: hidden;
  border-right: 1px solid var(--ink-150);
  background: var(--surface);
  transition: width 220ms ease, opacity 180ms ease, transform 220ms ease;
}

body.inbox-collapsed {
  --inbox-width: 0px;
}

body.inbox-collapsed .inbox-panel {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
}

.inbox-launcher {
  position: fixed;
  z-index: 60;
  top: calc(var(--topbar-height) + 14px);
  left: 12px;
  display: none;
  min-width: 48px;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  color: var(--ink-900);
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.inbox-launcher svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inbox-launcher span {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 999px;
  background: var(--mustard);
  font-size: 9px;
  font-weight: 800;
}

body.inbox-collapsed .inbox-launcher {
  display: flex;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 22px 16px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.panel-heading h1,
.portfolio-header h2,
.modal-header h2 {
  margin: 0;
  font-family: var(--font-manrope), sans-serif;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.panel-heading h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 23px;
}

.count-badge {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 7px;
  color: var(--ink-950);
  border-radius: 999px;
  background: var(--mustard);
  font-family: var(--font-dm-sans), sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: var(--ink-600);
  border: 1px solid var(--ink-150);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.icon-button:hover {
  color: var(--ink-950);
  border-color: var(--ink-300);
  background: var(--ink-100);
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inbox-filters {
  display: flex;
  gap: 4px;
  margin: 0 17px 13px;
  padding: 4px;
  border-radius: 10px;
  background: var(--ink-100);
}

.mini-tab {
  flex: 1;
  padding: 7px 8px;
  color: var(--ink-500);
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.mini-tab.is-active {
  color: var(--ink-950);
  background: var(--white);
  box-shadow: 0 1px 4px rgba(16, 36, 31, 0.1);
}

.inbox-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-200) transparent;
}

.inbox-item {
  position: relative;
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 10px;
  width: 100%;
  margin: 0 0 7px;
  padding: 12px 11px 12px 8px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.inbox-item:hover,
.inbox-item.is-selected {
  border-color: var(--ink-150);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.inbox-item.is-unread .inbox-subject {
  color: var(--ink-950);
  font-weight: 800;
}

.inbox-stripe {
  align-self: stretch;
  min-height: 54px;
  border-radius: 999px;
  background: var(--category-color, var(--ink-300));
}

.inbox-item-content {
  min-width: 0;
}

.inbox-item-topline,
.inbox-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.inbox-sender {
  overflow: hidden;
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-time {
  flex: 0 0 auto;
  color: var(--ink-400);
  font-size: 10px;
}

.inbox-subject {
  overflow: hidden;
  margin: 4px 0 3px;
  color: var(--ink-800);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-preview {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.inbox-meta-row {
  margin-top: 8px;
  justify-content: flex-start;
}

.match-chip,
.source-chip,
.status-chip,
.person-role,
.timeline-tag,
.filter-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.match-chip {
  gap: 4px;
  padding: 3px 7px;
  color: var(--ink-600);
  background: var(--ink-100);
  font-size: 9px;
}

.match-chip strong {
  color: var(--ink-800);
}

.match-chip.uncertain {
  color: #8c5718;
  background: var(--amber-soft);
}

.unread-dot {
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 999px;
  background: var(--blue);
}

.inbox-footer {
  padding: 12px 18px 17px;
  border-top: 1px solid var(--ink-150);
  background: rgba(255, 253, 250, 0.96);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  color: var(--ink-700);
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.text-button:hover {
  color: var(--ink-950);
}

.text-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.portfolio-panel {
  min-width: 0;
  padding: 0 30px 46px;
  background:
    radial-gradient(circle at 78% 8%, rgba(240, 201, 95, 0.12), transparent 24rem),
    var(--paper);
}

.portfolio-toolbar {
  position: sticky;
  z-index: 30;
  top: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  margin: 0 -30px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(216, 222, 219, 0.9);
  background: rgba(245, 243, 237, 0.88);
  backdrop-filter: blur(15px);
}

.division-tabs {
  display: flex;
  align-self: stretch;
  gap: 26px;
}

.division-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  color: var(--ink-500);
  border: 0;
  background: transparent;
  font-family: var(--font-manrope), sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.division-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--ink-950);
  content: "";
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 140ms ease, transform 140ms ease;
}

.division-tab.is-active {
  color: var(--ink-950);
}

.division-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.division-tab span {
  display: inline-grid;
  min-width: 21px;
  height: 20px;
  place-items: center;
  padding: 0 6px;
  color: var(--ink-600);
  border-radius: 999px;
  background: var(--ink-150);
  font-family: var(--font-dm-sans), sans-serif;
  font-size: 9px;
}

.view-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.status-control {
  position: relative;
}

.toolbar-menu {
  position: absolute;
  z-index: 45;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  width: 164px;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--ink-150);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.toolbar-menu button {
  width: 100%;
  padding: 8px 9px;
  color: var(--ink-700);
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.toolbar-menu button:hover,
.toolbar-menu button:focus-visible,
.toolbar-menu button.is-active {
  color: var(--ink-950);
  outline: none;
  background: var(--ink-100);
}

.toolbar-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 11px;
  color: var(--ink-600);
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.toolbar-button:hover {
  color: var(--ink-950);
  border-color: var(--ink-300);
  background: var(--white);
}

.toolbar-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toolbar-icon {
  background: rgba(255, 255, 255, 0.64);
}

.toolbar-icon.is-active {
  color: var(--white);
  border-color: var(--ink-950);
  background: var(--ink-950);
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 31px 0 22px;
}

.portfolio-header h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.portfolio-header > div:first-child > p:last-child {
  max-width: 650px;
  margin: 8px 0 0;
  color: var(--ink-500);
  font-size: 13px;
}

.summary-metrics {
  display: flex;
  align-items: stretch;
  gap: 1px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--ink-150);
  border-radius: 13px;
  background: var(--ink-150);
  box-shadow: var(--shadow-sm);
}

.summary-metric {
  display: flex;
  min-width: 92px;
  flex-direction: column;
  justify-content: center;
  padding: 10px 14px;
  background: rgba(255, 253, 250, 0.9);
}

.summary-metric strong {
  font-family: var(--font-manrope), sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.summary-metric span {
  margin-top: 1px;
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.active-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 17px;
}

.filter-pill {
  gap: 7px;
  padding: 6px 9px 6px 11px;
  color: var(--ink-800);
  border: 1px solid var(--ink-200);
  background: var(--white);
  font-size: 10px;
}

.filter-pill button {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  padding: 0;
  color: var(--ink-500);
  border: 0;
  border-radius: 999px;
  background: var(--ink-100);
  cursor: pointer;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 17px;
}

body.focus-mode .property-grid {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  max-width: 1120px;
  margin: 0 auto;
}

.property-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 405px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(216, 222, 219, 0.88);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.property-card::before {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--category-color, var(--ink-300));
  content: "";
}

.property-card:hover,
.property-card:focus-visible {
  border-color: rgba(39, 68, 59, 0.28);
  box-shadow: var(--shadow-md);
  outline: none;
  transform: translateY(-4px);
}

.property-image-wrap {
  position: relative;
  height: 158px;
  overflow: hidden;
  background: var(--ink-150);
}

.property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.commercial-placeholder {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 83% 17%, rgba(240, 201, 95, 0.8) 0 7%, transparent 7.4%),
    linear-gradient(165deg, transparent 0 55%, rgba(34, 75, 65, 0.24) 55.4% 68%, transparent 68.4%),
    linear-gradient(145deg, #9eb6ad 0%, #799a8f 45%, #496c61 100%);
  transform-origin: center;
}

.commercial-placeholder::before {
  position: absolute;
  z-index: 1;
  right: 7%;
  bottom: 13%;
  left: 8%;
  height: 60%;
  clip-path: polygon(0 29%, 14% 29%, 14% 12%, 84% 12%, 84% 29%, 100% 29%, 100% 100%, 0 100%);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 35%),
    linear-gradient(180deg, #dfe3d9 0 11%, #b8c2b6 11% 100%);
  box-shadow: 0 14px 30px rgba(16, 36, 31, 0.3);
  content: "";
}

.commercial-placeholder::after {
  position: absolute;
  z-index: 2;
  right: 15%;
  bottom: 20%;
  left: 19%;
  height: 25%;
  border-top: 5px solid rgba(39, 68, 59, 0.45);
  background:
    linear-gradient(#34584f, #29483f) 88% 100% / 18% 100% no-repeat,
    repeating-linear-gradient(90deg, #a9c0b9 0 18%, #4d6c64 18% 22%) 0 0 / 67% 75% no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(39, 68, 59, 0.13));
  box-shadow: -10px -8px 0 rgba(238, 231, 207, 0.5);
  content: "";
}

.sales-placeholder {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 84% 18%, rgba(240, 201, 95, 0.76) 0 9%, transparent 9.4%),
    linear-gradient(160deg, rgba(77, 121, 207, 0.2) 0 42%, transparent 42.4%),
    linear-gradient(145deg, #c9d8d2 0%, #8eada3 48%, #506f66 100%);
  transform-origin: center;
}

.sales-placeholder::before {
  position: absolute;
  z-index: 1;
  right: 9%;
  bottom: 15%;
  left: 9%;
  height: 56%;
  clip-path: polygon(0 44%, 22% 44%, 22% 26%, 50% 10%, 78% 26%, 78% 44%, 100% 44%, 100% 100%, 0 100%);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(180deg, #efe9d8 0 18%, #c8d2c7 18% 100%);
  box-shadow: 0 14px 30px rgba(16, 36, 31, 0.24);
  content: "";
}

.sales-placeholder::after {
  position: absolute;
  z-index: 2;
  right: 20%;
  bottom: 20%;
  left: 22%;
  height: 24%;
  background:
    linear-gradient(#2d534b, #23463f) 47% 100% / 18% 100% no-repeat,
    repeating-linear-gradient(90deg, #a8c0ba 0 20%, #4c6e66 20% 25%) 0 12% / 38% 68% no-repeat,
    repeating-linear-gradient(90deg, #a8c0ba 0 20%, #4c6e66 20% 25%) 100% 12% / 38% 68% no-repeat;
  content: "";
}

.property-card:hover .property-image {
  transform: scale(1.035);
}

.property-image-wrap::after {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(transparent, rgba(16, 36, 31, 0.57));
  content: "";
}

.image-badges {
  position: absolute;
  z-index: 2;
  top: 11px;
  right: 11px;
  left: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.source-chip {
  gap: 5px;
  padding: 5px 8px;
  color: var(--white);
  background: rgba(16, 36, 31, 0.72);
  font-size: 9px;
  backdrop-filter: blur(8px);
}

.source-chip::before {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #74dc9f;
  content: "";
}

.unread-badge {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  padding: 0 8px;
  color: var(--ink-950);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: var(--mustard);
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(16, 36, 31, 0.16);
}

.property-image-address {
  position: absolute;
  z-index: 2;
  right: 15px;
  bottom: 12px;
  left: 17px;
  color: var(--white);
}

.property-image-address strong {
  display: block;
  overflow: hidden;
  font-family: var(--font-manrope), sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.35px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-image-address span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 10px;
  font-weight: 600;
}

.property-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px 16px 14px 18px;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.status-chip {
  gap: 6px;
  padding: 5px 9px;
  color: var(--chip-ink, var(--ink-700));
  background: var(--chip-bg, var(--ink-100));
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.status-chip::before {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.last-activity {
  color: var(--ink-400);
  font-size: 9px;
  font-weight: 600;
}

.ai-snippet {
  display: flex;
  min-height: 80px;
  flex-direction: column;
  padding: 11px 12px;
  border: 1px solid var(--ink-150);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(238, 241, 239, 0.7), rgba(255, 255, 255, 0.72));
}

.ai-snippet-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.ai-spark {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  color: var(--ink-950);
  border-radius: 5px;
  background: var(--mustard-soft);
  font-size: 9px;
}

.ai-snippet p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ink-700);
  font-size: 11px;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-people {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.person-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-left: -6px;
  color: var(--avatar-ink, var(--ink-800));
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--avatar-bg, var(--ink-150));
  font-size: 9px;
  font-weight: 800;
}

.person-avatar:first-child {
  margin-left: 0;
}

.person-avatar.portfolio-avatar {
  color: var(--ink-900);
  border-color: var(--surface);
  background: linear-gradient(145deg, var(--mustard-soft), var(--mustard));
  box-shadow: inset 0 0 0 1px rgba(115, 87, 26, 0.12);
  font-family: var(--font-manrope), sans-serif;
  letter-spacing: -0.2px;
}

.people-copy {
  min-width: 0;
  flex: 1;
}

.people-copy strong {
  display: block;
  overflow: hidden;
  color: var(--ink-700);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.people-copy span {
  display: block;
  margin-top: 1px;
  color: var(--ink-400);
  font-size: 9px;
}

.card-arrow {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink-500);
  border-radius: 9px;
  background: var(--ink-100);
  transition: color 140ms ease, background 140ms ease, transform 140ms ease;
}

.property-card:hover .card-arrow {
  color: var(--white);
  background: var(--ink-950);
  transform: translateX(2px);
}

.card-arrow svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state {
  display: grid;
  min-height: 410px;
  place-items: center;
  align-content: center;
  padding: 40px;
  text-align: center;
}

.empty-illustration {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  margin-bottom: 14px;
  color: var(--ink-500);
  border-radius: 22px;
  background: var(--ink-150);
  font-size: 30px;
}

.empty-state h3 {
  margin: 0;
  font-family: var(--font-manrope), sans-serif;
  font-size: 18px;
}

.empty-state p {
  margin: 6px 0 18px;
  color: var(--ink-500);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 39px;
  padding: 0 15px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  color: var(--white);
  border: 1px solid var(--ink-950);
  background: var(--ink-950);
}

.primary-button:hover {
  background: var(--ink-800);
}

.secondary-button {
  color: var(--ink-800);
  border: 1px solid var(--ink-200);
  background: var(--white);
}

.secondary-button:hover {
  border-color: var(--ink-300);
  background: var(--ink-100);
}

.drawer-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(9, 25, 21, 0.36);
  backdrop-filter: blur(2px);
  animation: fade-in 160ms ease;
}

.property-drawer {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  width: min(740px, 94vw);
  height: 100dvh;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(102%);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.property-drawer.is-open {
  transform: translateX(0);
}

.drawer-shell {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.drawer-hero {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink-900);
}

.drawer-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.drawer-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(16, 36, 31, 0.96) 5%, rgba(16, 36, 31, 0.63) 54%, rgba(16, 36, 31, 0.28));
  content: "";
}

.drawer-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px 31px 27px;
}

.drawer-close {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(16, 36, 31, 0.52);
  backdrop-filter: blur(8px);
}

.drawer-close:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(16, 36, 31, 0.72);
}

.drawer-source-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.drawer-hero h2 {
  max-width: 560px;
  margin: 0;
  font-family: var(--font-manrope), sans-serif;
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.12;
}

.drawer-hero p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.drawer-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 30px 60px;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-200) transparent;
}

.drawer-section {
  margin-bottom: 25px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.section-heading h3 {
  margin: 0;
  font-family: var(--font-manrope), sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.section-heading span {
  color: var(--ink-400);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.ai-brief {
  position: relative;
  overflow: hidden;
  padding: 19px 20px 17px;
  border: 1px solid #e7d99c;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff8df, #fffdfa 72%);
}

.ai-brief::after {
  position: absolute;
  top: -36px;
  right: -25px;
  width: 115px;
  height: 115px;
  border-radius: 999px;
  background: rgba(240, 201, 95, 0.18);
  content: "";
}

.ai-brief-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.ai-brief-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.ai-brief-title .ai-spark {
  width: 22px;
  height: 22px;
  background: var(--mustard);
  font-size: 12px;
}

.ai-brief-time {
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 700;
}

.ai-brief p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink-800);
  font-size: 13px;
  line-height: 1.57;
}

.ai-brief-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid rgba(208, 180, 93, 0.27);
}

.evidence-links {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 700;
}

.evidence-dot {
  width: 7px;
  height: 7px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--ink-400);
  box-shadow: 0 0 0 1px rgba(16, 36, 31, 0.12);
}

.ai-action {
  padding: 0;
  color: var(--ink-800);
  border: 0;
  background: transparent;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.ai-action:hover {
  text-decoration: underline;
}

.evidence-detail {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(208, 180, 93, 0.27);
}

.evidence-detail article {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.evidence-detail strong {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: var(--ink-900);
  border-radius: 7px;
  background: var(--mustard-soft);
  font-size: 9px;
}

.evidence-detail p {
  margin: 1px 0 0;
  font-size: 10px;
  line-height: 1.45;
}

.evidence-detail p span {
  display: block;
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 9px;
}

.people-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.person-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--ink-150);
  border-radius: 13px;
  background: var(--white);
}

.person-card .person-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  margin: 0;
  border: 0;
  font-size: 10px;
}

.person-card-copy {
  min-width: 0;
  flex: 1;
}

.person-card-copy strong {
  display: block;
  overflow: hidden;
  color: var(--ink-900);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-card-copy span {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-role {
  padding: 3px 6px;
  color: var(--ink-600);
  background: var(--ink-100);
  font-size: 8px;
  text-transform: uppercase;
}

.commercial-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.commercial-facts article {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 12px 13px 13px;
  border: 1px solid var(--ink-150);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(238, 241, 239, 0.72), rgba(255, 255, 255, 0.9));
}

.commercial-facts article::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--mustard);
  content: "";
}

.commercial-facts span {
  display: block;
  color: var(--ink-500);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

.commercial-facts strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 4px;
  color: var(--ink-900);
  font-size: 11px;
  line-height: 1.35;
}

.snapshot-privacy-note {
  position: relative;
  margin: 9px 0 0;
  padding: 10px 12px 10px 34px;
  color: var(--ink-600);
  border: 1px solid rgba(58, 154, 108, 0.18);
  border-radius: 11px;
  background: rgba(228, 246, 236, 0.52);
  font-size: 9px;
  line-height: 1.5;
}

.snapshot-privacy-note::before {
  position: absolute;
  top: 10px;
  left: 11px;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  color: #24724f;
  border-radius: 999px;
  background: rgba(58, 154, 108, 0.16);
  content: "\2713";
  font-size: 9px;
  font-weight: 900;
}

.timeline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.timeline-filters {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: var(--ink-100);
}

.timeline-filter {
  padding: 6px 9px;
  color: var(--ink-500);
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.timeline-filter.is-active {
  color: var(--ink-950);
  background: var(--white);
  box-shadow: 0 1px 4px rgba(16, 36, 31, 0.08);
}

.add-note-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  color: var(--ink-800);
  border: 1px solid var(--ink-200);
  border-radius: 9px;
  background: var(--white);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.add-note-button:hover {
  border-color: var(--ink-300);
}

.add-note-button svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.read-only-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  color: var(--ink-600);
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  background: var(--ink-100);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  white-space: nowrap;
}

.read-only-chip::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ink-400);
  box-shadow: 0 0 0 3px rgba(118, 138, 131, 0.12);
  content: "";
}

.note-composer {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--ink-200);
  border-radius: 13px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.note-composer textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  color: var(--ink-900);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
  line-height: 1.5;
}

.note-composer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 8px;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 9px;
  bottom: 12px;
  left: 17px;
  width: 1px;
  background: var(--ink-200);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 12px;
  padding: 0 0 17px;
}

.timeline-icon {
  z-index: 1;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--event-ink, var(--ink-700));
  border: 4px solid var(--surface);
  border-radius: 999px;
  background: var(--event-bg, var(--ink-150));
}

.timeline-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-card {
  min-width: 0;
  padding: 11px 12px 12px;
  border: 1px solid var(--ink-150);
  border-radius: 13px;
  background: var(--white);
}

.timeline-card.inferred {
  border-style: dashed;
  background: linear-gradient(145deg, rgba(240, 234, 253, 0.48), var(--white));
}

.timeline-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.timeline-card-head strong {
  color: var(--ink-900);
  font-size: 11px;
}

.timeline-card-head time {
  flex: 0 0 auto;
  color: var(--ink-400);
  font-size: 9px;
}

.timeline-subject {
  margin: 3px 0 0;
  color: var(--ink-700);
  font-size: 10px;
  font-weight: 700;
}

.timeline-body {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--ink-600);
  font-size: 10px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.timeline-card.is-expanded .timeline-body {
  display: block;
  overflow: visible;
}

.timeline-card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
}

.timeline-tag {
  padding: 3px 6px;
  color: var(--ink-500);
  background: var(--ink-100);
  font-size: 8px;
  text-transform: uppercase;
}

.timeline-expand {
  margin-left: auto;
  padding: 0;
  color: var(--ink-500);
  border: 0;
  background: transparent;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.drawer-bottom-action {
  position: sticky;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -30px -60px;
  padding: 14px 30px;
  border-top: 1px solid var(--ink-150);
  background: rgba(255, 253, 250, 0.94);
  backdrop-filter: blur(12px);
}

.drawer-bottom-action p {
  margin: 0;
  color: var(--ink-500);
  font-size: 9px;
}

.modal {
  width: min(580px, calc(100vw - 32px));
  max-height: min(730px, calc(100vh - 32px));
  padding: 0;
  overflow: hidden;
  color: var(--ink-950);
  border: 0;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.modal::backdrop {
  background: rgba(9, 25, 21, 0.46);
  backdrop-filter: blur(3px);
}

.modal-shell {
  display: flex;
  max-height: inherit;
  flex-direction: column;
}

.modal-shell.wide {
  width: min(720px, calc(100vw - 32px));
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 24px 17px;
  border-bottom: 1px solid var(--ink-150);
}

.modal-header h2 {
  font-size: 21px;
}

.connection-list,
.match-review-list {
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding: 18px 22px;
}

.connection-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--ink-150);
  border-radius: 14px;
  background: var(--white);
}

.source-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  border-radius: 12px;
  font-family: var(--font-manrope), sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.source-icon.reapit { background: #306a63; }
.source-icon.outlook { background: #2975d1; }
.source-icon.sheets { background: #2b9356; }

.connection-card strong {
  display: block;
  font-size: 12px;
}

.connection-card p {
  margin: 3px 0 0;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.4;
}

.source-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.source-status.loaded {
  color: #246b4d;
  border: 1px solid rgba(58, 154, 108, 0.14);
  background: var(--green-soft);
}

.source-status.loaded::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(58, 154, 108, 0.12);
  content: "";
}

.source-status.planned {
  color: #73571a;
  background: var(--mustard-soft);
}

.modal-note {
  margin: 0 22px;
  padding: 12px 13px;
  border: 1px solid #e7d99c;
  border-radius: 12px;
  background: #fff8df;
}

.modal-note strong {
  font-size: 10px;
}

.modal-note p {
  margin: 3px 0 0;
  color: var(--ink-600);
  font-size: 9px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 17px 22px 21px;
}

.match-review-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--ink-150);
  border-radius: 14px;
  background: var(--white);
}

.match-review-message strong,
.match-review-property strong {
  display: block;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-review-message span,
.match-review-property span {
  display: block;
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 9px;
}

.match-property-picker {
  display: grid;
  gap: 4px;
  margin-top: 9px;
}

.match-property-picker > span {
  margin: 0;
  color: var(--ink-600);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.match-property-picker select {
  width: 100%;
  min-width: 0;
  padding: 7px 26px 7px 8px;
  color: var(--ink-900);
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  outline: none;
  background: var(--surface);
  font-size: 9px;
  font-weight: 700;
}

.match-property-picker select:focus-visible {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(216, 137, 46, 0.13);
}

.match-arrow {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--amber);
  border-radius: 999px;
  background: var(--amber-soft);
  font-size: 12px;
}

.match-actions {
  display: flex;
  gap: 5px;
  margin-top: 9px;
}

.match-actions button {
  padding: 5px 7px;
  border: 1px solid var(--ink-200);
  border-radius: 7px;
  background: var(--white);
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.match-actions button.confirm {
  color: var(--white);
  border-color: var(--ink-950);
  background: var(--ink-950);
}

.toast-region {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  min-width: 260px;
  max-width: 390px;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: var(--ink-950);
  box-shadow: var(--shadow-md);
  font-size: 10px;
  font-weight: 700;
  animation: toast-in 180ms ease;
}

.toast-check {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink-950);
  border-radius: 999px;
  background: var(--mustard);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1240px) {
  .property-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }

  .topbar {
    grid-template-columns: 220px minmax(280px, 1fr) auto;
  }

  .connection-copy {
    display: none;
  }

  .connection-button {
    padding: 9px;
  }
}

@media (max-width: 980px) {
  :root {
    --inbox-width: 300px;
  }

  .topbar {
    grid-template-columns: auto minmax(240px, 1fr) auto;
    gap: 14px;
    padding: 0 18px;
  }

  .brand > span:last-child {
    display: none;
  }

  .portfolio-panel {
    padding-right: 20px;
    padding-left: 20px;
  }

  .portfolio-toolbar {
    margin-right: -20px;
    margin-left: -20px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .summary-metrics {
    display: none;
  }

  .property-card {
    min-height: 388px;
  }

  .view-actions .toolbar-button:nth-child(2) {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --topbar-height: 66px;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    height: var(--topbar-height);
    padding: 0 12px;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
  }

  .global-search {
    height: 39px;
    padding-right: 10px;
  }

  .global-search kbd,
  .connection-button {
    display: none;
  }

  .workspace {
    display: block;
  }

  .inbox-launcher,
  body.inbox-collapsed .inbox-launcher {
    display: none;
  }

  .inbox-panel {
    position: fixed;
    z-index: 70;
    top: var(--topbar-height);
    left: 0;
    width: min(340px, 90vw);
    box-shadow: var(--shadow-lg);
    transform: translateX(-105%);
  }

  body.mobile-inbox-open .inbox-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  body.inbox-collapsed .inbox-panel {
    opacity: 1;
  }

  .portfolio-panel {
    min-height: calc(100dvh - var(--topbar-height));
    padding: 0 13px 38px;
  }

  .portfolio-toolbar {
    top: var(--topbar-height);
    min-height: 58px;
    margin: 0 -13px;
    padding: 0 13px;
  }

  .division-tabs {
    gap: 15px;
  }

  .division-tab {
    font-size: 11px;
  }

  .division-tab[data-division="pm"] {
    font-size: 0;
  }

  .division-tab[data-division="pm"]::before {
    font-size: 11px;
    content: "PM";
  }

  .view-actions .toolbar-button {
    display: none;
  }

  .portfolio-header {
    padding: 24px 2px 17px;
  }

  .portfolio-header h2 {
    font-size: 24px;
  }

  .portfolio-header > div:first-child > p:last-child {
    font-size: 11px;
  }

  .property-grid,
  body.focus-mode .property-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .property-card {
    min-height: 392px;
  }

  .property-drawer {
    width: 100vw;
  }

  .drawer-hero-content {
    padding-right: 23px;
    padding-left: 23px;
  }

  .drawer-scroll {
    padding-right: 18px;
    padding-left: 18px;
  }

  .people-list {
    grid-template-columns: 1fr;
  }

  .commercial-facts {
    grid-template-columns: 1fr;
  }

  .commercial-facts article {
    padding: 11px 12px 12px;
  }

  .timeline-toolbar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .timeline-filters {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .timeline-filters::-webkit-scrollbar {
    display: none;
  }

  .commercial-placeholder::before {
    right: 5%;
    left: 6%;
  }

  .commercial-placeholder::after {
    right: 12%;
    left: 17%;
  }

  .drawer-bottom-action {
    margin-right: -18px;
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .match-review-card {
    grid-template-columns: 1fr;
  }

  .match-arrow {
    transform: rotate(90deg);
  }
}

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