/* Shared visual refresh. Loaded after the legacy site styles. */
:root {
  --ui-navy: #0d2535;
  --ui-gold: #b48a42;
  --ui-line: #dfe5e9;
  --ui-muted: #526474;
}
.page-shell :focus-visible {
  outline: 3px solid #9d762f;
  outline-offset: 4px;
}
.page-shell .cursor-dot,
.page-shell .cursor-ring,
.page-shell .cursor-glow,
.page-shell .page-wipe {
  display: none !important;
}
.page-shell {
  cursor: auto;
}
.page-shell :is(a, button, summary) {
  cursor: pointer !important;
}
.page-shell :is(input, textarea) {
  cursor: text !important;
}
.page-shell select {
  cursor: pointer !important;
}
.page-shell .btn {
  border-radius: 8px;
  min-height: 44px;
  font-size: 13px;
  letter-spacing: 0.015em;
}
.page-shell .btn-sm {
  min-height: 36px;
}
.page-home .global-hero {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
}
.page-home .global-hero .original-hero-inner {
  height: auto !important;
  min-height: 500px !important;
  padding-top: 48px;
  padding-bottom: 64px;
  gap: 48px;
  align-items: center;
}
.page-home .global-hero .hero-copy {
  padding: 0 !important;
}
.page-home .global-hero .dynamic-word {
  opacity: 1 !important;
  transform: none !important;
}
.page-home .global-hero .hero-copy {
  max-width: 720px;
}
.page-home .global-hero h1 {
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 18px 0 22px;
}
.page-home .global-hero .hero-copy > p {
  max-width: 570px;
  font-size: 17px;
  line-height: 1.75;
  color: #fff;
}
.page-home .global-hero .hero-actions {
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.page-home .global-hero .hero-trust {
  gap: 10px 20px;
  font-size: 10px;
  line-height: 1.8;
  margin-top: 26px;
}
.page-home .award-hero-card {
  border-radius: 14px;
  padding: 28px;
  max-width: 320px;
  box-shadow: 0 16px 40px #05121c30;
  transform: none !important;
}
.page-home .award-hero-card strong {
  font-size: 36px;
  line-height: 1.15;
}
.page-home .hero-particles,
.page-home .hero-light,
.page-home .hero-noise,
.page-home .project-rail {
  display: none;
}
.page-home .premium-search-shell {
  position: relative;
  z-index: 5;
  margin-top: -26px;
  margin-bottom: 32px;
}
.page-home .premium-search {
  position: relative;
  margin: 0;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--ui-line);
  box-shadow: 0 14px 40px #0d253514;
  background: #fff;
  gap: 14px;
  align-items: end;
}
.page-home .premium-search label {
  font-size: 11px;
  color: var(--ui-muted);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.page-home .premium-search .field {
  min-width: 0;
}
.page-home .premium-search :is(input, select) {
  min-height: 48px;
  border: 1px solid var(--ui-line);
  border-radius: 7px;
  background: #f8fafb;
  padding: 10px 12px;
  font-size: 13px;
  width: 100%;
}
.page-home .premium-search :is(input, select) {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.page-home .premium-search .search-submit {
  min-height: 48px;
  height: 48px;
  align-self: end;
  border-radius: 7px;
}
.page-home .original-marquee {
  margin-top: 0;
}
.page-shell .property-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 22px #0d253508;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
  transform: none !important;
}
.page-shell .property-card:hover {
  border-color: #c3ad83;
  box-shadow: 0 14px 32px #0d253512;
}
.page-shell .property-card > a {
  display: block;
}
.page-shell .property-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
  min-width: 0;
}
.page-shell .property-content h3 {
  font-size: 24px;
  line-height: 1.25;
  margin: 10px 0 14px;
}
.page-shell .property-location {
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.6;
}
.page-shell .property-meta {
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.page-shell .property-meta span {
  border-radius: 5px;
  background: #f2f5f7;
  padding: 5px 8px;
  color: #465b6a;
  font-size: 11px;
}
.page-shell .property-bottom {
  margin-top: auto;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid #edf0f2;
  padding-top: 18px;
}
.page-shell .property-bottom .price {
  font-size: 23px;
  line-height: 1.3;
  color: var(--ui-navy);
}
.page-shell .property-bottom .price small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ui-muted);
  margin-bottom: 5px;
}
.page-shell .property-bottom .more-detail {
  font-size: 12px;
  color: #775719;
  white-space: nowrap;
}
.property-enquire {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 18px;
  padding: 12px 14px;
  min-height: 44px;
  border: 1px solid #dce3e8;
  border-radius: 7px;
  background: #f8fafb;
  color: var(--ui-navy);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}
.property-enquire:hover {
  background: #edf2f5;
  border-color: #bccbd4;
}

/* Footer recognition and social links. Scoped to the public footer. */
.sps-footer {
  background: radial-gradient(ellipse at 0 0, #17302f55, transparent 48%), #06131b;
  border-top: 1px solid #d9bd7926;
}
.sps-footer .sps-footer-grid > div {
  min-width: 0;
}
.sps-footer .footer-award {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  max-width: 340px;
  margin: 24px 0 0;
  padding: 16px 14px;
  border: 1px solid #c9aa6252;
  border-radius: 14px;
  background: linear-gradient(115deg, #c7a36512, #c7a36505);
  box-shadow: inset 0 1px 0 #f5dda90d;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.sps-footer .footer-award:hover {
  border-color: #d9bd79a6;
  background: #c7a36514;
}
.sps-footer .footer-award-seal {
  flex: 0 0 53px;
  width: 53px;
  height: 66px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1px;
  border: 0;
  border-right: 1px solid #c9aa6233;
  border-radius: 0;
  padding-right: 12px;
  color: #e4c685;
}
.footer-award-seal svg {
  width: 32px;
  height: 32px;
}
.footer-award-seal em {
  font:
    600 12px/1.3 Georgia,
    serif;
  letter-spacing: 0.14em;
  font-style: normal;
}
.footer-award > div {
  min-width: 0;
}
.footer-award-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #d6ba7f;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.sps-footer .footer-award b {
  color: #f2e8d4;
  font:
    500 18px/1.2 Georgia,
    serif;
}
.sps-footer .footer-award small {
  margin-top: 6px;
  color: #a9b5bc;
  font-size: 11px;
  line-height: 1.4;
}
.footer-award-arrow {
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: #d6ba7f;
}
/* Compact brand marks inside a slightly larger, transparent click target. */
.sps-footer .footer-social {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap;
  width: auto !important;
  max-width: 100%;
  gap: 8px !important;
  margin: 16px 0 0 !important;
}
.sps-footer .footer-social > .social-icon,
.sps-footer .footer-social > .social-choice-wrap {
  width: 36px !important;
  max-width: 36px !important;
  min-width: 36px;
  flex: 0 0 36px;
}
.sps-footer .footer-social > .social-icon,
.sps-footer .footer-social > .social-choice-wrap > .social-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 4px !important;
  gap: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  color: #fff;
  background: transparent !important;
  box-shadow: none !important;
  transition: transform 0.2s ease !important;
}
.sps-footer .footer-social .social-icon:before {
  display: none;
}
.sps-footer .footer-social .social-icon:hover {
  transform: translateY(-2px) !important;
}
.sps-footer .footer-social .social-icon:focus-visible,
.sps-footer .footer-award:focus-visible {
  outline: 2px solid #e4c685;
  outline-offset: 3px;
}
.sps-footer .footer-social .social-icon > svg {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px;
  max-width: 28px !important;
  max-height: 28px !important;
  flex: 0 0 28px !important;
  padding: 6px !important;
  border: 0;
  border-radius: 6px;
  box-sizing: border-box;
  color: #fff;
  transform: none !important;
  filter: none !important;
}
.sps-footer .footer-social .social-instagram > svg {
  padding: 5px !important;
  border-radius: 8px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.sps-footer .footer-social .social-facebook > svg {
  background: #0866ff;
}
.sps-footer .footer-social .social-linkedin > svg {
  background: #0a66c2;
  border-radius: 3px;
}
.sps-footer .footer-social .social-youtube > .youtube-brand-logo {
  height: 20px !important;
  max-height: 20px !important;
  padding: 0 !important;
  border-radius: 0;
  background: none;
}
.sps-footer .footer-social .social-youtube .youtube-brand-logo rect {
  fill: #ff0000;
}
.sps-footer .footer-social .social-youtube .youtube-brand-logo path {
  fill: #fff;
}
.sps-footer .instagram-choice-menu {
  width: min(290px, 82vw);
  background: #10222d;
  border-color: #d6ba7f66;
  border-radius: 12px;
}
@media (min-width: 1051px) {
  .sps-footer-grid {
    grid-template-columns: minmax(300px, 1.35fr) 0.75fr 1fr 1.1fr;
    gap: 32px;
  }
}
@media (max-width: 360px) {
  .sps-footer .footer-award b {
    font-size: 16px;
  }
  .footer-award-eyebrow {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sps-footer .footer-social .social-icon {
    transition: none !important;
  }
  .sps-footer .footer-social .social-icon:hover {
    transform: none !important;
  }
}
.sps-footer .footer-newsletter input {
  min-height: 48px;
  border-radius: 10px;
}
.sps-footer .footer-newsletter .btn {
  min-height: 48px;
  padding: 0 28px;
  border-radius: 10px !important;
  border: 1px solid #c99a45 !important;
  background: linear-gradient(135deg, #e6c77f, #c99a45) !important;
  color: #0b1823 !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.sps-footer .footer-newsletter .btn:hover {
  background: linear-gradient(135deg, #efd391, #d4a64f) !important;
  box-shadow: 0 8px 22px rgba(212, 170, 85, 0.28);
}
.sps-footer .footer-newsletter + .footer-bottom {
  margin-top: 0;
  border-top: 0;
  padding-top: 20px;
  padding-bottom: 72px;
}

/* Floating WhatsApp and back-to-top: icons instead of "WA" and "Top", side by side so they fit under the footer. */
.floating-wa {
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.35);
}
.floating-wa svg {
  width: 28px;
  height: 28px;
}
.back-top {
  right: 88px;
  bottom: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 170, 85, 0.55);
  background: #0d2535;
  color: #e6c77f;
  box-shadow: 0 8px 22px rgba(5, 18, 28, 0.3);
}
.back-top svg {
  width: 20px;
  height: 20px;
}
.back-top:hover {
  background: #163a52;
}

/* Private staff workspace: a plain, dense tool look. System font, hairline rules, one navy accent, no gold, no
   card shadows. Everything is scoped to .workspace-shell so the public site keeps its own styles. */
.workspace-shell {
  --ws-ink: #1f2933;
  --ws-muted: #5f6b76;
  --ws-line: #d9dee3;
  --ws-soft: #f6f7f9;
  --ws-accent: #0d2535;
  --ws-link: #1f5d8c;
  background: #fff;
  color: var(--ws-ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
}
.workspace-shell :is(h1, h2, h3, p, label, button, input, select, textarea, table, .btn) {
  font-family: inherit;
}
.workspace-shell :focus-visible {
  outline: 2px solid #2f6fa3;
  outline-offset: 2px;
}
.workspace-shell :is(#reactExperienceDock, .scroll-progress) {
  display: none;
}
/* The hidden skip link's large shadow fell onto the white header as a grey haze behind the logo. */
.workspace-shell .skip-link {
  box-shadow: none;
}
.workspace-shell .container {
  width: min(1360px, 100% - 48px);
  max-width: 1360px;
}
.workspace-header {
  background: #fff;
  border-bottom: 1px solid var(--ws-line);
}
.workspace-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.workspace-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.workspace-brand img {
  width: 128px;
  height: 38px;
  object-fit: contain;
  object-position: left center;
}
.workspace-brand > span {
  border-left: 1px solid var(--ws-line);
  padding-left: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ws-muted);
}
.workspace-account {
  display: flex;
  align-items: center;
  gap: 8px;
}
.workspace-account > span {
  display: grid;
  text-align: right;
  margin-right: 6px;
  line-height: 1.3;
}
.workspace-account strong {
  font-size: 13px;
  font-weight: 600;
}
.workspace-account small {
  font-size: 12px;
  color: var(--ws-muted);
}
.workspace-account form {
  margin: 0;
}
.workspace-nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.workspace-nav a {
  flex: 0 0 auto;
  padding: 9px 12px 10px;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--ws-muted);
  white-space: nowrap;
}
.workspace-nav a:hover {
  color: var(--ws-ink);
}
.workspace-nav a[aria-current='page'] {
  border-bottom-color: var(--ws-accent);
  color: var(--ws-ink);
  font-weight: 600;
}

/* Page title: one plain heading and a one-line note, no eyebrow label. */
.workspace-shell .sps-page-hero {
  padding: 20px 0 0 !important;
  min-height: 0 !important;
  background: #fff !important;
  color: var(--ws-ink);
  border: 0;
  box-shadow: none !important;
}
.workspace-shell .sps-page-hero:after,
.workspace-shell .sps-page-hero:before {
  display: none !important;
}
.workspace-shell .sps-page-hero :is(.page-hero-beam, .breadcrumbs, .eyebrow) {
  display: none;
}
.workspace-shell .sps-page-hero h1 {
  color: var(--ws-ink) !important;
  font-family: inherit !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  margin: 0 0 4px;
  animation: none;
}
.workspace-shell .sps-page-hero p {
  color: var(--ws-muted);
  line-height: 1.5;
  max-width: none;
  margin: 0;
}
.workspace-shell main p {
  font-size: 14px !important;
  line-height: 1.55;
}
.workspace-shell main :is(.table-swipe-hint, .crm-notice, .field small) {
  font-size: 13px !important;
}
.workspace-shell .sps-page-hero .hero-actions {
  margin-top: 12px;
}
.workspace-shell .section {
  padding: 16px 0 40px !important;
}
.workspace-shell .soft {
  background: #fff;
}
.workspace-shell .spacer {
  height: 8px;
}
html body.workspace-shell main h2 {
  color: var(--ws-ink);
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  margin: 24px 0 8px !important;
}
.workspace-shell main h3 {
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}
.workspace-shell main .eyebrow {
  display: block;
  margin: 0;
  color: var(--ws-muted);
  font-size: 12px !important;
  font-weight: 500;
  letter-spacing: 0 !important;
  text-transform: none;
}
.workspace-shell main .eyebrow:before,
.workspace-shell main .eyebrow:after {
  display: none;
}
.workspace-shell main h2 + p {
  margin: -4px 0 8px;
  color: var(--ws-muted);
}
.workspace-shell .section-head {
  margin: 0 0 8px;
}
html body.workspace-shell main .section-head h2 {
  margin: 2px 0 0 !important;
}
.workspace-shell .table-swipe-hint {
  margin: 0 0 6px;
  color: var(--ws-muted);
  font-size: 12px;
  font-weight: 400;
}
.workspace-shell .muted {
  color: var(--ws-muted);
}
.workspace-shell .alert {
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  margin: 0 0 12px;
}

/* Figures: one ruled strip instead of a row of cards. */
.workspace-shell .kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  background: #fff;
  border: 1px solid var(--ws-line);
  border-radius: 6px;
  overflow: hidden;
}
.workspace-shell .kpi {
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow:
    1px 0 0 var(--ws-line),
    0 1px 0 var(--ws-line);
  min-width: 0;
  transform: none;
}
.workspace-shell .kpi .muted {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.workspace-shell .kpi strong {
  display: block;
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ws-ink);
  margin-top: 2px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.workspace-shell .kpi-account strong {
  font-size: 14px;
  line-height: 1.5;
  padding-top: 5px;
  overflow-wrap: normal;
}
.crm-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid #c9dcef;
  border-radius: 6px;
  background: #f2f7fc;
  color: #1d4466;
  font-size: 13px;
}
.crm-notice:before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f7ed8;
}

/* Buttons: navy for the main action, white for the rest. The !important sizes beat "html body .btn" in styles.css. */
.workspace-shell .btn {
  width: auto;
  min-height: 34px !important;
  padding: 6px 14px !important;
  border-radius: 5px;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0 !important;
  text-transform: none;
  box-shadow: none;
  transform: none;
}
.workspace-shell .btn-sm {
  min-height: 28px !important;
  padding: 3px 10px !important;
  font-size: 12px !important;
}
.workspace-shell :is(.btn-gold, .btn-dark) {
  background: var(--ws-accent);
  border: 1px solid var(--ws-accent);
  color: #fff;
}
.workspace-shell :is(.btn-gold, .btn-dark):hover {
  background: #1b3b52;
}
.workspace-shell .btn-outline {
  background: #fff;
  border: 1px solid #c9d0d6;
  color: var(--ws-ink);
}
.workspace-shell .btn-outline:hover {
  background: var(--ws-soft);
  border-color: #aeb7bf;
}
.workspace-shell .btn-danger {
  background: #fff;
  border: 1px solid #e9c3bf;
  color: #b42318;
}
.workspace-account .btn-dark {
  background: #fff;
  border-color: #c9d0d6;
  color: var(--ws-ink);
}
.workspace-account .btn-dark:hover {
  background: var(--ws-soft);
}
.workspace-shell .admin-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 2px;
  margin-top: 16px;
}
.workspace-shell .admin-shortcuts .btn-dark {
  margin-right: 10px;
  background: #fff;
  border-color: #c9d0d6;
  color: var(--ws-ink);
}
.workspace-shell .admin-shortcuts .btn-dark:hover {
  background: var(--ws-soft);
}
.workspace-shell .admin-shortcuts .btn-outline {
  min-height: 0 !important;
  padding: 4px 8px !important;
  border: 0;
  background: none;
  color: var(--ws-link);
  font-weight: 500;
}
.workspace-shell .admin-shortcuts .btn-outline:hover {
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.workspace-shell .admin-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--ws-line);
}
.workspace-shell .admin-jump a {
  padding: 4px 10px;
  border-radius: 5px;
  color: var(--ws-muted);
  font-size: 13px;
  font-weight: 500;
}
.workspace-shell .admin-jump a:hover {
  background: var(--ws-soft);
  color: var(--ws-ink);
}
.workspace-shell .admin-jump b {
  margin-left: 4px;
  color: var(--ws-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.workspace-shell main h2[id] {
  scroll-margin-top: 120px;
}
/* After Save or Assign the page comes back to the same row (#lead-12 etc., 2026-11-14): it stops below the
   header and glows gold for a moment so staff see which row changed. */
.workspace-shell .table tr[id] {
  scroll-margin-top: 120px;
}
.workspace-shell .table tr:target > td {
  animation: crmRowSaved 2.6s ease-out;
}
@keyframes crmRowSaved {
  0%,
  40% {
    background-color: #fbefcf;
  }
  100% {
    background-color: transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-shell .table tr:target > td {
    animation: none;
    background-color: #fbefcf;
  }
}
.workspace-shell .admin-prop {
  display: flex;
  align-items: center;
  gap: 10px;
}
.workspace-shell .admin-prop img {
  flex: none;
  width: 64px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--ws-soft);
}
.workspace-shell .ws-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid #c9d0d6;
  border-radius: 4px;
  color: var(--ws-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  vertical-align: 1px;
}

/* Tables: ruled rows, sentence-case headings, empty tables reduced to one line. */
.workspace-shell .table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--ws-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}
.workspace-shell .table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.workspace-shell .table td.inline {
  align-items: center;
}
.workspace-shell .table .btn-danger {
  min-height: 0 !important;
  padding: 0 4px !important;
  border: 0;
  background: none;
  color: #b42318;
  font-size: 12px !important;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.workspace-shell .table th {
  padding: 8px 12px;
  background: var(--ws-soft);
  color: var(--ws-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  border-bottom: 1px solid var(--ws-line);
}
.workspace-shell .table td {
  padding: 10px 12px;
  vertical-align: top;
  border-bottom: 1px solid #eceff2;
  min-width: 120px;
  max-width: 360px;
  overflow-wrap: anywhere;
}
.workspace-shell .table tr:last-child td {
  border-bottom: 0;
}
.workspace-shell .table tbody tr:hover {
  background: #fafbfc;
}
.workspace-shell .table .tiny {
  font-size: 12px;
  line-height: 1.5;
}
.workspace-shell .table :is(td, th):has(> input[type='checkbox']) {
  min-width: 0;
  width: 36px;
}
.workspace-shell .table-wrap:has(tbody > tr:only-child > td[colspan]) {
  border: 0;
  background: none;
  overflow: visible;
}
.workspace-shell .table-wrap:has(tbody > tr:only-child > td[colspan]) thead {
  display: none;
}
.workspace-shell .table td[colspan] {
  padding: 0;
  border: 0;
  color: var(--ws-muted);
  max-width: none;
}
.workspace-shell .table tr:has(> td[colspan]):hover {
  background: none;
}

/* Forms */
.workspace-shell
  :is(input:not([type='checkbox']):not([type='radio']):not([type='hidden']):not([type='file']), select, textarea) {
  min-height: 34px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid #c9d0d6;
  border-radius: 5px;
  background: #fff;
  color: var(--ws-ink);
  font-size: 13px;
  box-shadow: none;
}
.workspace-shell :is(input, select, textarea):focus {
  border-color: #2f6fa3;
}
.workspace-shell .table :is(input:not([type='checkbox']), select) {
  min-height: 28px;
  padding: 3px 8px;
  font-size: 12px;
}
.workspace-shell :is(.field, .form-grid) label {
  color: var(--ws-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.workspace-shell .inline {
  gap: 6px;
}
.workspace-shell .form-card {
  padding: 20px;
  border: 1px solid var(--ws-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}
.workspace-shell main .form-card h2 {
  margin-top: 0 !important;
}
.workspace-shell .two-col > * {
  min-width: 0;
}
.workspace-shell .admin-gallery {
  padding: 12px 16px 16px;
  border: 1px solid var(--ws-line);
  border-radius: 6px;
}
.workspace-shell .admin-gallery legend {
  padding: 0 6px;
  color: var(--ws-ink);
  font-size: 12px;
  font-weight: 600;
}
.workspace-shell .career-admin-card {
  padding: 16px;
  border: 1px solid var(--ws-line);
  border-radius: 6px;
  box-shadow: none;
}

/* CRM details */
.workspace-shell .crm-office-filter {
  gap: 4px;
  margin: 12px 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.workspace-shell .crm-office-filter a {
  min-height: 28px !important;
  padding: 3px 10px !important;
  font-size: 12px !important;
}
.workspace-shell .crm-bulk {
  padding: 8px 0;
}
.workspace-shell .crm-actions {
  gap: 4px;
  margin-top: 6px;
}
.workspace-shell .crm-actions .btn {
  min-height: 26px !important;
  padding: 2px 8px !important;
  border: 1px solid #c9d0d6;
  border-radius: 4px;
  background: #fff;
  color: var(--ws-ink);
  font-size: 12px !important;
  font-weight: 500;
}
.workspace-shell .crm-actions .btn-whatsapp {
  background: #fff !important;
  border-color: #b7dcc6 !important;
  color: #146c43 !important;
}
.workspace-shell .crm-actions .btn-whatsapp:hover {
  background: #f0f8f3 !important;
}
.workspace-shell .crm-trash {
  margin-top: 6px;
  text-align: left;
}
.workspace-shell .crm-trash .btn-danger {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0;
  background: none;
  color: #b42318;
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.workspace-shell .crm-ref {
  margin-top: 2px;
  padding: 0;
  background: none;
  color: var(--ws-muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}
.workspace-shell .crm-origin {
  margin-top: 2px;
  padding: 0;
  border-radius: 0;
  background: none !important;
  color: var(--ws-muted) !important;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.workspace-shell .crm-office {
  margin: 0;
  padding: 0 0 0 8px;
  background: none;
  color: var(--ws-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}
.workspace-shell .follow-up-due {
  padding: 0;
  background: none;
  color: #b42318;
  font-size: 12px;
  font-weight: 600;
}
/* When an enquiry, viewing, seller request or application arrived (receivedAt() in backend/server.js). */
.workspace-shell .crm-received {
  display: inline-block;
  margin-top: 2px;
  color: var(--ws-ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.workspace-table-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.workspace-table-tools > div:first-child {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}
.workspace-table-tools label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.workspace-table-tools input {
  width: 100%;
}
.workspace-table-count {
  margin-left: auto;
  color: var(--ws-muted);
  font-size: 12px;
}
.workspace-filter-empty {
  margin: 0;
  padding: 16px;
  text-align: center;
  color: var(--ws-muted);
  font-size: 13px;
}
.workspace-shell tr[hidden],
.workspace-filter-empty[hidden] {
  display: none !important;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  color: #465d6d;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: capitalize;
  white-space: nowrap;
}
.status-badge:before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-new,
.status-requested {
  color: #1f5fbf;
}
.status-contacted,
.status-confirmed {
  color: #8a5a00;
}
.status-qualified,
.status-completed,
.status-valued,
.status-listed {
  color: #1a7f37;
}
.status-cancelled {
  color: #b42318;
}
.workspace-footer {
  padding: 16px 0;
  border-top: 1px solid var(--ws-line);
  background: #fff;
  color: var(--ws-muted);
  font-size: 12px;
}
.workspace-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* Colour: SPS navy header with a gold active tab, one colour per figure and section, tinted status labels,
   colour-coded contact buttons and lead initials. Colours repeat by meaning, not at random. */
.workspace-header {
  background: #0d2535;
  border-bottom: 0;
}
.workspace-header :focus-visible {
  outline-color: #d4aa55;
}
.workspace-header .workspace-brand > span {
  border-left-color: #ffffff2e;
  color: #c3cfd9;
}
.workspace-header .workspace-account strong {
  color: #fff;
}
.workspace-header .workspace-account small {
  color: #9fb1c0;
}
.workspace-shell .workspace-header .btn {
  background: transparent;
  border: 1px solid #ffffff45;
  color: #fff;
}
.workspace-shell .workspace-header .btn:hover {
  background: #ffffff14;
  border-color: #ffffff80;
}
.workspace-nav a {
  color: #b3c2cf;
}
.workspace-nav a:hover {
  color: #fff;
}
.workspace-nav a[aria-current='page'] {
  border-bottom-color: #d4aa55;
  color: #fff;
}
.workspace-shell .kpi {
  position: relative;
  --tone: #8a96a3;
}
.workspace-shell .kpi-blue {
  --tone: #2f6fa3;
}
.workspace-shell .kpi-green {
  --tone: #1a7f37;
}
.workspace-shell .kpi-red {
  --tone: #c4382c;
}
.workspace-shell .kpi-amber {
  --tone: #b7791f;
}
.workspace-shell .kpi-violet {
  --tone: #7c4dcc;
}
.workspace-shell .kpi-teal {
  --tone: #0f8a8a;
}
.workspace-shell .kpi[class*='kpi-']:not(.kpi-account) {
  background: #fff;
  background: color-mix(in srgb, var(--tone) 6%, #fff);
}
.workspace-shell .kpi[class*='kpi-']:not(.kpi-account):before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tone);
}
.workspace-shell .kpi[class*='kpi-']:not(.kpi-account) .muted {
  color: var(--tone);
  font-weight: 600;
}
/* Count cards that open their list (kpiCard() in backend/server.js, 2026-11-03). */
.workspace-shell a.kpi {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.workspace-shell a.kpi::after {
  content: 'View list \2192';
  display: block;
  margin-top: 2px;
  color: var(--tone);
  font-size: 11px;
  font-weight: 600;
}
.workspace-shell a.kpi[class*='kpi-']:not(.kpi-account):hover {
  background: color-mix(in srgb, var(--tone) 14%, #fff);
}
.workspace-shell a.kpi:focus-visible {
  outline: 2px solid var(--tone);
  outline-offset: -2px;
}
.workspace-shell :is(#properties, .admin-jump a[href='#properties']) {
  --sec: #2f6fa3;
}
.workspace-shell :is(#leads, .admin-jump a[href='#leads']) {
  --sec: #1a7f37;
}
.workspace-shell :is(#visits, .admin-jump a[href='#visits']) {
  --sec: #b7791f;
}
.workspace-shell :is(#sellers, .admin-jump a[href='#sellers']) {
  --sec: #0f8a8a;
}
.workspace-shell :is(#applications, .admin-jump a[href='#applications']) {
  --sec: #7c4dcc;
}
.workspace-shell :is(#alerts, .admin-jump a[href='#alerts']) {
  --sec: #c2416b;
}
.workspace-shell :is(#blog, .admin-jump a[href='#blog']) {
  --sec: #4f5bd5;
}
html body.workspace-shell main .container > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.workspace-shell main .container > h2:before {
  content: '';
  flex: none;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--sec, #2f6fa3);
}
.workspace-shell .admin-jump a:before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--sec, #8a96a3);
}
.status-badge {
  padding: 1px 8px 1px 6px;
  border-radius: 4px;
  background: #eef1f4;
}
.status-new,
.status-requested {
  background: #e8f0fd;
}
.status-contacted,
.status-confirmed {
  background: #fdf3e1;
}
.status-qualified,
.status-completed,
.status-valued,
.status-listed {
  background: #e6f4ea;
}
.status-cancelled {
  background: #fdecea;
}
.workspace-shell .crm-actions .btn[href^='tel:'] {
  background: #eef4fb;
  border-color: #c7d9ee;
  color: #1f5d8c;
}
.workspace-shell .crm-actions .btn-whatsapp {
  background: #eaf6ef !important;
  border-color: #b7dcc6 !important;
  color: #146c43 !important;
}
.workspace-shell .crm-actions .btn[href^='mailto:'] {
  background: #f3effb;
  border-color: #d6c9ef;
  color: #5b3fa0;
}
.workspace-shell .lead-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.lead-avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--tone, #2f6fa3);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}
.lead-avatar.tone-0 {
  --tone: #2f6fa3;
}
.lead-avatar.tone-1 {
  --tone: #1a7f37;
}
.lead-avatar.tone-2 {
  --tone: #b7791f;
}
.lead-avatar.tone-3 {
  --tone: #7c4dcc;
}
.lead-avatar.tone-4 {
  --tone: #0f8a8a;
}
.lead-avatar.tone-5 {
  --tone: #c2416b;
}
.lead-avatar.tone-6 {
  --tone: #4f5bd5;
}

/* Staff sign-in pages: one small card on a plain page. */
.auth-page main {
  min-height: calc(100vh - 140px);
}
.workspace-shell .auth-plain {
  padding: 64px 0 80px !important;
  background: #fff;
}
.auth-plain-card {
  width: min(400px, 100% - 32px);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--ws-line);
  border-radius: 8px;
  background: #fff;
}
.workspace-shell .auth-plain-card h1 {
  margin: 0 0 4px;
  color: var(--ws-ink);
  font-family: inherit !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
}
.workspace-shell .auth-plain-card > .muted {
  margin: 0 0 18px;
  font-size: 13px !important;
}
.workspace-shell .auth-plain-card .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.workspace-shell .auth-plain-card .field label {
  display: block;
  margin-bottom: 6px;
}
.workspace-shell .auth-plain-card input {
  width: 100%;
}
.workspace-shell .auth-plain-card .auth-submit {
  width: 100%;
  min-height: 38px !important;
}
.workspace-shell .auth-plain-note {
  margin: 16px 0 0;
  color: var(--ws-muted);
  font-size: 12px !important;
}

@media (min-width: 1101px) {
  .page-home .premium-search {
    display: grid;
    grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr)) auto;
  }
}
@media (min-width: 761px) {
  .workspace-header {
    position: sticky;
    top: 0;
    z-index: 30;
  }
}
@media (max-width: 1100px) {
  .page-home .premium-search {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-home .premium-search .search-submit {
    width: 100%;
  }
  .workspace-brand > span {
    display: none;
  }
}
@media (max-width: 760px) {
  .page-home .global-hero .original-hero-inner {
    min-height: 0 !important;
    padding: 46px 0 58px;
    gap: 24px;
  }
  .page-home .global-hero .hero-copy > p {
    font-size: 15px;
    line-height: 1.7;
  }
  .page-home .global-hero .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
  .page-home .award-hero-card {
    display: none;
  }
  .page-home .premium-search-shell {
    margin-top: -20px;
    margin-bottom: 24px;
  }
  .page-home .premium-search {
    padding: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }
  .page-home .premium-search .search-keyword,
  .page-home .premium-search .search-submit {
    grid-column: 1/-1;
  }
  .page-shell .property-content {
    padding: 18px;
  }
  .workspace-shell .container {
    width: calc(100% - 32px);
  }
  .workspace-top {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    min-height: 0;
  }
  .workspace-brand img {
    width: 110px;
    height: 32px;
  }
  .workspace-account {
    flex-wrap: wrap;
    gap: 6px;
  }
  .workspace-account > span {
    text-align: left;
    margin-right: auto;
  }
  .workspace-shell .sps-page-hero {
    padding: 16px 0 0 !important;
  }
  .workspace-shell .section {
    padding: 12px 0 32px;
  }
  .workspace-shell .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace-shell .kpi-grid > .kpi:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
  .workspace-shell .kpi {
    padding: 10px 12px;
  }
  .workspace-shell .table td {
    min-width: 150px;
  }
  .workspace-shell .two-col {
    grid-template-columns: 1fr;
  }
  .workspace-shell .form-card {
    padding: 16px;
  }
  .workspace-table-tools > div:first-child {
    max-width: none;
  }
}
@media (max-width: 450px) {
  .workspace-account {
    width: 100%;
  }
  .workspace-nav {
    width: 100% !important;
    padding-left: 8px;
    padding-right: 8px;
  }
  .workspace-footer .container {
    flex-direction: column;
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-shell * {
    scroll-behavior: auto !important;
  }
}
/* Home and team-page hero photo as WebP (2026-10-24, same picture). Phones get a full-height centre crop: a phone
   shows only the middle of the photo at full height, so it stays as sharp at 134 KB instead of 329 KB. The URLs must
   match HOME_HERO_PRELOAD in backend/server.js or the browser downloads the photo twice. */
html body .hero.original-hero.global-hero {
  background-image: linear-gradient(
      90deg,
      rgba(6, 18, 29, 0.46) 0%,
      rgba(6, 18, 29, 0.3) 38%,
      rgba(6, 18, 29, 0.12) 68%,
      rgba(6, 18, 29, 0.05) 100%
    ),
    url('/assets/images/home/home-page-bright.webp?v=20261024') !important;
}
@media (max-width: 760px) {
  html body .hero.original-hero.global-hero {
    background-image: linear-gradient(
        90deg,
        rgba(6, 18, 29, 0.46) 0%,
        rgba(6, 18, 29, 0.3) 38%,
        rgba(6, 18, 29, 0.12) 68%,
        rgba(6, 18, 29, 0.05) 100%
      ),
      url('/assets/images/home/home-page-bright-phone.webp?v=20261024') !important;
  }
}
html.sps-agents-page .page-hero,
body.sps-agents-page .page-hero {
  background-image: linear-gradient(
      90deg,
      rgba(4, 18, 29, 0.75) 0%,
      rgba(4, 18, 29, 0.62) 38%,
      rgba(4, 18, 29, 0.42) 68%,
      rgba(4, 18, 29, 0.32) 100%
    ),
    url('/assets/images/home/home-page-bright.webp?v=20261024') !important;
}

/* /agents on phones (2026-10-29): use the same lighter phone photo as the home page. */
@media (max-width: 760px) {
  html.sps-agents-page .page-hero,
  body.sps-agents-page .page-hero {
    background-image: linear-gradient(
        90deg,
        rgba(4, 18, 29, 0.75) 0%,
        rgba(4, 18, 29, 0.62) 38%,
        rgba(4, 18, 29, 0.42) 68%,
        rgba(4, 18, 29, 0.32) 100%
      ),
      url('/assets/images/home/home-page-bright-phone.webp?v=20261024') !important;
  }
}

/* Saved properties (2026-10-24): heart on cards and property pages, header link with a count. Kept on the device. */
.property-card {
  position: relative;
}
.save-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ui-navy);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(8, 22, 36, 0.18);
  padding: 0;
}
.save-heart[hidden],
.saved-link[hidden] {
  display: none !important;
}
.save-heart svg,
.saved-link svg,
.btn-save svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.save-heart[aria-pressed='true'],
.btn-save[aria-pressed='true'] {
  color: #c0392b;
}
.save-heart[aria-pressed='true'] svg,
.btn-save[aria-pressed='true'] svg,
.saved-link svg {
  fill: currentColor;
}
.saved-link {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #d8d8d4;
  background: #fff;
  color: #c0392b;
  display: grid;
  place-items: center;
}
.saved-link [data-saved-count] {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--ui-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.detail-share {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.detail-share .btn {
  width: 100%;
  gap: 8px;
}
.detail-share .btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-save[hidden] {
  display: none !important;
}
.saved-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.saved-intro p {
  margin: 0;
  max-width: 640px;
}
@media (max-width: 480px) {
  .detail-share {
    grid-template-columns: 1fr;
  }
}

/* Admin visitor report (2026-10-24) */
.visit-bar {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #2f6f8f;
  min-width: 2px;
}
.visit-bar-cell {
  width: 45%;
}
.visit-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.visit-tables .table {
  min-width: 0;
}
@media (max-width: 900px) {
  .visit-tables {
    grid-template-columns: 1fr;
  }
}
