#blazor-error-ui { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--ac-surface); color: var(--ac-ink); padding: 16px; border-top: 1px solid var(--ac-line); }
[hidden] { display: none !important; }

.account-main .estate-workspace button { min-height: 42px; font-size: .875rem; }
.estate-workspace .estate-back { margin-bottom: 16px; }
.estate-inline-form-settings { display: flex; justify-content: flex-end; }
.estate-dialog.estate-form-settings[open] {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; position: fixed;
  inset: 12px 16px 12px 266px; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0;
  overflow: hidden;
}
.estate-form-settings > .estate-card-header, .estate-form-settings-footer {
  padding: clamp(12px, 2vw, 24px);
}
.estate-form-settings > .estate-card-header { border-bottom: 1px solid var(--ac-line); }
.estate-form-settings-body { overflow: auto; overscroll-behavior: contain; }
.estate-form-settings-footer {
  display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid var(--ac-line); background: var(--ac-surface);
}
.estate-session-dialog {
  width: min(100% - 32px, 460px); padding: 24px; border: 1px solid var(--ac-line);
  border-radius: 12px; color: var(--ac-ink); background: var(--ac-surface);
}
.estate-session-dialog::backdrop { background: var(--ac-surface, #fff); }
.estate-session-dialog h2 { font-size: 1.25rem; margin-bottom: 8px; }
.estate-session-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.estate-form-settings .estate-editor { min-width: 0; max-width: none; }
@media (max-width: 991px) {
  .estate-dialog.estate-form-settings[open] { inset: 8px; }
}
.estate-workspace, .estate-overview { min-width: 0; }
.account-enhanced .account-main:has(> #app > .estate-workspace) { overflow: hidden; }
.account-enhanced #app:has(> .estate-workspace), .account-enhanced .estate-workspace { height: 100%; }
.estate-workspace, .estate-page-body {
  display: flex; flex-direction: column; min-height: 0; min-width: 0;
}
.estate-page-header, .estate-form-actions { flex: none; }
.account-main .estate-page-header .estate-form-header button,
.account-main .estate-page-header .estate-heading button { min-height: 34px; padding-block: 4px; }
.estate-page-body, .estate-client-editor { flex: 1; min-height: 0; }
.estate-page-scroll { overflow: auto; overscroll-behavior: contain; }
.estate-page-body.estate-page-scroll > :not(dialog) { flex: none; }
.estate-page-scroll:focus-visible { outline-offset: -3px; }
.estate-client-editor, .estate-client-editor form { display: flex; flex-direction: column; }
.estate-client-editor .estate-fields { align-content: start; flex: 1; min-height: 0; padding: clamp(12px, 2vw, 22px); }
.estate-muted, .estate-mobile-context { color: var(--ac-muted); }
.estate-feedback { min-height: 0; margin: 0 0 12px; color: var(--ac-accent); }
.estate-feedback:empty { margin: 0; }
.estate-workspace .estate-error { margin-bottom: 16px; }
.estate-error p:last-child, .estate-error details p { margin-bottom: 0; }
.estate-error details { margin-top: 8px; color: var(--ac-muted); }

.account-main .estate-register-search button[type="submit"] { margin: 0; min-height: 34px; min-width: 34px; padding: 4px; }
.account-main .estate-register .estate-register-search-field:has(.estate-clear-search) input[type="search"] { padding-inline-end: 36px; }
.estate-register-search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.account-main .estate-workspace .estate-clear-search {
  position: absolute; inset-inline-end: 3px; inset-block-start: 50%; transform: translateY(-50%);
  min-height: 28px; min-width: 28px; padding: 2px; border: 0; background: transparent;
}
.estate-register-filters {
  display: flex; flex: 1 1 13rem; align-items: center; flex-wrap: wrap; gap: 4px;
  min-inline-size: 0; max-block-size: 4.5rem; overflow: auto;
}
.estate-filter-chip {
  display: inline-flex; align-items: center; gap: 3px; padding-inline-start: 8px;
  min-inline-size: 0; max-inline-size: min(100%, 15rem); border-radius: 6px;
  background: var(--ac-soft); color: var(--ac-ink); font-size: .75rem;
}
.estate-filter-chip > span { min-inline-size: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-main .estate-register-filters .estate-filter-chip button {
  flex: none; min-height: 28px; min-width: 28px; padding: 3px; border: 0; background: transparent;
}
.account-main .estate-register-filters .estate-clear-filters {
  min-height: 28px; padding: 3px 6px; border: 0; background: transparent;
  color: var(--ac-accent); font-size: .75rem; text-decoration: underline;
}
.estate-filter { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.estate-filter label { margin: 0 0 4px; }
.estate-filter select { margin: 0; font-size: .875rem; min-height: 42px; min-width: 9.5rem; }
.account-main .estate-filter > button { margin: 0; }
.estate-register-footer { align-items: center; border-top: 1px solid var(--ac-line); }
.estate-live { margin: 0; color: var(--ac-muted); }
.estate-pager, .estate-editor-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.estate-pager { color: var(--ac-muted); }
.estate-pager span { font-variant-numeric: tabular-nums; }
.estate-register { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.estate-match-register { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.estate-register-pager {
  gap: 4px 6px; margin-inline-start: auto; font-size: .75rem; white-space: nowrap;
}
.account-main .estate-register .estate-page-size {
  display: inline-flex; align-items: center; gap: 4px; margin: 0; font-size: inherit;
}
.account-main .estate-register .estate-page-size select {
  width: auto; min-inline-size: 3.9rem; min-height: 34px; margin: 0; padding: 3px 27px 3px 8px; font-size: inherit;
}
.account-main .estate-workspace .estate-register :is(.estate-page-arrow, .estate-register-tools button) {
  min-width: 34px; min-height: 34px; padding: 3px 6px; font-size: .875rem;
}
.estate-register .estate-live { margin: 0; }
.estate-register .estate-column-options { max-block-size: 27dvh; overflow: auto; flex: none; }
.estate-configurable-table thead {
  position: sticky; inset-block-start: 0; z-index: 3; background: var(--ac-hover);
}
.estate-configurable-table .estate-search-row td { padding-block: 4px; }
@media (max-width: 650px) {
  .estate-toolbar, .estate-register-footer { gap: 4px 8px; }
  .estate-register-pager { margin-inline-start: 0; }
}
.estate-fields .estate-address { max-width: none; resize: vertical; }
.estate-multiline { white-space: pre-line; }
.account-main .estate-workspace .estate-text-action {
  display: inline-flex; justify-content: flex-start; width: 100%; padding: 0; text-align: left;
  color: var(--ac-accent); background: transparent; border: 0; overflow-wrap: anywhere; word-break: break-word;
}
.account-main .estate-workspace .estate-text-action:hover { background: transparent; text-decoration: underline; }
.estate-row-meta { display: block; color: var(--ac-muted); font-weight: 400; }
.estate-mobile-context { display: none; }
.estate-state {
  display: inline-block; padding: 4px 9px; line-height: 1.35; border-radius: 5px;
  font-size: .8125rem; font-weight: 650; background: var(--ac-hover); color: var(--ac-ink);
}
.estate-state[data-state="Open"] { background: var(--ac-soft); color: var(--ac-accent); }
.account-main .estate-register button.crm-unread {
  display: inline-grid; place-items: center; box-sizing: border-box;
  min-width: 1.625rem; min-height: 1.625rem; width: max-content; aspect-ratio: 1;
  margin: 0; padding: 0 .2rem; border: 1px solid var(--ac-line); border-radius: 4px;
  background: var(--ac-soft); color: var(--ac-accent);
  font-size: .8125rem; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums;
}
.account-main .estate-register button.crm-unread:is(:hover, :focus-visible) { border-color: currentColor; }
.estate-empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: clamp(36px, 7vw, 85px) 18px; }
.estate-empty > .mdi, .estate-shortcut-icon {
  display: grid; place-items: center; background: var(--ac-soft); color: var(--ac-accent); border-radius: 9px;
}
.estate-empty > .mdi { height: 48px; width: 48px; font-size: 25px; margin-bottom: 8px; }
.estate-empty p { max-width: 42ch; margin: 0; }

.estate-editor, .estate-detail-card { padding: clamp(16px, 3vw, 26px); }
.estate-listing-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 12px;
    margin: 12px 0;
    padding: 0;
    list-style: none;
}
.estate-listing-photos li { min-width: 0; padding: 10px; border: 1px solid var(--ac-line); border-radius: 8px; }
.estate-listing-photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; }
.estate-listing-photos .estate-card-header { margin: 8px 0 0; }
.estate-listing-photos .estate-editor-actions { margin-top: 6px; }
.estate-photo-upload { display: grid; gap: 5px; margin-top: 12px; }
.estate-photo-upload input, .estate-share-preview { width: 100%; }
.estate-share-preview { resize: vertical; margin: 5px 0 0; }
.estate-csv-body { display: grid; gap: 22px; }
.estate-csv-body > section + section { border-top: 1px solid var(--ac-line); padding-top: 18px; }
.estate-csv-table { max-height: 210px; overflow: auto; }
.estate-csv-table th, .estate-csv-table td { padding: 8px 12px; text-align: left; }
.estate-csv-table tbody tr + tr { border-top: 1px solid var(--ac-line); }
.estate-csv-count { margin: 12px 0 8px; }
.estate-editor { max-width: 52rem; }
.estate-record-editor { width: 100%; max-width: none; min-width: 0; }
.estate-record-editor, .estate-dialog:not(.estate-form-settings), .estate-form-settings .estate-editor { container-type: inline-size; }
.account-main .estate-fields #follow-up-note { display: block; box-sizing: border-box; width: 100%; max-width: none; }
#work-change input { max-width: none !important; min-height: 44px; }
.estate-editor-actions { border-top: 1px solid var(--ac-line); margin-top: 12px; padding-top: 16px; }
.estate-detail-layout, .estate-overview { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr); align-items: start; gap: 20px; }
.estate-detail-layout.estate-details-editing { grid-template-columns: minmax(0, 1fr); }
.estate-listing-panels { display: grid; min-width: 0; gap: 16px; }
.estate-property-listings { list-style: none; margin: 0; padding: 0; }
.estate-property-listings li {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--ac-line);
}
.estate-property-listings li > div { min-width: 0; }
.estate-property-listings .estate-state { flex-shrink: 0; }
.estate-property-contacts span { display: block; overflow-wrap: anywhere; }
.estate-listing-preview { padding-block: 8px; }
.estate-listing-preview h2 { font-size: 1rem; }
.estate-table .estate-listing-preview-row > td { padding-inline: 0; }
.estate-listing-preview-row .estate-listing-preview {
  position: sticky; inset-inline-start: 0; max-inline-size: 100cqi;
  box-sizing: border-box; padding-inline: 20px;
}
.estate-listing-preview .estate-related-preview-header { margin-block-end: 8px; }
.account-main .estate-workspace .estate-hide-related {
  margin-inline-start: auto; min-height: 32px; padding: 4px 10px; font-size: .8125rem;
}
.estate-card-header { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.account-shell .estate-card-header h2 { margin: 0; }
.estate-card-header a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; }
.estate-facts { margin: 0; }
.estate-facts:not(:empty) { border-bottom: 1px solid var(--ac-line); margin-bottom: 16px; }
.estate-facts > div {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px 14px;
  padding: 10px 0; border-top: 1px solid var(--ac-line);
}
.estate-facts dt { color: var(--ac-muted); font-weight: 550; }
.estate-facts dd { margin: 0; }
.estate-related { display: flex; flex-wrap: wrap; align-items: start; gap: 8px; margin-bottom: 16px; }
.estate-related h3 { flex-basis: 100%; }
.estate-match-list { list-style: none; padding: 0; margin: 0; }
.estate-match-list li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; border-top: 1px solid var(--ac-line); padding: 10px 0;
}

.estate-overview-main > h2 { margin: 0 0 14px; }
.estate-shortcut-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.account-shell a.estate-shortcut {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px;
  padding: 16px; text-decoration: none; color: var(--ac-ink);
}
.account-shell a.estate-shortcut:hover { border-color: var(--ac-accent); background: var(--ac-hover); }
.estate-shortcut-icon { width: 36px; height: 36px; font-size: 21px; }
.estate-shortcut strong { font-size: 1rem; }
.estate-shortcut p { font-size: .875rem; margin: 4px 0 0; }
.estate-shortcut-arrow { font-size: 18px; color: var(--ac-accent); }
.estate-overview-followups > p:last-child { margin-bottom: 0; }
.estate-overview-followups .estate-editor-actions { margin: 0 0 12px; }
.estate-overview-followups [aria-pressed="true"] { border-color: var(--ac-accent); color: var(--ac-accent); }
.estate-match-list li > div { min-width: 0; overflow-wrap: anywhere; }
.estate-match-list li p { margin: 3px 0 0; }
.estate-activity-list li { align-items: start; }

@media (max-width: 1180px) { .estate-shortcut-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .estate-detail-layout, .estate-overview { grid-template-columns: minmax(0, 1fr); }
  .estate-heading { align-items: flex-start; }
}
@media (max-width: 540px) {
  .estate-table-context { display: none; }
  .estate-mobile-context { display: block; }
}
.property-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  --property-column-gap: 18px;
  gap: 8px var(--property-column-gap);
}
.estate-field-own-row { grid-column: 1 / -1; }
.estate-field-own-row-half:not([data-resize-span="2"]) > .property-field-content,
.estate-field-own-row[data-resize-span="1"] > .property-field-content {
  width: calc((100% - var(--property-column-gap)) / 2);
}

.property-measurement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .65fr);
  gap: 10px;
}

.property-custom-fields { margin-block: 12px; }
.estate-designer-command, .estate-designer-position, .estate-designer-item-actions, .estate-preview-options, .property-builder-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.estate-designer-command {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px clamp(12px, 2vw, 24px);
  border-bottom: 1px solid var(--ac-line);
  background: var(--ac-surface);
}
.estate-designer-preview-action { margin-inline-start: auto; }
.estate-designer-message { margin: 12px clamp(12px, 2vw, 24px); }
.estate-designer {
  display: grid;
  grid-template-columns: minmax(14rem, 29%) minmax(0, 1fr);
  align-items: stretch;
  min-height: calc(100% - 58px);
}
.estate-designer-outline {
  min-width: 0;
  padding: 16px 12px;
  background: var(--ac-bg);
  border-inline-end: 1px solid var(--ac-line);
}
.estate-designer h3, .estate-designer-preview h3 { margin: 0 0 12px; font-size: 1rem; }
.estate-designer-outline h3 { padding-inline: 8px; }
.estate-designer-tree, .estate-designer-fields { list-style: none; margin: 0; padding: 0; }
.estate-designer-fields { margin-inline-start: 15px; border-inline-start: 1px solid var(--ac-line); padding-inline-start: 6px; }
.estate-designer-row { display: flex; align-items: center; gap: 2px; min-width: 0; margin-block: 2px; }
.estate-designer-row > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.estate-form-settings .estate-designer-item, .estate-form-settings .estate-designer-disclosure {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 8px;
  border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ac-ink); text-align: start;
}
.estate-form-settings .estate-designer-item { justify-content: flex-start; flex: 1; min-width: 0; }
.estate-designer-item span { min-width: 0; overflow-wrap: anywhere; }
.estate-form-settings .estate-designer-item:hover, .estate-form-settings .estate-designer-disclosure:hover {
  border-color: var(--ac-line); background: var(--ac-surface);
}
.estate-form-settings .estate-designer-item[aria-pressed="true"] {
  border-color: var(--ac-accent); background: color-mix(in srgb, var(--ac-accent) 11%, var(--ac-surface));
  color: var(--ac-ink); font-weight: 700;
}
.estate-designer-outline .property-drag-handle { min-width: 25px; }
.estate-designer-empty { margin: 6px 8px 9px; color: var(--ac-muted); font-size: .875rem; }
.estate-designer-archive { margin: 16px 8px 0; padding-top: 12px; border-top: 1px solid var(--ac-line); }
.estate-designer-archive summary { cursor: pointer; }
.estate-designer-inspector { padding: clamp(12px, 2vw, 24px); }
.estate-designer-config { display: grid; gap: 16px; max-width: 42rem; }
.estate-form-settings .estate-designer-config input:not([type="checkbox"]),
.estate-form-settings .estate-designer-config select, .estate-form-settings .estate-designer-config textarea { margin-bottom: 0; }
.estate-designer-config h4, .estate-designer-config p { margin: 0; }
.estate-designer-field-layout { display: grid; gap: 16px; }
.estate-designer-current-group { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; min-height: 38px; }
.estate-designer-current-group > span { overflow-wrap: anywhere; }
.estate-form-settings .estate-designer-current-group .estate-inline-link {
  min-height: 32px; padding: 3px 5px; border-color: transparent; background: transparent;
  color: var(--ac-accent); text-decoration: underline; text-underline-offset: 2px;
}
.estate-form-settings .estate-designer-current-group .estate-inline-link:hover { background: var(--ac-bg); }
.estate-designer-position > span { flex-basis: 100%; }
.estate-designer-check { display: inline-flex; align-items: center; gap: 8px; }
.estate-designer-check input[type="checkbox"] { margin: 0; }
.account-main label.estate-property-feature-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    min-height: 24px;
}
.account-main .estate-property-feature-check input[type="checkbox"] { min-height: 0; margin: 0; flex: none; }
.estate-designer-item-actions:empty { display: none; }
.estate-form-settings .estate-designer-preview {
  width: min(100%, 58rem); margin-inline: auto; padding: clamp(12px, 2vw, 24px);
}
.estate-form-settings .estate-designer-history {
  width: min(100%, 48rem); margin-inline: auto; padding: clamp(12px, 2vw, 24px);
}
.estate-designer-history h3 { margin-top: 0; }
.estate-history-entry { padding-block: 12px; border-top: 1px solid var(--ac-line); overflow-wrap: anywhere; }
.estate-history-entry-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.estate-history-entry-header h4 { margin: 0; }
.estate-history-entry time { color: var(--ac-muted); font-size: .875rem; }
.estate-history-entry ul { margin-block: 8px; padding-inline-start: 22px; }
.estate-history-entry p { margin-block: 8px; }
.estate-preview-options { align-items: end; gap: 10px 18px; margin-bottom: 18px; }
.estate-preview-options select { margin-bottom: 0; }
.estate-preview-options .estate-designer-check { margin: 0 0 9px; }
.property-builder-header { justify-content: space-between; margin-bottom: 12px; }
.property-builder-header h3 { margin: 0; }
.property-drag-handle {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  min-height: 36px;
  color: var(--ac-muted);
  font-size: 21px;
  cursor: grab;
}
.property-drag-handle:active { cursor: grabbing; }
.property-layout-group { border: 1px solid var(--ac-line); border-radius: 8px; padding: 10px; margin-block: 12px; }
.property-layout-header, .property-layout-cell-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.property-layout-header .property-layout-label { flex: 1 1 auto; text-align: start; justify-content: flex-start; }
.property-layout-header input[aria-label="Group name"] { flex: 1 1 10rem; width: auto; margin: 0; }
.property-layout-group > .property-form-grid { margin-top: 10px; }
.property-layout-group > .property-form-grid[hidden] { display: none; }
.property-layout-cell { min-width: 0; }
.property-layout-cell > .property-field-content {
  position: relative; box-sizing: border-box; height: 100%;
  border: 1px solid var(--ac-line); border-radius: 7px; padding: 8px 8px 34px;
}
.property-layout-cell:not(.estate-field-own-row)[data-resize-span="1"] { grid-column: auto; }
.property-layout-cell[data-resize-span="2"] { grid-column: 1 / -1; }
.estate-field-resize {
  position: absolute; inset-inline-end: 4px; inset-block-end: 4px;
  display: none; place-items: center; width: 34px; height: 26px;
  border-radius: 5px; color: var(--ac-accent); cursor: ew-resize; touch-action: none; user-select: none;
}
[data-width-handles-ready] .estate-field-resize { display: grid; }
.estate-field-resize:hover, .estate-field-resize:active { background: var(--ac-bg); }
.property-layout-cell-actions { justify-content: space-between; }
.property-layout-cell .property-layout-move { border-top: 1px solid var(--ac-line); padding-top: 4px; }
.property-layout-cell .property-layout-move button { margin-inline-end: 5px; }

@media (max-width: 700px) {
  .estate-designer { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .estate-designer-outline { max-height: 15rem; overflow: auto; border-inline-end: 0; border-bottom: 1px solid var(--ac-line); }
  .estate-designer-preview-action { margin-inline-start: 0; }
}

@media (max-width: 620px) {
  .property-form-grid { grid-template-columns: minmax(0, 1fr); }
  .estate-field-own-row-half:not([data-resize-span="2"]) > .property-field-content,
  .estate-field-own-row[data-resize-span="1"] > .property-field-content { width: 100%; }
}
@container (max-width: 35rem) {
  .estate-fields, .property-form-grid { grid-template-columns: minmax(0, 1fr); }
  [data-width-handles-ready] .estate-field-resize { display: none; }
  .property-layout-cell > .property-field-content { padding-bottom: 8px; }
  .estate-field-own-row-half:not([data-resize-span="2"]) > .property-field-content,
  .estate-field-own-row[data-resize-span="1"] > .property-field-content { width: 100%; }
}
@container (max-width: 22rem) {
  .property-measurement { grid-template-columns: minmax(0, 1fr); }
}
.estate-register-tools { display: flex; gap: 4px; }
.estate-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.estate-heading-actions .estate-action { white-space: nowrap; }
.account-main .estate-workspace .estate-icon-action,
.account-main .estate-workspace .estate-sort-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; color: var(--ac-accent);
}
.account-main .estate-workspace .estate-icon-action { min-width: 40px; width: auto; padding: 7px; }
.estate-icon-action[aria-pressed="true"] { outline: 2px solid var(--ac-accent); }
.estate-register-scroll {
  flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; max-width: 100%; container-type: inline-size;
  scroll-padding-block-start: var(--estate-sticky-header-height, 0px);
}
.estate-register-scroll:focus-visible { outline-offset: -3px; }
.estate-register-scroll .estate-empty { position: sticky; inset-inline-start: 0; max-inline-size: 100cqi; }
.estate-configurable-table {
  min-inline-size: var(--estate-drag-table-minimum, var(--estate-table-minimum));
  border-collapse: separate; border-spacing: 0;
}
.estate-configurable-table.estate-sized-table { inline-size: var(--estate-drag-table-minimum, var(--estate-table-minimum)); }
.estate-configurable-table col { width: var(--estate-drag-width, var(--estate-column-width, auto)); }
.estate-configurable-table th:is(:first-child, :last-child) { width: auto; }
.estate-configurable-table th, .estate-configurable-table td { overflow-wrap: anywhere; }
.estate-configurable-table thead th { position: relative; }
.estate-configurable-table th[draggable="true"] { cursor: grab; }
.estate-configurable-table tbody tr > * { border-block-start: 1px solid var(--ac-line); }
.estate-configurable-table [data-estate-pinned] {
  position: var(--estate-pin-mode); inset-inline-start: var(--estate-pin-offset); z-index: 1;
}
.estate-configurable-table thead [data-estate-pinned] { background-color: var(--ac-hover); }
.estate-configurable-table tbody tr { --estate-base-cell: var(--ac-surface); }
.estate-configurable-table tbody tr:is(:hover, :focus-within) { --estate-base-cell: var(--ac-hover); }
.estate-configurable-table tbody :is([data-estate-pinned], [data-estate-color]) {
  background-color: var(--estate-cell-fill, var(--estate-base-cell));
}
.estate-configurable-table tbody [data-estate-color] {
  color: var(--estate-cell-ink);
  --ac-accent: var(--estate-cell-ink);
  --ac-muted: var(--estate-cell-ink);
  --ac-soft: var(--estate-cell-fill);
}
.estate-column-resize {
  position: absolute; inset-block: 3px; inset-inline-end: 0; inline-size: 12px;
  cursor: col-resize; touch-action: none; z-index: 1;
}
.estate-column-resize::after {
  content: ""; position: absolute; inset-block: 24%; inset-inline-end: 4px;
  border-inline-end: 1px solid var(--ac-line);
}
.estate-column-resize:is(:hover, :focus-visible)::after { border-color: var(--ac-accent); }
.account-shell .estate-column-resize:focus-visible { outline-offset: -2px; }
.account-main .estate-workspace .estate-sort-button { border: 0; padding: 0; text-align: left; }
.estate-action-heading { color: var(--ac-accent); }
.estate-search-row input, .estate-search-row select { width: 100%; min-width: 0; }
.estate-date-range { display: grid; gap: .25rem; }
.estate-date-range label { display: grid; grid-template-columns: 2.5em minmax(0, 1fr); align-items: center; gap: .25rem; font-weight: 400; }
.estate-column-options { border-top: 1px solid var(--ac-line); padding: 8px 16px; }
.estate-column-options .estate-column-hint { margin: 0 0 6px; font-size: .75rem; }
.estate-column-options ul {
  display: grid; grid-template-columns: max-content minmax(8rem, 1fr) repeat(7, max-content); column-gap: 6px;
  list-style: none; padding: 0; margin: 0; min-width: min-content; max-width: 54rem;
}
.estate-column-options li {
  display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; padding: 4px 0;
}
.estate-column-options li + li { border-block-start: 1px solid var(--ac-line); }
.account-main .estate-column-options label { margin: 0; }
.estate-column-options .estate-column-display { grid-column: 1 / 3; overflow-wrap: anywhere; }
.estate-column-options li:has(.estate-action-picker) .estate-column-display { grid-column: 1; }
.account-main .estate-column-options .estate-column-actions input.estate-column-length[type="number"] {
  box-sizing: border-box; width: 8.5rem; min-width: 0; height: 34px; min-height: 34px;
  margin: 0; padding: 0 .5rem; font-size: .875rem;
}
.estate-column-actions button[aria-pressed=true] { color:var(--ac-accent); background:var(--ac-soft); }
.estate-configurable-table .estate-register-group th { padding:.45rem .65rem; background:var(--ac-soft); text-align:start; }
.estate-register-group th > div { display:flex; align-items:center; flex-wrap:wrap; gap:.35rem 1rem; }
.estate-register-group th > div > span,.estate-register-group a { font-size:.82rem; font-weight:400; }
.account-main .estate-register-group .estate-group-toggle { display:inline-flex; align-items:center; gap:.35rem; min-height:32px; margin:0; padding:.15rem .25rem; border:0; background:transparent; color:var(--ac-ink); }
.estate-column-actions { display: grid; grid-column: 3 / -1; grid-template-columns: subgrid; align-items: center; }
.estate-column-actions .estate-column-rule-button { grid-column: 2; }
.estate-column-default-colors { display: flex; gap: 6px; flex-wrap: wrap; }
.estate-action-picker {
  grid-column: 2; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
  border: 1px solid var(--estate-input-border); border-radius: 7px; padding: 4px;
}
.account-main .estate-action-picker select {
  flex: 1 1 10rem; width: 0; min-width: min(10rem, 100%); max-width: none;
  align-self: center; min-height: 34px; margin: 0; font-size: .8125rem;
}
.estate-action-tag { display: inline-flex; align-items: center; max-width: 100%; overflow-wrap: anywhere; gap: 3px; padding: 0 4px 0 8px; border-radius: 6px; background: var(--ac-soft); }
.account-main .estate-workspace .estate-action-tag button {
  min-height: 30px; min-width: 30px; padding: 3px; border: 0; background: transparent;
}
.estate-related-actions { display: flex; flex-wrap: wrap; gap: 2px 7px; align-items: center; }
.estate-action-separator, .estate-unavailable-action { color: var(--ac-muted); }
.account-main .estate-workspace .estate-related-actions .estate-text-action {
  width: auto; min-height: 30px; font-weight: 550;
}
.account-main .estate-related-actions a { font-weight: 550; }
.estate-dialog.estate-color-rules[open] {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0; width: min(46rem, calc(100vw - 24px)); overflow: hidden;
}
.estate-color-rules > .estate-card-header { padding: 14px 18px; margin: 0; border-bottom: 1px solid var(--ac-line); }
.estate-column-default-colors { gap: 6px 16px; margin-bottom: 10px; }
.estate-color-rules-body { padding: 12px 18px 16px; overflow: auto; }
.account-main .estate-color-rules .estate-color-rule { margin: 10px 0; padding: 10px 12px; }
.estate-color-rule-fields {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: end; gap: 8px 12px;
}
.estate-rule-colors { align-items: center; flex-wrap: wrap; }
.estate-color-rule-actions { display: flex; justify-content: flex-end; gap: 4px; }
.estate-color-rules > .estate-form-settings-footer { padding: 10px 18px; }
@media (max-width: 540px) {
  .estate-color-rule-fields { grid-template-columns: minmax(0, 1fr); }
  .estate-color-rule-fields label { margin-top: 0; }
}
.estate-column-color, .account-main .estate-column-color label {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
}
.estate-column-color label span { white-space: nowrap; }
.estate-column-color input[type="color"] {
  inline-size: 34px; min-height: 34px; padding: 3px; cursor: pointer;
  border: 1px solid var(--estate-input-border); border-radius: 6px; background: var(--ac-surface);
}
.account-main .estate-workspace .estate-column-color button { min-width: 30px; min-height: 34px; padding: 4px; }
.account-main .estate-workspace .estate-column-actions button { min-width: 34px; min-height: 34px; padding: 4px; }

/* Shared case overview, daily queue and handoff timeline. */
.estate-daily { min-height: 0; flex: 1; }
.estate-daily[hidden], .estate-listing-media[hidden] { display: none; }
.estate-view-switch, .estate-key-facts { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.estate-view-switch { margin: 0 0 .75rem; }
.estate-view-switch button[aria-pressed="true"], .estate-work-summary button[aria-pressed="true"] {
  border-color: var(--ac-accent); color: var(--ac-accent); background: var(--ac-soft);
}
.estate-work-panel, .estate-work-summary { min-width: 0; padding: clamp(1rem, 2vw, 1.5rem); }
.estate-work-panel { background: var(--ac-surface); border: 1px solid var(--ac-line); border-radius: 10px; }
.estate-work-summary { border-inline-start: 3px solid var(--ac-accent); }
.estate-work-summary h3, .estate-listing-property h3 { font-size: clamp(1.12rem, 2vw, 1.45rem); line-height: 1.3; margin: .5rem 0; }
.estate-call-note { padding-block: .6rem; border-top: 1px solid var(--ac-line); overflow-wrap: anywhere; }
.estate-key-facts { gap: .5rem 1rem; margin-block: 1rem; }
.estate-key-facts strong { font-size: 1.2rem; }
.estate-day-list, .estate-opportunities, .estate-activity-timeline, .estate-checklist { list-style: none; padding: 0; margin: 0; }
.estate-day-list li { display: grid; grid-template-columns: minmax(7rem,.8fr) minmax(12rem,2fr) repeat(3,minmax(6rem,1fr)); align-items: start;
  gap: .5rem 1rem; padding: .95rem 0; border-top: 1px solid var(--ac-line); }
.estate-day-list li > div, .estate-opportunities li { min-width: 0; overflow-wrap: anywhere; }
.estate-day-list small, .estate-day-list time { display: block; font-size: .8rem; color: var(--ac-muted); }
.estate-day-list p, .estate-opportunities p, .estate-activity-timeline p { margin: .2rem 0; }
.estate-day-when strong { display: block; }
.estate-day-when[data-urgency="Overdue"] strong { color: var(--ac-danger, #a63c31); }
.estate-context-list { display: grid; margin: 0; }
.estate-context-list > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem .8rem; padding: .5rem 0; border-top: 1px solid var(--ac-line); }
.estate-context-list dt, .estate-opportunities time { color: var(--ac-muted); }
.estate-context-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.estate-case-list { grid-column: 1 / -1; }
.estate-opportunities { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(15rem,100%),1fr)); gap: 1rem; }
.estate-opportunities li { border-inline-start: 2px solid var(--ac-line); padding: .5rem 1rem; }
.estate-opportunities header, .estate-checklist li, .estate-activity-timeline header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem .6rem; }
.estate-checklist li { border-top: 1px solid var(--ac-line); padding: .5rem 0; }
.estate-activity-timeline li { display: flex; gap: .75rem; padding-block: .7rem; border-top: 1px solid var(--ac-line); }
.estate-activity-timeline li > div { flex: 1; min-width: 0; }
.estate-activity-timeline time { font-size: .8rem; color: var(--ac-muted); }
.estate-listing-cover { margin: 0; border-radius: .6rem; overflow: hidden; max-height: 14rem; }
.estate-listing-cover img { display: block; object-fit: cover; width: 100%; height: 14rem; }
@media (max-width: 1050px) {
  .estate-day-list li { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .estate-day-task { grid-column: span 2; }
}
@media (max-width: 600px) {
  .estate-day-list li { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .estate-day-when, .estate-day-task { grid-column: 1 / -1; }
  .estate-day-when { display: flex; gap: .6rem; align-items: baseline; }
  .estate-work-summary .estate-editor-actions { gap: .4rem; }
}

/* One contact rail serves the agency workspace. */
.account-enhanced .account-main:has(.crm-layout) { padding:0; overflow:hidden }
#app:has(> .crm-layout),.crm-layout { height:100%; min-height:0 }
.crm-layout { display:grid; grid-template-columns:clamp(13rem,20vw,19rem) minmax(0,1fr) }
.crm-content { overflow:auto; min-width:0; min-height:0; padding:.45rem .55rem; background:var(--ac-bg) }
.crm-content > .estate-workspace { height:100% }
.crm-navigation { display:flex; flex-direction:column; overflow:auto; min-height:0; padding:.8rem .65rem; border-inline-end:1px solid var(--ac-line); background:var(--ac-surface); color:var(--ac-ink) }
.crm-navigation > :not(.crm-contact-list) { flex:none }
.crm-contact-list { overflow:auto; flex:0 1 auto; min-height:min(4rem,100%); }
.crm-navigation a { color:inherit; text-decoration:none }
.crm-rail-heading,.crm-contact,.crm-filters,.crm-thread-head,.crm-compose-tools { display:flex; align-items:center; gap:.5rem }
.crm-rail-heading { justify-content:space-between; padding:0 .35rem }
.crm-rail-heading h2 { font-size:1.12rem; margin:0; font-weight:650 }
.crm-icon { display:grid; place-items:center; width:36px; height:36px; border:0; border-radius:5px; background:transparent; color:var(--ac-accent) }
.crm-icon { font-size:1.3rem }
.crm-search { margin:.6rem 0; }
.crm-search input { width:100%; }
.crm-filters { flex-wrap:wrap; margin:.4rem 0 .8rem; font-size:.78rem }
.crm-filters :is(a,button) { border-radius:1rem; padding:.25rem .55rem; background:transparent; color:inherit; border:1px solid var(--ac-line) }
.crm-filters a[aria-current=page],.crm-navigation a:hover,.crm-navigation a[aria-current=page] { background:var(--ac-soft); color:var(--ac-accent) }
.crm-contact { min-height:48px; border-radius:7px; padding:.35rem .4rem; font-size:.91rem; line-height:1.3 }
.crm-contact-name { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis }
.crm-contact-tags { display:flex; flex:1 1 auto; min-width:min-content; align-items:center; flex-wrap:wrap; gap:.2rem }
.crm-contact-tags .crm-topic { margin:0 }
.crm-avatar { display:grid; place-items:center; flex:none; width:2rem; height:2rem; border-radius:50%; background:var(--ac-soft); color:var(--ac-accent); font-size:.76rem; font-weight:650 }
.crm-contact[aria-current=page] .crm-avatar { background:var(--ac-surface) }
.crm-contact small { background:var(--ac-accent); color:var(--ac-surface); border-radius:1rem; padding:.15rem .45rem }
.crm-rail-tools { border-top:1px solid var(--ac-line); margin-top:1rem; padding-top:.55rem }
.crm-rail-tools a { display:flex; align-items:center; gap:.55rem; min-height:36px; padding:.25rem .5rem; font-size:.85rem; border-radius:6px }
.crm-rail-tools .crm-unread, .crm-contact .crm-open-count {
  display: inline-grid; place-items: center; flex: none; box-sizing: border-box;
  min-width: 1.25rem; height: 1.25rem; margin-inline-start: auto; padding-inline: .2rem;
  border-radius: 999px; background: var(--ac-accent); color: var(--ac-surface);
  font-size: .75rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
}
.crm-navigation p { padding:.4rem; color:var(--ac-muted); font-size:.85rem }
.crm-conversation-layout { flex:1; min-height:0; min-width:0; display:flex; gap:.45rem }
.crm-conversation-layout .crm-thread { min-width:0 }
.crm-client-work.account-panel { flex:0 0 var(--crm-panel-width,clamp(21.25rem,28vw,30rem)); box-sizing:border-box; overflow:auto; min-height:0; margin:0; padding:.75rem; }
.crm-client-work header { display:flex; align-items:center; justify-content:space-between }
.crm-client-work h2 { font-size:1.05rem; margin:0 }
.crm-client-work h3 { font-size:.85rem; margin:.25rem 0 .55rem }
.crm-client-work section { padding:.65rem 0; border-top:1px solid var(--ac-line) }
.crm-client-work article { margin-bottom:.55rem }
.crm-client-work small { display:block; color:var(--ac-muted) }
.crm-client-work p { margin:.18rem 0; font-size:.85rem }
.crm-plan { display:inline-flex; gap:.3rem; align-items:center; margin:.5rem 0 }
.crm-thread,.crm-welcome { flex:1; min-width:0; min-height:0 }
.crm-thread.account-panel { display:flex; flex-direction:column; margin:0; padding:0; overflow:hidden; container-type:inline-size }
.crm-thread-head,.crm-compose { flex:none; padding:.65rem clamp(.65rem,2vw,1.4rem); background:var(--ac-surface) }
.crm-thread-head { border-bottom:1px solid var(--ac-line) }
.crm-thread-head > div:first-of-type { flex:1; min-width:0 }
.crm-thread-head h1 { margin:0; font-size:1.12rem; line-height:1.35 }
.crm-thread-head small { display:block; color:var(--ac-muted); overflow-wrap:anywhere }
.crm-history { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:.8rem clamp(.65rem,3vw,2rem) }
.crm-event { width:fit-content; max-width:min(88%,45rem); padding:.55rem .8rem; margin:.5rem 0; background:var(--ac-soft); border-radius:8px }
.crm-history .crm-event[data-side=mine] { margin-inline-start:auto; background:var(--ac-soft); }
.crm-history .crm-event[data-side=other]:not(.crm-follow-up) { background:var(--ac-bg); }
.crm-event :is(time,a) { font-size:.79rem }
.crm-event time { margin-inline-start:.65rem; color:var(--ac-muted) }
.crm-event p,.estate-inbox-message { margin:.2rem 0; white-space:pre-wrap; overflow-wrap:anywhere }
.crm-review { margin:.6rem 0 }
.estate-inbox-draft { border:1px solid var(--ac-line); padding:.8rem; max-width:44rem; border-radius:7px; margin-top:.4rem }
.estate-inbox-draft fieldset { margin:.6rem 0; padding:.5rem; min-width:0 }
.estate-inbox-draft fieldset label { display:flex; gap:.5rem; align-items:center }
.estate-inbox-draft input:is([type=radio],[type=checkbox]) { min-width:0; width:auto }
.estate-inbox-draft textarea { width:100%; display:block }
.crm-compose { display:grid; gap:.3rem; min-width:0; border-top:1px solid var(--ac-line); max-height:50%; overflow:auto; }
.crm-compose > small { color:var(--ac-muted); font-size:.8rem; }
.crm-compose-tools { gap:.5rem; margin-bottom:.4rem }
.crm-compose-tools select { width:auto; max-width:55%; min-width:0 }
.crm-message-box textarea { width:100%; resize:vertical; max-height:8rem; display:block }

.crm-work-links { max-height:9rem; overflow:auto; margin-bottom:.5rem }
.crm-work-links div { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem }
.crm-welcome { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:.45rem }
.crm-welcome > i { color:var(--ac-accent); font-size:2rem }
.crm-welcome h1 { margin:0; font-size:1.4rem }
.crm-welcome p { margin:0; color:var(--ac-muted) }
.crm-add { max-width:46rem }
.crm-add h2 { font-size:1.1rem }
@media(max-width:1199px) {
    .crm-conversation-layout[data-details=open] > .crm-thread { display:none }
    .crm-client-work.account-panel { flex:1; }
}
@media(max-width:760px) {
    .crm-layout { grid-template-columns:minmax(0,1fr) }
    .crm-layout[data-list-only=no] > .crm-navigation,.crm-layout[data-list-only=yes] > .crm-content { display:none }
    .crm-content { padding:.25rem }
    .crm-detail-toggle { font-size:.8rem; padding:.3rem }
}

.crm-interest-filters,.crm-thread-filters,.crm-interest-picker { display:flex; flex-wrap:wrap; gap:.35rem }
.crm-interest-filters { margin-top:.5rem }
.account-main .crm-interest-filters button,.account-main .crm-thread-filters button { display:inline-flex; align-items:center; gap:.3rem; margin:0; padding:.25rem .45rem; min-height:32px; border-radius:6px; font-size:.8rem; background:var(--ac-surface); color:var(--ac-ink); border:1px solid var(--ac-line) }
.account-main .crm-interest-filters button[aria-pressed=true],.account-main .crm-thread-filters button[aria-pressed=true] { border-color:var(--ac-accent); color:var(--ac-accent); background:var(--ac-soft) }
.crm-thread-filters { padding:.35rem .75rem; border-bottom:1px solid var(--ac-line) }
.crm-topic { display:inline-block; font-size:.72rem; font-weight:600; margin-inline:.45rem; padding:.08rem .4rem; border-radius:.3rem; border:1px solid var(--ac-line); background:var(--ac-surface); color:var(--ac-accent) }
.account-main .crm-interest-picker { margin:.4rem 0; padding:.5rem; }
.account-main .crm-interest-picker label { display:flex; align-items:center; gap:.3rem; font-size:.85rem }
.account-main .crm-interest-picker input[type=checkbox] { width:auto; min-width:0; }
.crm-compose-tools { flex-wrap:wrap }
.crm-compose-tools .crm-topic-field { margin:0; display:flex; align-items:center; gap:.35rem; font-size:.8rem }
.crm-compose-tools .crm-topic-field select { max-width:none; }

.crm-rail-heading h2 { flex:1 }
.crm-embedded-work { flex:1; min-height:0; display:flex; flex-direction:column; overflow:auto; padding:.65rem }
.crm-embedded-work > .estate-workspace { flex:1; min-height:0 }
.crm-message-box { display:flex; align-items:flex-end; gap:.45rem }
.account-main .crm-message-box textarea { flex:1; min-width:0; max-width:none; margin:0; }
.crm-message-box button { flex:none; align-self:center }
.crm-suggestions { display:grid; gap:.15rem; max-height:12rem; overflow:auto; border:1px solid var(--ac-line); border-radius:.4rem; padding:.25rem }
.account-main .crm-suggestions button { text-align:start; justify-content:flex-start; gap:.5rem; flex-wrap:wrap }
.crm-suggestions small { color:var(--ac-muted) }
.crm-add.estate-workspace { width:100%; max-width:none }
.crm-add > section { padding:.75rem; min-height:0 }
.crm-add .estate-page-body { min-height:0 }
.crm-client-work textarea { width:100%; box-sizing:border-box }

.crm-client-work.account-panel { display:flex; flex-direction:column; overflow:hidden; }
.crm-client-work header { padding-bottom:.5rem }
.crm-work-body { display:grid; grid-template-columns:2.5rem minmax(0,1fr); min-height:0; flex:1 }
.crm-work-content { min-width:0; overflow:auto; padding-inline:.7rem .2rem; overflow-wrap:anywhere }
.crm-work-content .property-form-grid { grid-template-columns:minmax(0,1fr) }
.crm-work-content .property-form-grid > * { grid-column:1; min-width:0 }
.crm-work-content fieldset { min-inline-size:0 }
.crm-work-tabs { display:flex; flex-direction:column; align-items:stretch; gap:.2rem; overflow:auto; border-inline-end:1px solid var(--ac-line); }
.account-main .crm-work-tabs button { display:flex; flex:none; flex-direction:column; gap:.3rem; margin:0; min-height:2.75rem; padding:.45rem .2rem; border:0; border-inline-start:2px solid transparent; border-radius:.3rem; line-height:1.15; font-size:.8rem; background:var(--ac-surface); color:var(--ac-muted); }
.crm-tab-label { writing-mode:vertical-rl; white-space:nowrap; }
.account-main .crm-work-tabs button:hover { background:var(--ac-hover); color:var(--ac-ink); }
.account-main .crm-work-tabs button:focus-visible { outline-offset:-3px; }
.account-main .crm-work-tabs button[aria-pressed=true] { border-inline-start-color:var(--ac-accent); background:var(--ac-soft); color:var(--ac-accent); }
.crm-tab-count { display:inline-grid; place-items:center; min-width:1.1rem; height:1.1rem; padding-inline:.16rem; box-sizing:border-box; border-radius:1rem; margin-inline-start:.12rem; background:var(--ac-soft); color:var(--ac-accent); border:1px solid var(--ac-line); font-size:.68rem; font-weight:600; line-height:1; font-variant-numeric:tabular-nums }
.crm-linked-listings summary { cursor:pointer; color:var(--ac-accent); font-weight:600; }
.crm-linked-listings .crm-case-heading { margin-top:.3rem; }
.crm-preferences label { display:inline-flex; align-items:center; gap:.35rem; margin:.2rem .5rem .2rem 0 }
.crm-preferences input[type=checkbox] { width:1rem; min-height:1rem; margin:0 }
.estate-title-control { display:flex; align-items:center; gap:.4rem }
.estate-title-control input { min-width:0; flex:1 }
.estate-title-control input[readonly] { background:var(--ac-bg) }
.listing-property-source { display:flex; align-items:center; gap:.4rem; flex-wrap:wrap; margin-bottom:.75rem }
.account-main .listing-property-source button[aria-pressed=true] { color:var(--ac-accent); border-color:currentColor; background:var(--ac-soft) }

.crm-record-card { padding:.55rem .65rem; border:1px solid var(--ac-line); border-radius:.45rem; background:var(--ac-surface); }
.crm-record-heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:.25rem .5rem; }
.crm-follow-ups-heading { align-items:center; margin-bottom:.4rem; }
.crm-follow-ups-heading h3 { margin:0; }
.account-main .crm-follow-ups-heading button { margin:0 0 0 auto; }
.crm-record-card .estate-text-action { text-align:start; }
.crm-record-card > small { margin-block:.25rem; }
.crm-record-status { color:var(--ac-muted); background:var(--ac-soft); border-radius:.3rem; padding:.12rem .38rem; font-size:.75rem; }
.crm-inventory-filters { display:flex; flex-wrap:wrap; gap:.25rem; margin-block:.5rem; }
.account-main .crm-inventory-filters button { min-height:32px; padding:.2rem .55rem; }
.crm-inventory-filters [aria-pressed=true] { background:var(--ac-soft); color:var(--ac-accent); border-color:var(--ac-accent); }
estate-panel-divider { display:none; }
@media(min-width:1200px) {
    .crm-conversation-layout[data-details=open] { gap:0; }
    estate-panel-divider { display:grid; flex:0 0 12px; place-items:center; cursor:col-resize; touch-action:none; user-select:none; }
    estate-panel-divider::after { content:""; height:2.5rem; width:3px; border-radius:2px; background:var(--ac-line); }
    estate-panel-divider:is(:hover,:focus-visible)::after { background:var(--ac-accent); }
}
@media(forced-colors:none) {
    #account-workspace :where(*) { scrollbar-width:thin; scrollbar-color:transparent transparent; }
    #account-workspace :where(:hover,:focus-visible,:has(:focus-visible),.estate-scrolling) {
        scrollbar-color:var(--ac-muted) transparent;
    }
}
.estate-select-group-label { display:block; padding:.45rem .6rem .15rem; color:var(--ac-muted); font-weight:600; }

.estate-record-side { display:grid; gap:1rem; align-content:start; min-width:0; }
.estate-listing-property { border-top:1px solid var(--ac-line); padding-top:.5rem; }
.estate-listing-property h3 a { font-weight:inherit; }
.estate-listing-thumbnails { display:flex; flex-wrap:wrap; gap:.5rem; margin:.75rem 0; }
.account-main .estate-listing-thumbnails button { padding:0; overflow:hidden; border-radius:.4rem; }
.estate-listing-thumbnails img { display:block; width:clamp(3.25rem,7vw,5.5rem); aspect-ratio:4/3; object-fit:cover; }
.crm-thread-error { padding:.4rem .8rem; }

.crm-thread-actions { display:flex; align-items:center; gap:.45rem; min-width:0; }
.crm-thread-actions button { flex:none; }
.crm-activity-search { position:relative; width:clamp(12rem,25cqi,20rem); min-width:0; }
.crm-activity-search i { position:absolute; inset-inline-start:.55rem; top:50%; transform:translateY(-50%); color:var(--ac-muted); pointer-events:none; }
.account-main .crm-thread-head .crm-activity-search input[type="search"] { box-sizing:border-box; width:100%; padding-inline-start:1.85rem; }
@container (max-width:38rem) {
    .crm-thread-head { flex-wrap:wrap; }
    .crm-thread-actions { flex:1 0 100%; }
    .crm-thread-actions .crm-activity-search { flex:1; margin-inline-end:auto; }
}
.crm-follow-up { scroll-margin-block: .5rem; }
.crm-follow-up[data-expanded=true] { box-sizing: border-box; width: 100%; max-width: none; border-inline-start: 3px solid var(--ac-accent); }
.crm-follow-up .crm-thread-work { min-width: 0; }
.crm-thread-body { display: grid; gap: .65rem; }
.crm-thread-work .estate-page-body { overflow: visible; }
.crm-thread-body > .estate-detail-card, .crm-thread-body > .estate-work-panel, .crm-inline-log {
    padding: .75rem; min-width: 0; border: 1px solid var(--ac-line); border-radius: 7px; background: var(--ac-surface);
}
.crm-inline-log { container-type: inline-size; }
.crm-inline-log h3 { margin: 0 0 .5rem; }
.crm-inline-log .crm-log-options { justify-self: start; align-self: end; }
.crm-thread-context { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .65rem; color: var(--ac-muted); }
.crm-thread-body > .estate-work-summary { padding: .5rem 0; background: transparent; box-shadow: none; border: 0; }
.crm-thread-body .estate-editor-actions[hidden] { display: none; }

/* A follow-up and its replies share one conversation surface. */
.crm-history .crm-day { display:flex; align-items:center; gap:.8rem; margin:1.1rem 0 .8rem; color:var(--ac-muted); font-size:.79rem; font-weight:400; letter-spacing:normal; }
.crm-history .crm-day::before, .crm-history .crm-day::after { content:""; height:1px; flex:1; background:var(--ac-line); }
.crm-history .crm-follow-up { width:min(100%,52rem); max-width:100%; box-sizing:border-box; padding:.8rem 1rem; border:1px solid var(--ac-line); background:var(--ac-surface); border-radius:.65rem; }
.crm-history .crm-follow-up[data-expanded=true] { border-inline-start:3px solid var(--ac-accent); }
.crm-follow-up-meta { display:flex; flex-wrap:wrap; align-items:baseline; gap:.3rem .55rem; }
.crm-event .crm-follow-up-meta > strong { color:var(--ac-muted); font-weight:500; }
.crm-follow-up .crm-follow-up-title { margin:.32rem 0; color:var(--ac-ink); font-size:1rem; font-weight:500; line-height:1.4; letter-spacing:normal; overflow-wrap:anywhere; }
.crm-thread-context { font-size:.86rem; }
.crm-event time { margin:0; }
.crm-case-heading { display:flex; align-items:baseline; gap:.3rem; }
.account-main .crm-case-heading > .estate-text-action { min-width:0; width:auto; }
.crm-case-heading .crm-record-status { flex:none; }
.account-main .crm-case-heading .estate-icon-action { flex:none; width:1.85rem; height:1.85rem; min-height:0; margin-inline-start:auto; padding:0; border:0; background:transparent; }
.crm-commands { display:flex; flex-wrap:wrap; gap:.15rem .65rem; }
.crm-commands button { font-size:.83rem; }
.crm-thread-body .estate-work-summary .estate-editor-actions:empty { display:none; }
@media (max-width: 42rem) {
    .crm-history .crm-follow-up { padding:.6rem; }
}

.crm-event .crm-reply-action, .crm-back-latest { display:block; margin-inline-start:auto; }
.crm-history .crm-event small { display:block; color:var(--ac-muted); }
.account-main .crm-thread .crm-quote { display:grid; gap:.1rem; width:100%; min-width:0; justify-content:stretch; text-align:start; color:var(--ac-ink); background:var(--ac-surface); border:0; border-inline-start:3px solid var(--ac-accent); border-radius:.25rem; margin:.3rem 0; padding:.28rem .55rem; font-weight:400; }
.crm-thread button.secondary.crm-quote:is(:hover,:focus-visible,:active) { color:var(--ac-ink); background:var(--ac-hover); border-color:var(--ac-accent); }
.crm-thread button.crm-quote:focus-visible { outline:2px solid var(--ac-accent); outline-offset:1px; }
.crm-quote strong,.crm-quote span { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.crm-thread .crm-quote strong { color:var(--ac-accent); font-size:.83rem; font-weight:500; }
.crm-compose-quote { display:flex; gap:.4rem; align-items:center; min-width:0; }
.crm-history .crm-quote-target { outline:2px solid var(--ac-accent); outline-offset:1px; }

.crm-match-updates:empty { display:none }
.crm-match-updates section { padding:.75rem 1rem; border:1px solid var(--ac-line); border-radius:.5rem; background:var(--ac-surface) }
.crm-match-updates h2 { font-size:1rem; margin:0 0 .45rem }
.crm-match-updates article { display:grid; justify-items:start; gap:.12rem; padding:.5rem 0; border-top:1px solid var(--ac-line) }
.crm-match-updates article > span,.crm-match-updates article > small { color:var(--ac-muted); font-size:.82rem }
.crm-match-updates article button { padding:0; min-height:0; text-align:start; white-space:normal }
.crm-contact small.crm-review-count { color:var(--ac-muted); background:var(--ac-soft) }
