/* Balearia demo — ported from app/globals.css.
   The Tailwind `@import "tailwindcss";` was removed; the block below restores
   the self-hosted Geist font and the few preflight defaults the app relies on. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font-geist-sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-geist-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* --- reset shim (subset of Tailwind preflight the app depended on) --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}
ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img, svg, video, canvas {
  display: block;
  max-width: 100%;
}
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
input, button, select, textarea {
  font-family: inherit;
  font-size: 100%;
}
/* --- end reset shim --- */


:root {
  --ink: #102d37;
  --ink-soft: #45616a;
  --muted: #789098;
  --canvas: #f3f7f8;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --line: #dfe9ec;
  --line-soft: #ebf1f3;
  --brand: #0c6670;
  --brand-deep: #0b4c57;
  --brand-soft: #e5f3f3;
  --green: #10a86b;
  --green-soft: #e5f7ef;
  --yellow: #e9a62b;
  --yellow-soft: #fff4d9;
  --red: #e45b52;
  --red-soft: #ffebe8;
  --blue: #4c79d8;
  --blue-soft: #e9effc;
  --shadow-sm: 0 1px 2px rgba(16, 45, 55, 0.03),
    0 8px 22px rgba(16, 45, 55, 0.035);
  --shadow-lg: 0 26px 70px rgba(16, 45, 55, 0.14);
  --sidebar-width: 238px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 77% -10%, rgba(135, 214, 211, 0.16), transparent 28rem),
    var(--canvas);
  color: var(--ink);
  font-family: var(--font-geist-sans), "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(12, 102, 112, 0.22);
  outline-offset: 2px;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  border-right: 1px solid rgba(209, 224, 228, 0.85);
  background: rgba(250, 252, 252, 0.93);
  padding: 26px 17px 18px;
  backdrop-filter: blur(22px) saturate(145%);
  transition: width 240ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar.collapsed {
  width: 82px;
}

.brand-row {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 0 6px;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #0d747d, #0a505c);
  box-shadow: 0 8px 20px rgba(11, 86, 96, 0.19);
  color: white;
}

.brand-copy {
  display: grid;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 140ms ease;
}

.brand-copy strong {
  font-size: 14px;
  font-weight: 740;
  letter-spacing: 0.16em;
}

.brand-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.sidebar.collapsed .brand-copy,
.sidebar.collapsed .nav-item span:not(.nav-badge),
.sidebar.collapsed .nav-section-label,
.sidebar.collapsed .user-copy,
.sidebar.collapsed .user-card > svg,
.sidebar.collapsed .collapse-button span {
  display: none;
}

.sidebar.collapsed .brand {
  justify-content: center;
}

.sidebar.collapsed .brand-row {
  justify-content: center;
  padding: 0;
}

.main-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  margin-top: 43px;
}

.nav-section-label {
  margin: 0 12px 10px;
  color: #8ba0a6;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  width: 100%;
  height: 43px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  padding: 0 12px;
  color: #587078;
  cursor: pointer;
  font-size: 13px;
  font-weight: 510;
  text-align: left;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.nav-item:hover {
  background: #edf4f4;
  color: var(--ink);
}

.nav-item:active {
  transform: scale(0.98);
}

.nav-item.active {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 650;
}

.nav-item.active svg {
  stroke-width: 2.2;
}

.nav-badge {
  display: grid;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  place-items: center;
  border-radius: 99px;
  background: var(--red-soft);
  color: #bd4d47;
  font-size: 10px;
  font-weight: 720;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 0;
}

.sidebar.collapsed .nav-badge {
  position: absolute;
  width: 7px;
  min-width: 7px;
  height: 7px;
  margin: -20px 0 0 19px;
  color: transparent;
}

.sidebar-footer {
  display: grid;
  gap: 8px;
}

.user-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding: 17px 9px 7px;
}

.avatar,
.top-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #173e48, #0d6972);
  color: white;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.03em;
}

.avatar.soft {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.user-copy {
  display: grid;
  min-width: 0;
  flex: 1;
}

.user-copy strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.collapse-button {
  display: flex;
  height: 33px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
}

.collapse-button:hover {
  background: #edf3f4;
}

.sidebar.collapsed .user-card {
  justify-content: center;
  padding-inline: 0;
}

.mobile-close {
  display: none;
  border: 0;
  background: transparent;
}

.sidebar-scrim {
  display: none;
}

.main-shell {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  transition: margin-left 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.main-shell.sidebar-collapsed {
  margin-left: 82px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  display: flex;
  height: 76px;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(216, 229, 232, 0.8);
  background: rgba(243, 247, 248, 0.78);
  padding: 0 clamp(24px, 3.5vw, 52px);
  backdrop-filter: blur(22px) saturate(150%);
}

.global-search {
  display: flex;
  width: min(440px, 45vw);
  height: 40px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(216, 228, 231, 0.9);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0 12px;
  color: #82979d;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.global-search:focus-within {
  background: white;
  box-shadow: 0 0 0 4px rgba(12, 102, 112, 0.08);
}

.global-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.global-search input::placeholder {
  color: #91a3a8;
}

.global-search kbd {
  border: 1px solid #dce6e8;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #f7f9fa;
  padding: 2px 5px;
  color: #899ca1;
  font-family: inherit;
  font-size: 9px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.icon-button {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(216, 228, 231, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  color: #526a72;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.icon-button:hover {
  border-color: #cadcdf;
  background: white;
}

.icon-button:active {
  transform: scale(0.94);
}

.icon-button.compact {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
}

.notification-count {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 2px solid var(--canvas);
  border-radius: 99px;
  background: var(--red);
  color: white;
  font-size: 8px;
  font-weight: 720;
}

.top-avatar {
  width: 37px;
  height: 37px;
  cursor: pointer;
}

.menu-trigger {
  display: none;
}

.page-content {
  width: min(1550px, 100%);
  margin: 0 auto;
  padding: 42px clamp(24px, 3.5vw, 52px) 96px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 29px;
}

.page-date,
.section-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 3.2vw, 43px);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.page-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 0 15px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  transition: box-shadow 150ms ease, transform 150ms ease, background 150ms ease;
}

.primary-button {
  border: 1px solid var(--brand);
  background: linear-gradient(145deg, #117681, #0b5c66);
  box-shadow: 0 8px 18px rgba(11, 92, 102, 0.16);
  color: white;
}

.primary-button:hover {
  box-shadow: 0 10px 24px rgba(11, 92, 102, 0.25);
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: #49636b;
}

.secondary-button:hover {
  background: white;
  transform: translateY(-1px);
}

.portfolio-summary {
  position: relative;
  display: grid;
  min-height: 222px;
  grid-template-columns: 1.15fr 0.72fr 1.25fr;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(210, 225, 228, 0.92);
  border-radius: 27px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 252, 0.92)),
    white;
  box-shadow: var(--shadow-sm);
  padding: 31px 32px;
}

.portfolio-summary::before {
  position: absolute;
  top: -130px;
  right: 18%;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: rgba(190, 232, 229, 0.21);
  content: "";
  filter: blur(6px);
}

.portfolio-copy {
  position: relative;
  z-index: 2;
}

.portfolio-copy h2,
.dashboard-section h2,
.panel-title h2,
.records-panel h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.portfolio-copy p {
  max-width: 400px;
  margin: 9px 0 17px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.portfolio-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.portfolio-locations span {
  border: 1px solid var(--line-soft);
  border-radius: 99px;
  background: #f7fafb;
  padding: 6px 9px;
  color: #5f777e;
  font-size: 9px;
  font-weight: 600;
}

.portfolio-score {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.score-ring {
  display: grid;
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--brand) var(--score), #e4eeee 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.score-ring::before {
  position: absolute;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 5px 18px rgba(20, 56, 65, 0.06);
  content: "";
}

.score-ring > span {
  position: relative;
  z-index: 1;
  display: grid;
  text-align: center;
}

.score-ring strong {
  font-size: 26px;
  font-weight: 680;
  letter-spacing: -0.05em;
}

.score-ring small {
  color: var(--muted);
  font-size: 9px;
}

.score-meta {
  display: grid;
  gap: 10px;
}

.score-meta > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 9px;
  white-space: nowrap;
}

.world-map {
  position: relative;
  height: 155px;
  margin-left: 26px;
  overflow: hidden;
  border-left: 1px solid var(--line-soft);
}

.world-shape {
  position: absolute;
  border-radius: 50% 46% 58% 42%;
  background: #dcebea;
  opacity: 0.84;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.8));
  transform: rotate(-11deg);
}

.world-shape.americas {
  top: 21px;
  left: 32px;
  width: 76px;
  height: 105px;
  border-radius: 61% 38% 45% 58%;
  clip-path: polygon(13% 2%, 82% 0, 97% 24%, 67% 43%, 71% 61%, 50% 100%, 28% 86%, 38% 60%, 0 41%);
}

.world-shape.europe {
  top: 30px;
  left: 157px;
  width: 81px;
  height: 48px;
  clip-path: polygon(0 33%, 29% 1%, 58% 15%, 100% 5%, 84% 45%, 60% 58%, 40% 100%, 14% 79%);
}

.world-shape.africa {
  top: 69px;
  left: 175px;
  width: 63px;
  height: 66px;
  clip-path: polygon(14% 0, 94% 13%, 73% 79%, 45% 100%, 18% 68%, 0 26%);
}

.world-line {
  position: absolute;
  height: 1px;
  background: repeating-linear-gradient(90deg, #89aaa9 0 4px, transparent 4px 8px);
  transform-origin: left center;
}

.line-mx-us {
  top: 72px;
  left: 65px;
  width: 48px;
  transform: rotate(-36deg);
}

.line-us-es {
  top: 45px;
  left: 93px;
  width: 95px;
  transform: rotate(4deg);
}

.world-pin {
  position: absolute;
  display: grid;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.world-pin > span {
  width: 12px;
  height: 12px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 2px 8px rgba(10, 80, 91, 0.32);
}

.world-pin > small {
  position: absolute;
  top: 13px;
  left: 50%;
  color: var(--brand-deep);
  font-size: 7px;
  font-weight: 750;
  transform: translateX(-50%);
}

.world-pin.mexico {
  top: 77px;
  left: 72px;
}

.world-pin.texas {
  top: 42px;
  left: 91px;
}

.world-pin.spain {
  top: 44px;
  left: 188px;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.snapshot-card {
  display: flex;
  min-width: 0;
  min-height: 101px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(216, 228, 231, 0.94);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.83);
  box-shadow: var(--shadow-sm);
  padding: 17px;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.snapshot-card:hover {
  border-color: #c7dcdf;
  box-shadow: 0 12px 28px rgba(16, 45, 55, 0.07);
  transform: translateY(-2px);
}

.snapshot-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 13px;
}

.snapshot-icon.mint {
  background: var(--green-soft);
  color: var(--green);
}

.snapshot-icon.coral {
  background: var(--red-soft);
  color: var(--red);
}

.snapshot-icon.amber {
  background: var(--yellow-soft);
  color: #b97909;
}

.snapshot-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.snapshot-content {
  display: grid;
  min-width: 0;
  flex: 1;
}

.snapshot-content small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 590;
}

.snapshot-content strong {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 680;
  letter-spacing: -0.035em;
}

.snapshot-content span {
  overflow: hidden;
  margin-top: 2px;
  color: #647c83;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snapshot-arrow {
  color: #9aabb0;
}

.dashboard-section {
  margin-top: 43px;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading-row p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.legend > span {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.7);
  padding: 7px 10px;
  color: #647b83;
  font-size: 9px;
  font-weight: 590;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
}

.status-dot.control,
.status-fill.control,
.map-pin.control {
  background: var(--green);
}

.status-dot.seguimiento,
.status-fill.seguimiento,
.map-pin.seguimiento {
  background: var(--yellow);
}

.status-dot.urgente,
.status-fill.urgente,
.map-pin.urgente {
  background: var(--red);
}

.status-dot.pulse {
  box-shadow: 0 0 0 0 rgba(228, 91, 82, 0.45);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 6px rgba(228, 91, 82, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(228, 91, 82, 0);
  }
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 19px 0 13px;
}

.status-filter {
  display: flex;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  padding: 3px;
}

.status-filter button {
  height: 29px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0 12px;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  font-weight: 590;
}

.status-filter button.active {
  background: white;
  box-shadow: 0 2px 8px rgba(16, 45, 55, 0.08);
  color: var(--ink);
}

.select-filter {
  position: relative;
  display: flex;
  height: 36px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.73);
  padding: 0 10px;
  color: #6f858b;
}

.select-filter select {
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  padding-right: 7px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 590;
}

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

.property-card {
  border: 1px solid rgba(211, 225, 228, 0.95);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  cursor: pointer;
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.property-card:hover {
  border-color: #bfd6da;
  box-shadow: 0 16px 38px rgba(16, 45, 55, 0.08);
  transform: translateY(-2px);
}

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

.property-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 590;
  letter-spacing: 0.025em;
}

.property-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 660;
  letter-spacing: -0.025em;
}

.property-card-body {
  display: grid;
  grid-template-columns: minmax(165px, 0.92fr) minmax(180px, 1.08fr);
  gap: 23px;
  margin-top: 16px;
}

.mini-plan {
  position: relative;
  min-height: 137px;
  overflow: hidden;
  border: 1px solid #dbe7ea;
  border-radius: 18px;
  background:
    radial-gradient(circle at 72% 22%, rgba(177, 220, 219, 0.22), transparent 46%),
    #f1f7f8;
}

.plan-street {
  position: absolute;
  width: 125%;
  height: 2px;
  border-radius: 99px;
  background: #c5d5d9;
}

.street-one {
  top: 52%;
  left: -13%;
  transform: rotate(-10deg);
}

.street-two {
  top: 51%;
  left: -9%;
  transform: rotate(23deg);
}

.plan-unit {
  position: absolute;
  height: 26px;
  border: 2px solid #d3e1e5;
  border-radius: 9px;
  background: #e6f0f3;
  box-shadow: inset 0 1px 0 white;
}

.unit-one {
  top: 19%;
  left: 13%;
  width: 18%;
  transform: rotate(5deg);
}

.unit-two {
  top: 24%;
  left: 37%;
  width: 23%;
}

.unit-three {
  top: 17%;
  right: 12%;
  width: 20%;
  transform: rotate(-2deg);
}

.unit-four {
  bottom: 19%;
  left: 43%;
  width: 24%;
}

.unit-five {
  right: -3%;
  bottom: 36%;
  width: 19%;
  height: 33px;
}

.map-pin {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(31, 62, 70, 0.2);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 150ms ease;
}

.map-pin:hover {
  transform: translate(-50%, -50%) scale(1.18);
}

.map-pin > span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: white;
}

.plan-location {
  position: absolute;
  right: 9px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.75);
  padding: 4px 6px;
  color: #789198;
  font-size: 7px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.occupancy-number {
  margin-top: -7px;
  color: var(--ink);
  font-size: clamp(31px, 3.2vw, 42px);
  font-weight: 690;
  letter-spacing: -0.055em;
  line-height: 1;
}

.occupancy-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.status-stack {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.status-row {
  display: grid;
  grid-template-columns: 8px 64px minmax(45px, 1fr) 24px;
  align-items: center;
  gap: 7px;
}

.status-name {
  color: #526970;
  font-size: 9px;
  font-weight: 620;
}

.status-track {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e6eff1;
}

.status-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
}

.status-row strong {
  color: #41575e;
  font-size: 9px;
  font-weight: 680;
  text-align: right;
}

.property-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.priority-chip {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  border-radius: 99px;
  padding: 7px 10px;
  font-size: 8px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority-chip.control {
  background: var(--green-soft);
  color: #38805e;
}

.priority-chip.seguimiento {
  background: var(--yellow-soft);
  color: #9e6d11;
}

.priority-chip.urgente {
  background: var(--red-soft);
  color: #b9514b;
}

.text-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  padding: 4px;
  color: var(--brand);
  cursor: pointer;
  font-size: 9px;
  font-weight: 650;
}

.empty-state {
  display: grid;
  min-height: 250px;
  place-items: center;
  align-content: center;
  border: 1px dashed #cbdcdf;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.46);
  color: var(--muted);
  text-align: center;
}

.empty-state h3 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 14px;
}

.empty-state p {
  margin: 5px 0 0;
  font-size: 10px;
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.74fr);
  gap: 13px;
  margin-top: 36px;
}

.action-panel,
.activity-panel,
.records-panel {
  border: 1px solid rgba(213, 226, 229, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
  padding: 21px;
}

.panel-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.attention-list {
  display: grid;
  margin-top: 15px;
}

.attention-list > button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
  padding: 13px 3px;
  cursor: pointer;
  text-align: left;
}

.attention-list > button:first-child {
  border-top: 0;
}

.attention-list > button:hover strong {
  color: var(--brand);
}

.attention-icon,
.notification-type,
.record-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
}

.attention-icon.urgent,
.notification-type.urgent {
  background: var(--red-soft);
  color: var(--red);
}

.attention-icon.amber,
.notification-type.amber {
  background: var(--yellow-soft);
  color: #b77c10;
}

.attention-icon.blue,
.notification-type.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.attention-list button > span:nth-child(2),
.critical-date-card > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.attention-list strong,
.critical-date-card strong {
  overflow: hidden;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention-list small,
.critical-date-card small {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.due-badge {
  border-radius: 99px;
  background: var(--yellow-soft);
  padding: 5px 8px;
  color: #9b6c14;
  font-size: 8px;
  font-weight: 650;
}

.due-badge.urgent {
  background: var(--red-soft);
  color: #b84d47;
}

.due-badge.neutral {
  background: #edf3f4;
  color: #657c82;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 17px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 10px;
  min-height: 56px;
}

.timeline-item:not(:last-child)::before {
  position: absolute;
  top: 24px;
  bottom: 1px;
  left: 11px;
  width: 1px;
  background: #dce7e9;
  content: "";
}

.timeline-icon {
  z-index: 1;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
}

.timeline-icon.success,
.notification-type.success {
  background: var(--green-soft);
  color: var(--green);
}

.timeline-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.timeline-icon.amber {
  background: var(--yellow-soft);
  color: #b67b0e;
}

.timeline-item p {
  display: grid;
  margin: 1px 0 0;
}

.timeline-item strong {
  font-size: 9px;
}

.timeline-item span {
  margin-top: 2px;
  color: #647b82;
  font-size: 8px;
}

.timeline-item small {
  margin-top: 3px;
  color: #9aabb0;
  font-size: 7px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0 0 16px -5px;
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}

.module-heading {
  align-items: flex-end;
}

.module-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.module-metrics article {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.metric-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 14px;
}

.metric-1 {
  background: var(--brand-soft);
  color: var(--brand);
}

.metric-2 {
  background: var(--green-soft);
  color: var(--green);
}

.metric-3 {
  background: var(--blue-soft);
  color: var(--blue);
}

.module-metrics article > div {
  display: grid;
}

.module-metrics small {
  color: var(--muted);
  font-size: 9px;
}

.module-metrics strong {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 680;
  letter-spacing: -0.035em;
}

.module-metrics span:not(.metric-symbol) {
  margin-top: 2px;
  color: #647c83;
  font-size: 8px;
}

.records-panel {
  margin-top: 14px;
}

.records-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
}

.inline-search {
  display: flex;
  width: 220px;
  height: 36px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 10px;
  color: var(--muted);
}

.inline-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 9px;
}

.records-table {
  display: grid;
}

.record-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(120px, 0.55fr) 110px 20px;
  align-items: center;
  gap: 16px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
  padding: 14px 4px;
  cursor: pointer;
  text-align: left;
}

.record-row:hover {
  background: #f8fbfb;
}

.record-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.record-icon.control {
  background: var(--green-soft);
  color: var(--green);
}

.record-icon.seguimiento {
  background: var(--yellow-soft);
  color: #b77c10;
}

.record-icon.urgente {
  background: var(--red-soft);
  color: var(--red);
}

.record-main > span:last-child {
  display: grid;
  min-width: 0;
}

.record-main strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-main small,
.record-detail {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  border-radius: 99px;
  padding: 6px 8px;
  font-size: 8px;
  font-weight: 620;
}

.record-status.control {
  background: var(--green-soft);
  color: #3c825f;
}

.record-status.seguimiento {
  background: var(--yellow-soft);
  color: #9e6f18;
}

.record-status.urgente {
  background: var(--red-soft);
  color: #ba514b;
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 69;
  visibility: hidden;
  background: rgba(9, 30, 36, 0);
  opacity: 0;
  backdrop-filter: blur(0);
  transition: opacity 220ms ease, background 220ms ease, backdrop-filter 220ms ease,
    visibility 220ms ease;
}

.drawer-scrim.open {
  visibility: visible;
  background: rgba(9, 30, 36, 0.25);
  opacity: 1;
  backdrop-filter: blur(4px);
}

.property-drawer,
.notification-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  width: min(420px, 94vw);
  overflow-y: auto;
  background: #fbfdfd;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  transform: translateX(102%);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.drawer-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 660;
  letter-spacing: -0.04em;
}

.drawer-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.drawer-plan {
  position: relative;
  margin-top: 25px;
}

.drawer-plan .mini-plan {
  min-height: 210px;
}

.drawer-status {
  position: absolute;
  right: 11px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.88);
  padding: 7px 10px;
  font-size: 8px;
  font-weight: 650;
  backdrop-filter: blur(8px);
}

.drawer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 11px;
}

.drawer-stats > div {
  display: grid;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: white;
  padding: 12px;
}

.drawer-stats small {
  color: var(--muted);
  font-size: 8px;
}

.drawer-stats strong {
  margin-top: 3px;
  font-size: 17px;
  font-weight: 670;
}

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

.critical-date-card {
  display: grid;
  width: 100%;
  grid-template-columns: 34px 1fr 16px;
  align-items: center;
  gap: 11px;
  border: 1px solid #f1d9d6;
  border-radius: 15px;
  background: #fff8f7;
  padding: 12px;
  cursor: pointer;
  text-align: left;
}

.manager-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  background: white;
  padding: 11px;
}

.manager-row > span:nth-child(2) {
  display: grid;
  flex: 1;
}

.manager-row strong {
  font-size: 10px;
}

.manager-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.drawer-primary {
  width: 100%;
  margin-top: 25px;
}

.notification-drawer {
  width: min(390px, 94vw);
}

.notification-list {
  display: grid;
  margin-top: 22px;
}

.notification-list button {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: start;
  gap: 11px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
  padding: 15px 3px;
  cursor: pointer;
  text-align: left;
}

.notification-list button:first-child {
  border-top: 0;
}

.notification-list button > span:last-child {
  display: grid;
}

.notification-list strong {
  font-size: 10px;
}

.notification-list small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.ai-assistant {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 65;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.ai-fab {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  background: linear-gradient(145deg, #0e737c, #0a515d);
  box-shadow: 0 16px 34px rgba(9, 69, 78, 0.26);
  padding: 0 16px;
  color: white;
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.ai-fab:hover {
  box-shadow: 0 19px 42px rgba(9, 69, 78, 0.34);
  transform: translateY(-2px);
}

.ai-assistant.open .ai-fab {
  width: 42px;
  height: 42px;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
}

.ai-panel {
  width: min(340px, calc(100vw - 32px));
  border: 1px solid rgba(205, 222, 225, 0.9);
  border-radius: 22px;
  background: rgba(252, 254, 254, 0.97);
  box-shadow: var(--shadow-lg);
  padding: 17px;
  backdrop-filter: blur(20px);
  animation: panel-in 230ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.ai-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ai-avatar {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--brand-soft), #d2ebea);
  color: var(--brand);
}

.ai-head > span:nth-child(2) {
  display: grid;
  flex: 1;
}

.ai-head strong {
  font-size: 11px;
}

.ai-head small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 7px;
}

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.ai-response {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  margin-top: 16px;
  border-radius: 14px;
  background: var(--brand-soft);
  padding: 12px;
  color: var(--brand-deep);
}

.ai-response p {
  margin: 0;
  font-size: 9px;
  line-height: 1.55;
}

.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 11px;
}

.quick-questions button {
  border: 1px solid var(--line);
  border-radius: 99px;
  background: white;
  padding: 6px 8px;
  color: #5c747b;
  cursor: pointer;
  font-size: 7px;
}

.quick-questions button:hover {
  border-color: #b9d4d7;
  color: var(--brand);
}

.ai-input {
  display: flex;
  height: 39px;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 0 5px 0 11px;
}

.ai-input input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 8px;
}

.ai-input button {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  cursor: pointer;
}

.ai-input button.listening {
  background: var(--red-soft);
  color: var(--red);
  animation: pulse-button 1.3s infinite;
}

@keyframes pulse-button {
  50% {
    transform: scale(0.93);
  }
}

.ai-disclaimer {
  display: block;
  margin-top: 8px;
  color: #98a8ac;
  font-size: 6px;
  text-align: center;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 84px;
  z-index: 80;
  display: flex;
  max-width: min(360px, calc(100vw - 32px));
  align-items: center;
  gap: 9px;
  border: 1px solid #cee4dc;
  border-radius: 14px;
  background: rgba(251, 254, 253, 0.97);
  box-shadow: 0 16px 40px rgba(16, 45, 55, 0.16);
  padding: 11px 14px 11px 10px;
  color: #3e6d5a;
  font-size: 9px;
  font-weight: 590;
  animation: toast-in 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.toast > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
}

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

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 1180px) {
  .portfolio-summary {
    grid-template-columns: 1.05fr 0.8fr;
  }

  .world-map {
    display: none;
  }

  .snapshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .property-card-body {
    grid-template-columns: 1fr;
  }

  .mini-plan {
    min-height: 150px;
  }
}

@media (max-width: 920px) {
  .sidebar {
    width: 260px;
    box-shadow: var(--shadow-lg);
    transform: translateX(-102%);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 49;
    display: block;
    visibility: hidden;
    background: rgba(8, 29, 35, 0.25);
    opacity: 0;
    backdrop-filter: blur(4px);
    transition: opacity 220ms ease, visibility 220ms ease;
  }

  .sidebar-scrim.open {
    visibility: visible;
    opacity: 1;
  }

  .mobile-close {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: var(--muted);
    cursor: pointer;
  }

  .collapse-button {
    display: none;
  }

  .main-shell,
  .main-shell.sidebar-collapsed {
    margin-left: 0;
  }

  .menu-trigger {
    display: grid;
  }

  .topbar {
    padding-inline: 22px;
  }

  .page-content {
    padding-inline: 24px;
  }

  .global-search {
    width: min(440px, 54vw);
  }

  .property-grid {
    grid-template-columns: 1fr;
  }

  .property-card-body {
    grid-template-columns: minmax(190px, 0.95fr) minmax(210px, 1.05fr);
  }

  .lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    height: 64px;
    gap: 9px;
    padding-inline: 14px;
  }

  .topbar-actions .icon-button:first-child {
    display: none;
  }

  .global-search {
    width: auto;
    flex: 1;
  }

  .global-search input::placeholder {
    color: transparent;
  }

  .global-search kbd {
    display: none;
  }

  .page-content {
    padding: 27px 14px 116px;
  }

  .page-heading {
    display: grid;
    gap: 19px;
    margin-bottom: 23px;
  }

  .page-heading h1 {
    font-size: 32px;
  }

  .heading-actions {
    width: 100%;
  }

  .heading-actions > button {
    flex: 1;
  }

  .portfolio-summary {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 25px;
    border-radius: 22px;
    padding: 23px 21px;
  }

  .portfolio-score {
    justify-content: flex-start;
  }

  .score-ring {
    width: 100px;
    height: 100px;
    flex-basis: 100px;
  }

  .score-ring::before {
    width: 73px;
    height: 73px;
  }

  .snapshot-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .snapshot-card {
    min-height: 95px;
    gap: 9px;
    border-radius: 17px;
    padding: 13px 11px;
  }

  .snapshot-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 11px;
  }

  .snapshot-content strong {
    font-size: 18px;
  }

  .snapshot-arrow {
    display: none;
  }

  .dashboard-section {
    margin-top: 34px;
  }

  .section-heading-row {
    display: grid;
    gap: 15px;
  }

  .legend {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .filter-row {
    align-items: stretch;
  }

  .status-filter {
    overflow-x: auto;
  }

  .status-filter button {
    padding-inline: 10px;
    white-space: nowrap;
  }

  .select-filter {
    display: none;
  }

  .property-card {
    border-radius: 21px;
    padding: 17px;
  }

  .property-card-body {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .mini-plan {
    min-height: 148px;
  }

  .occupancy-block {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    align-items: end;
  }

  .occupancy-number {
    font-size: 40px;
  }

  .occupancy-label {
    align-self: center;
  }

  .status-stack {
    grid-column: 1 / -1;
  }

  .status-row {
    grid-template-columns: 8px 70px minmax(70px, 1fr) 24px;
  }

  .property-card-foot {
    align-items: flex-start;
  }

  .priority-chip {
    max-width: 66%;
  }

  .lower-grid {
    margin-top: 28px;
  }

  .attention-list > button {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .attention-list .due-badge {
    display: none;
  }

  .activity-panel {
    display: none;
  }

  .module-metrics {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .module-metrics article {
    padding: 14px;
  }

  .records-toolbar {
    display: grid;
  }

  .inline-search {
    width: 100%;
  }

  .record-row {
    grid-template-columns: 1fr 16px;
    gap: 8px;
  }

  .record-detail,
  .record-status {
    display: none;
  }

  .ai-assistant {
    right: 14px;
    bottom: 74px;
  }

  .ai-fab {
    width: 47px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .ai-fab span {
    display: none;
  }

  .ai-panel {
    width: calc(100vw - 28px);
  }

  .toast {
    right: 14px;
    bottom: 127px;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: calc(64px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(207, 223, 226, 0.92);
    background: rgba(250, 252, 252, 0.94);
    padding: 5px 8px env(safe-area-inset-bottom);
    backdrop-filter: blur(22px) saturate(150%);
  }

  .mobile-bottom-nav button {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: #7d9197;
    cursor: pointer;
  }

  .mobile-bottom-nav button span {
    font-size: 7px;
    font-weight: 600;
  }

  .mobile-bottom-nav button.active {
    color: var(--brand);
  }

  .property-drawer,
  .notification-drawer {
    top: auto;
    width: 100%;
    max-height: 92vh;
    border-radius: 25px 25px 0 0;
    padding: 22px 19px calc(24px + env(safe-area-inset-bottom));
    transform: translateY(103%);
  }

  .property-drawer.open,
  .notification-drawer.open {
    transform: translateY(0);
  }
}

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