:root {
  --paper: #f3efe8;
  --paper-soft: #ebe5dc;
  --ink: #211912;
  --ink-soft: #4b3a2d;
  --sea: #7b5f45;
  --sea-deep: #2b1d14;
  --sand: #d2c0a8;
  --line: rgba(43, 29, 20, 0.16);
  --white: #ffffff;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; min-width: 0; display: block; }
button, input, select, textarea { font: inherit; }

.premium-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 12%, rgba(123,95,69,0.12), transparent 32%),
    linear-gradient(180deg, rgba(235,229,220,0.7), rgba(243,239,232,1) 420px),
    var(--paper);
}
.premium-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 78px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 34px;
  background: rgba(243,239,232,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.34);
}
.premium-header > * { min-width: 0; }
.brand { display: inline-flex; flex-direction: column; width: fit-content; }
.brand span {
  font-family: var(--font-display);
  font-size: 33px;
  line-height: 1;
  letter-spacing: 0.09em;
  font-weight: 500;
}
.brand small {
  margin-top: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
}
.premium-nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  min-width: 0;
}
.premium-nav a,
.logout-link,
.mini-link {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 800;
  color: rgba(33,25,18,0.68);
}
.logout-link { white-space: nowrap; }
.premium-nav a.active { color: var(--ink); border-bottom: 1px solid currentColor; }
.premium-main { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0 80px; }
.premium-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: clamp(28px, 5vw, 82px);
  align-items: end;
  padding-bottom: 44px;
}
.compact-hero h1 {
  max-width: 720px;
  font-size: clamp(42px, 5.4vw, 72px);
}
.admin-hero {
  grid-template-columns: minmax(0, 1fr);
  max-width: 840px;
}
.overline {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  font-weight: 800;
  color: var(--sea);
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; }
h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.95;
}
.premium-hero p:last-child,
.intro-copy {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.4;
  color: rgba(43,29,20,0.72);
}
.status-strip {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.status-strip div {
  padding: 18px;
  background: rgba(255,255,255,0.36);
}
.status-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}
.status-strip span {
  display: block;
  margin-top: 7px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 800;
  color: rgba(43,29,20,0.58);
}
.panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.34);
  padding: clamp(22px, 4vw, 38px);
}
.panel h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 0.98;
}
.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.panel-title-row h2 { margin: 0; }
.panel-title-row small,
.feed-sync {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 9px;
  font-weight: 800;
  color: rgba(43,29,20,0.62);
  white-space: nowrap;
}
.panel-intro {
  max-width: 720px;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(43,29,20,0.68);
}
.login-panel {
  width: min(520px, calc(100% - 40px));
  margin: 84px auto;
}
.form-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  min-width: 0;
  display: grid;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  font-weight: 800;
  color: rgba(43,29,20,0.64);
}
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(43,29,20,0.16);
  background: rgba(255,255,255,0.36);
  padding: 13px 14px;
  color: var(--ink);
  outline: none;
}
textarea { min-height: 110px; resize: vertical; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  background: var(--sea-deep);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.button.danger {
  background: transparent;
  color: #7f2e20;
  border: 1px solid rgba(127,46,32,0.34);
}
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 20px;
}
.property-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.38);
  display: flex;
  flex-direction: column;
}
.property-card-muted {
  opacity: 0.56;
  background: rgba(224,219,211,0.55);
}
.property-card-muted .property-media img {
  filter: grayscale(0.65) saturate(0.55) contrast(0.9);
}
.property-media {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.28;
  background: var(--paper-soft);
  overflow: hidden;
}
.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(0.98);
}
.gallery-trigger {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.42);
  background: rgba(33,25,18,0.72);
  color: var(--white);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.gallery-trigger span,
.gallery-trigger strong {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 9px;
  font-weight: 800;
}
.gallery-open { overflow: hidden; }
.gallery-modal[hidden] { display: none; }
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
}
.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33,25,18,0.74);
  backdrop-filter: blur(8px);
}
.gallery-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1180px, 100%);
  max-height: min(880px, calc(100vh - 56px));
  border: 1px solid rgba(255,255,255,0.24);
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(0,0,0,0.28);
}
.gallery-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}
.gallery-header .overline { margin-bottom: 8px; }
.gallery-header h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1;
}
.gallery-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.gallery-close {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.gallery-manage {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(127,46,32,0.34);
  background: rgba(127,46,32,0.08);
  color: #7f2e20;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.gallery-manage[hidden] { display: none; }
.gallery-stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  background: #17110d;
}
.gallery-stage img {
  width: 100%;
  height: min(62vh, 620px);
  object-fit: contain;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 58px;
  border: 1px solid rgba(255,255,255,0.32);
  background: rgba(33,25,18,0.48);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 34px;
  cursor: pointer;
}
.gallery-arrow.prev { left: 16px; }
.gallery-arrow.next { right: 16px; }
.gallery-remove-photo {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.42);
  background: rgba(33,25,18,0.72);
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.gallery-remove-photo[hidden] { display: none; }
.gallery-manage-panel[hidden] { display: none; }
.gallery-manage-panel {
  min-height: 0;
  overflow: auto;
  padding: 18px;
  background: #17110d;
}
.gallery-manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.gallery-manage-grid article {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.35;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
}
.gallery-manage-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-manage-grid button {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.42);
  background: rgba(127,46,32,0.86);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.gallery-manage-grid button:disabled {
  display: none;
}
.gallery-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}
.gallery-footer > span {
  min-width: 58px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 800;
  color: rgba(43,29,20,0.62);
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.gallery-thumbs button {
  flex: 0 0 74px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  background: var(--paper-soft);
  cursor: pointer;
  opacity: 0.68;
}
.gallery-thumbs button.active {
  border-color: var(--sea-deep);
  opacity: 1;
}
.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.property-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}
.card-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.card-badge-row {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.property-copy h2 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 0.96;
}
.property-type {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 10px;
  font-weight: 800;
  color: var(--sea);
}
.property-description-trigger {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  margin: 14px 0 2px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.26);
  text-align: left;
  cursor: pointer;
}
.property-description-cta {
  justify-content: center;
}
.property-description {
  display: block;
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.38;
  color: rgba(43,29,20,0.74);
}
.property-description-trigger small {
  display: inline-flex;
  margin-top: 0;
  border-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 9px;
  font-weight: 800;
  color: var(--sea);
}
.property-description-trigger:hover,
.property-description-trigger:focus-visible {
  background: rgba(255,255,255,0.48);
  border-color: rgba(43,29,20,0.26);
}
.property-description-trigger:hover .property-description,
.property-description-trigger:focus-visible .property-description {
  color: var(--cacao);
}
.property-description-trigger:focus-visible {
  outline: 2px solid rgba(44,82,92,0.35);
  outline-offset: 4px;
}
.marketplace-ref {
  margin: -2px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 800;
  color: rgba(43,29,20,0.56);
  overflow-wrap: anywhere;
}
.marketplace-ref a,
.unit-breakdown-list a {
  color: var(--sea);
  border-bottom: 1px solid rgba(44,82,92,0.34);
}
.marketplace-ref a:hover,
.unit-breakdown-list a:hover,
.marketplace-ref a:focus-visible,
.unit-breakdown-list a:focus-visible {
  color: var(--chocolate);
  border-bottom-color: currentColor;
}
.description-dialog {
  max-width: 760px;
}
.description-body {
  padding: 28px;
  max-height: min(62vh, 620px);
  overflow-y: auto;
}
.description-body p {
  margin: 0;
  white-space: pre-line;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.34;
  color: rgba(43,29,20,0.82);
}
.property-card ul {
  margin: 0 0 22px;
  padding-left: 20px;
  color: rgba(43,29,20,0.78);
}
.property-card li { margin-bottom: 7px; }
.property-card .form-grid {
  margin-top: auto;
}
.unit-breakdown {
  margin: 0 0 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.3);
}
.unit-breakdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 13px;
  cursor: pointer;
  list-style: none;
}
.unit-breakdown summary::-webkit-details-marker { display: none; }
.unit-breakdown summary span,
.unit-breakdown summary strong {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 9px;
  font-weight: 800;
  color: rgba(43,29,20,0.62);
}
.unit-breakdown summary strong {
  white-space: nowrap;
}
.unit-breakdown summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1;
  color: var(--cacao);
}
.unit-breakdown[open] summary {
  border-bottom: 1px solid var(--line);
}
.unit-breakdown[open] summary::after {
  content: "-";
}
.unit-breakdown-list {
  display: grid;
  gap: 1px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--line);
}
.unit-breakdown-list article {
  display: grid;
  grid-template-columns: minmax(72px, 0.8fr) minmax(108px, 1fr) minmax(0, 1.7fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--paper);
}
.unit-breakdown-list.has-fee article {
  grid-template-columns: minmax(72px, 0.72fr) minmax(108px, 0.95fr) minmax(0, 1.55fr) minmax(72px, 0.65fr);
}
.unit-breakdown-list span,
.unit-breakdown-list small,
.unit-breakdown-list em {
  min-width: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 8px;
  font-weight: 800;
  color: rgba(43,29,20,0.58);
  overflow-wrap: anywhere;
}
.unit-breakdown-list em {
  justify-self: end;
  padding: 7px 9px;
  border: 1px solid rgba(129,89,63,0.25);
  background: rgba(129,89,63,0.08);
  font-style: normal;
  color: var(--chocolate);
}
.unit-breakdown-list strong {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.05;
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.property-card .admin-terms-form,
.property-card .admin-market-action {
  margin-top: 14px;
}
.partner-terms {
  display: grid;
  min-width: 0;
  gap: 8px;
  margin: 0 0 22px;
  padding: 14px;
  border: 1px solid rgba(129,89,63,0.28);
  background: rgba(129,89,63,0.08);
}
.partner-terms span,
.partner-terms small {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 9px;
  font-weight: 800;
  color: rgba(43,29,20,0.58);
}
.partner-terms strong {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
  color: var(--chocolate);
  overflow-wrap: anywhere;
}
.partner-terms-private {
  justify-self: end;
  width: auto;
  margin: -8px 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
}
.partner-terms-private summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  margin-left: auto;
  border: 1px solid rgba(43,29,20,0.12);
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  list-style: none;
}
.partner-terms-private summary::-webkit-details-marker { display: none; }
.partner-terms-private summary span {
  letter-spacing: 0.12em;
  font-size: 11px;
  color: rgba(43,29,20,0.36);
}
.partner-terms-private summary:hover,
.partner-terms-private summary:focus-visible {
  border-color: rgba(43,29,20,0.22);
  background: rgba(255,255,255,0.42);
}
.partner-terms-private[open] {
  justify-self: stretch;
  width: 100%;
  margin: 0 0 22px;
  padding: 12px;
  border: 1px solid rgba(129,89,63,0.22);
  background: rgba(129,89,63,0.06);
}
.partner-terms-private > div {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid rgba(129,89,63,0.22);
}
.partner-terms p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(43,29,20,0.76);
  overflow-wrap: anywhere;
}
.admin-terms-form textarea {
  min-height: 92px;
  resize: vertical;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 20px 0;
  background: var(--line);
}
.spec-grid div {
  min-width: 0;
  padding: 12px;
  background: var(--paper);
}
.spec-grid span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 9px;
  font-weight: 800;
  color: rgba(43,29,20,0.54);
}
.spec-grid strong {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.filters {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.filters > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filters a {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 800;
}
.filters a.active { background: var(--sea-deep); color: var(--white); }
.market-filter-panel {
  margin: 0 0 26px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.34);
}
.property-status-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 18px;
  border: 1px solid var(--line);
  background: var(--line);
}
.property-status-tab {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  background: rgba(255,255,255,0.42);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 800;
  color: rgba(43,29,20,0.66);
}
.property-status-tab.active {
  background: var(--sea-deep);
  color: var(--white);
}
.property-status-tab strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}
.market-filter-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.market-filter-heading .overline {
  margin-bottom: 8px;
}
.market-filter-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1;
}
.market-filter-heading > span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 800;
  color: rgba(43,29,20,0.62);
  white-space: nowrap;
}
.market-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(140px, 0.75fr));
  gap: 12px;
  align-items: end;
}
.admin-property-filter-form {
  grid-template-columns: minmax(240px, 1.35fr) repeat(5, minmax(132px, 0.75fr));
}
.market-filter-form .wide {
  grid-column: span 2;
}
.market-filter-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.market-filter-actions .button {
  min-height: 44px;
  padding: 0 18px;
}
.market-filter-actions .button.secondary {
  min-width: 96px;
}
.bespoke-request-panel {
  margin: 0 0 28px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.42);
}
.bespoke-request-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 104px;
  padding: 24px;
  cursor: pointer;
  list-style: none;
}
.bespoke-request-panel summary::-webkit-details-marker { display: none; }
.bespoke-request-panel summary h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 0.98;
}
.bespoke-request-panel summary span,
.bespoke-request-panel summary strong {
  display: inline-block;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 800;
  color: rgba(43,29,20,0.62);
}
.bespoke-request-panel summary strong {
  min-width: 176px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  border: 1px solid var(--line);
}
.bespoke-request-panel[open],
.bespoke-request-panel details[open] {
  background: rgba(255,255,255,0.5);
}
.bespoke-request-form {
  display: grid;
  gap: 18px;
  padding: 0 24px 24px;
}
.bespoke-request-form fieldset {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(43,29,20,0.12);
  background: rgba(247,244,238,0.48);
}
.bespoke-request-form legend {
  padding: 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 900;
  color: rgba(43,29,20,0.68);
}
.bespoke-request-form .wide,
.bespoke-request-form .choice-grid,
.bespoke-request-form .full {
  grid-column: 1 / -1;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}
.choice-grid label {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(43,29,20,0.12);
  background: rgba(255,255,255,0.34);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(43,29,20,0.78);
}
.choice-grid input {
  width: auto;
  min-width: 16px;
  margin: 0;
  accent-color: var(--sea-deep);
}
.bespoke-request-form textarea {
  min-height: 92px;
}
.bespoke-request-form > .button {
  width: 100%;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; vertical-align: top; }
th { text-transform: uppercase; letter-spacing: 0.1em; font-size: 10px; color: rgba(43,29,20,0.62); }
.lead-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.lead-kpis article {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.3);
  padding: 16px;
}
.lead-kpis span,
.lead-kpis small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 9px;
  font-weight: 800;
  color: rgba(43,29,20,0.55);
}
.lead-kpis strong {
  display: block;
  margin: 8px 0;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  line-height: 0.9;
}
.lead-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lead-status-tab {
  min-width: 150px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  background: rgba(255,255,255,0.24);
}
.lead-status-tab.active {
  background: var(--sea-deep);
  color: var(--white);
}
.lead-status-tab span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 9px;
  font-weight: 800;
}
.lead-status-tab strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
}
.lead-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.24);
}
.lead-list-head,
.lead-row summary {
  display: grid;
  grid-template-columns: 135px minmax(240px, 1.3fr) minmax(190px, 0.9fr) 145px 86px;
  gap: 14px;
  align-items: center;
}
.lead-list-head {
  padding: 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 9px;
  font-weight: 800;
  color: rgba(43,29,20,0.52);
}
.lead-list {
  display: grid;
  border: 1px solid var(--line);
  border-bottom: 0;
}
.lead-row {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.28);
}
.lead-row.pending {
  background: rgba(210,192,168,0.2);
  box-shadow: inset 4px 0 0 rgba(127,86,55,0.82);
}
.lead-row summary {
  min-height: 68px;
  padding: 0 14px;
  list-style: none;
  cursor: pointer;
}
.lead-row summary::-webkit-details-marker { display: none; }
.lead-row summary span {
  min-width: 0;
  color: rgba(43,29,20,0.68);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.lead-row summary strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
}
.lead-row summary small {
  display: block;
  margin-top: 5px;
  color: rgba(43,29,20,0.54);
  font-size: 11px;
}
.lead-row mark {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.34);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 8px;
  font-weight: 800;
}
.lead-row.pending mark {
  background: var(--sea-deep);
  border-color: var(--sea-deep);
  color: var(--white);
}
.lead-row summary span:last-child {
  justify-self: end;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 9px;
  font-weight: 800;
  color: var(--ink);
}
.lead-row[open] summary {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.24);
}
.lead-row[open] summary span:last-child {
  font-size: 0;
}
.lead-row[open] summary span:last-child::before {
  content: "Close";
  font-size: 9px;
}
.lead-row-body {
  padding: 18px;
}
.lead-note,
.lead-reply-history {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.lead-note strong,
.lead-reply-history strong {
  display: block;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 9px;
  color: var(--sea);
}
.lead-note p,
.lead-reply-history p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.35;
  color: rgba(43,29,20,0.75);
}
.lead-reply-history small {
  display: block;
  margin-top: 8px;
  color: rgba(43,29,20,0.52);
  font-size: 11px;
}
.lead-reply-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  align-items: end;
  padding-top: 14px;
}
.lead-reply-form textarea {
  min-height: 86px;
}
.lead-row-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
}
.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(210,192,168,0.18);
}
.notice.error { border-color: rgba(127,46,32,0.34); color: #7f2e20; }
.empty {
  padding: 42px;
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.28);
  font-family: var(--font-display);
  font-size: 22px;
}
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}
.admin-grid > * { min-width: 0; }
.collaborator-layout {
  display: grid;
  gap: 22px;
}
.collaborator-create-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: end;
}
.collaborator-list-panel {
  display: grid;
  gap: 18px;
}
.collaborator-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.24);
}
.collaborator-list-head,
.collaborator-row summary {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(220px, 1.2fr) 120px 120px 86px;
  gap: 14px;
  align-items: center;
}
.collaborator-list-head {
  padding: 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 9px;
  font-weight: 800;
  color: rgba(43,29,20,0.52);
}
.collaborator-list {
  display: grid;
  border: 1px solid var(--line);
  border-bottom: 0;
}
.collaborator-row {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.32);
}
.collaborator-row summary {
  min-height: 62px;
  padding: 0 14px;
  cursor: pointer;
  list-style: none;
}
.collaborator-row summary::-webkit-details-marker { display: none; }
.collaborator-row summary span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(43,29,20,0.68);
  font-size: 13px;
}
.collaborator-row summary strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.collaborator-row summary span:last-child {
  justify-self: end;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 9px;
  font-weight: 800;
  color: var(--ink);
}
.collaborator-row[open] summary {
  border-bottom: 1px solid var(--line);
  background: rgba(210,192,168,0.16);
}
.collaborator-row[open] summary span:last-child::before {
  content: "Close";
  font-size: 9px;
}
.collaborator-row[open] summary span:last-child {
  font-size: 0;
}
.collaborator-row-body {
  padding: 18px;
  display: grid;
  gap: 16px;
}
.collaborator-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.collaborator-card-head h3 {
  margin: 6px 0 4px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 0.95;
}
.collaborator-card-head a {
  color: rgba(43,29,20,0.68);
  font-size: 13px;
}
.collaborator-meta {
  min-width: 180px;
  border: 1px solid var(--line);
  display: grid;
}
.collaborator-meta span {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 9px;
  font-weight: 800;
  color: rgba(43,29,20,0.55);
}
.collaborator-meta span:last-child { border-bottom: 0; }
.collaborator-meta strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.collaborator-edit-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr) 190px;
  align-items: end;
}
.collaborator-edit-form .full {
  grid-column: auto;
}
.collaborator-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.mini-action {
  min-height: 38px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.26);
  color: var(--ink);
  padding: 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.mini-action.danger {
  border-color: rgba(127,46,32,0.28);
  color: #7f2e20;
}
.collaborator-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.collaborator-pagination span {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 10px;
  font-weight: 800;
  color: rgba(43,29,20,0.58);
}
.overview-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
}
.overview-stack {
  display: grid;
  gap: 22px;
}
.crm-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.crm-kpis article {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.36);
  padding: 18px;
}
.crm-kpis span,
.crm-kpis small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 9px;
  font-weight: 800;
  color: rgba(43,29,20,0.58);
}
.crm-kpis strong {
  display: block;
  margin: 7px 0;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  font-weight: 500;
}
.crm-kpis .kpi-sync {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}
.pipeline-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pipeline-column {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(243,239,232,0.58);
  padding: 12px;
}
.pipeline-column h3 {
  margin: 0 0 12px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 800;
  color: var(--sea);
}
.pipeline-column article {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.pipeline-column article:first-of-type { border-top: 0; }
.pipeline-column span,
.pipeline-column small,
.muted {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(43,29,20,0.58);
}
.pipeline-column strong {
  display: block;
  margin: 5px 0;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.02;
  font-weight: 500;
}
.overview-market-list {
  display: grid;
  gap: 12px;
}
.overview-property {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.32);
}
.overview-property-media {
  min-width: 0;
  aspect-ratio: 1.15;
  overflow: hidden;
  background: var(--paper-soft);
}
.overview-property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.overview-property-copy {
  min-width: 0;
  align-self: center;
}
.overview-property-copy span,
.overview-property-copy small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 800;
  color: var(--sea);
}
.overview-property-copy h3 {
  margin: 8px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 0.98;
}
.overview-property-copy p {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.3;
  color: rgba(43,29,20,0.72);
}
.overview-link {
  display: inline-flex;
  margin-top: 18px;
}
.properties-admin-layout {
  display: grid;
  gap: 22px;
}
.create-property-panel { padding: 0; }
.create-property-panel details { padding: 0; }
.create-property-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 0 28px;
  cursor: pointer;
  list-style: none;
}
.create-property-panel summary::-webkit-details-marker { display: none; }
.create-property-panel summary span {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
}
.create-property-panel summary small {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 800;
  color: rgba(43,29,20,0.58);
}
.create-property-panel summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  font-size: 20px;
  line-height: 1;
}
.create-property-panel details[open] summary {
  border-bottom: 1px solid var(--line);
}
.create-property-panel details[open] summary::after { content: "-"; }
.create-property-form {
  padding: 24px 28px 28px;
  grid-template-columns: 1.35fr 0.62fr 0.62fr 0.9fr 0.56fr 0.56fr 0.56fr 0.56fr;
  align-items: end;
}
.create-property-form .full {
  grid-column: auto;
}
.create-property-form label:nth-of-type(1) { grid-column: span 3; }
.create-property-form label:nth-of-type(6) { grid-column: span 2; }
.create-property-form label:nth-of-type(11),
.create-property-form label:nth-of-type(12) {
  grid-column: span 4;
}
.create-property-form label:nth-of-type(13) {
  grid-column: span 5;
}
.create-property-form .button {
  grid-column: span 3;
}
.create-property-form textarea {
  min-height: 70px;
}
.current-properties-panel {
  padding-bottom: 24px;
}
.top-selling-panel {
  display: grid;
  gap: 18px;
}
.top-selling-list {
  display: grid;
  border: 1px solid var(--line);
  border-bottom: 0;
}
.top-selling-item {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.3);
}
.top-selling-item summary::-webkit-details-marker { display: none; }
.top-selling-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(330px, 0.85fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  color: inherit;
  cursor: pointer;
  list-style: none;
  transition: background 160ms ease, border-color 160ms ease;
}
.top-selling-row:hover,
.top-selling-item[open] > .top-selling-row {
  background: rgba(255,255,255,0.58);
  border-color: rgba(43,29,20,0.26);
}
.top-selling-rank {
  font-family: var(--font-display);
  font-size: 31px;
  line-height: 1;
  color: var(--sea);
}
.top-selling-main {
  min-width: 0;
}
.top-selling-main span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 9px;
  font-weight: 800;
  color: rgba(43,29,20,0.58);
}
.top-selling-main h3 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 6px 0 5px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 0.98;
}
.top-selling-main p {
  margin: 0;
  color: rgba(43,29,20,0.64);
  font-size: 12px;
}
.top-selling-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 1px;
  background: var(--line);
}
.top-selling-metrics span {
  min-width: 0;
  background: var(--paper);
  padding: 10px;
}
.top-selling-metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
}
.top-selling-metrics small {
  display: block;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 8px;
  font-weight: 800;
  color: rgba(43,29,20,0.55);
}
.top-selling-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 9px;
  font-weight: 900;
  color: rgba(43,29,20,0.66);
}
.top-selling-item[open] .top-selling-open {
  background: var(--sea-deep);
  color: var(--white);
}
.top-selling-detail {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 20px;
  padding: 0 14px 18px 88px;
}
.top-selling-media {
  position: relative;
  min-height: 220px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
}
.top-selling-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}
.top-selling-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
}
.top-selling-copy > p {
  margin: 0;
  max-width: 860px;
  color: rgba(43,29,20,0.72);
  font-size: 15px;
  line-height: 1.65;
}
.top-selling-units {
  border: 1px solid var(--line);
  overflow-x: auto;
}
.top-selling-units-head,
.top-selling-unit {
  display: grid;
  grid-template-columns: 0.72fr 0.86fr 1.35fr 0.9fr 0.72fr;
  min-width: 760px;
}
.top-selling-units-head {
  background: rgba(43,29,20,0.06);
}
.top-selling-units-head span,
.top-selling-unit > span,
.top-selling-unit > strong,
.top-selling-unit > mark {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.top-selling-units-head span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 8px;
  font-weight: 900;
  color: rgba(43,29,20,0.56);
}
.top-selling-unit > strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}
.top-selling-unit > mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 8px;
  font-weight: 900;
  color: rgba(43,29,20,0.6);
}
.top-selling-unit.available > mark {
  color: #23614b;
}
.top-selling-unit.sold {
  opacity: 0.68;
}
.top-selling-market-link {
  justify-self: start;
}
.admin-property-list {
  display: grid;
  gap: 8px;
}
.bulk-property-form {
  display: grid;
  gap: 12px;
}
.bulk-property-toolbar {
  position: sticky;
  top: 74px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(246,243,238,0.94);
  backdrop-filter: blur(10px);
}
.bulk-property-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 800;
}
.bulk-property-toolbar > div {
  display: flex;
  gap: 8px;
}
.bulk-property-toolbar .button {
  min-height: 38px;
  width: auto;
}
.admin-property-row {
  display: grid;
  grid-template-columns: 54px 78px minmax(300px, 1.5fr) minmax(260px, 0.95fr) 98px;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.32);
  overflow: hidden;
}
.admin-property-select {
  display: grid;
  place-items: center;
  gap: 6px;
  margin: 0;
  min-width: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 8px;
  font-weight: 800;
  color: rgba(43,29,20,0.62);
}
.admin-property-select input,
.bulk-property-toolbar input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}
.admin-property-media {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.15;
  overflow: hidden;
  background: var(--paper-soft);
}
.admin-property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-gallery-trigger {
  left: 8px;
  right: 8px;
  bottom: 8px;
  min-height: 34px;
  padding: 0 10px;
}
.admin-gallery-trigger strong {
  font-size: 8px;
}
.admin-property-main,
.admin-property-specs,
.admin-property-actions,
.admin-property-action {
  min-width: 0;
}
.admin-property-main span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 800;
  color: var(--sea);
}
.admin-property-main h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 6px 0 6px;
  font-size: clamp(21px, 1.8vw, 27px);
  line-height: 1;
}
.admin-property-main p {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.3;
  color: rgba(43,29,20,0.72);
}
.admin-property-specs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.admin-property-specs span {
  min-width: 0;
  padding: 8px;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.admin-property-specs small {
  display: block;
  margin-top: 5px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 8px;
  font-weight: 800;
  color: rgba(43,29,20,0.55);
}
.admin-property-actions {
  display: grid;
  gap: 8px;
}
.admin-property-action .button {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
}
.score-badge,
.source-badge,
.readiness-badge,
.new-badge,
.unit-badge,
.reason-row span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.34);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 8px;
  font-weight: 800;
  color: rgba(43,29,20,0.68);
  white-space: nowrap;
}
.score-badge {
  background: rgba(43,29,20,0.9);
  color: var(--white);
  border-color: rgba(43,29,20,0.9);
}
.new-badge {
  border-color: var(--chocolate);
  background: var(--chocolate);
  color: var(--white);
}
.audit-badge {
  border-color: rgba(125,77,42,0.38);
  background: rgba(125,77,42,0.09);
  color: var(--cacao);
}
.readiness-badge {
  border-color: rgba(44,82,92,0.32);
  background: rgba(44,82,92,0.08);
  color: var(--sea);
}
.unit-badge {
  border-color: rgba(43,29,20,0.22);
  background: rgba(43,29,20,0.06);
  color: var(--cacao);
}
.reason-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.feed-panel { padding-bottom: 26px; }
.feed-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.feed-rules span {
  padding: 9px 11px;
  border: 1px solid var(--line);
  background: rgba(210,192,168,0.14);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 9px;
  font-weight: 800;
  color: rgba(43,29,20,0.64);
}
.feed-list {
  display: grid;
  gap: 12px;
}
.feed-row {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr) 96px;
  gap: 18px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.34);
}
.feed-media {
  min-width: 0;
  aspect-ratio: 1.25;
  overflow: hidden;
  background: var(--paper-soft);
}
.feed-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feed-main { min-width: 0; }
.feed-main h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}
.feed-main p {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.3;
  color: rgba(43,29,20,0.72);
}
.feed-status {
  min-width: 0;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 13px 8px;
}
.feed-status strong {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  font-weight: 500;
}
.feed-status span {
  display: block;
  margin-top: 7px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 8px;
  font-weight: 800;
  color: rgba(43,29,20,0.56);
}
.journal-admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.journal-workspace {
  width: 100%;
}
.journal-accordion {
  display: grid;
  gap: 12px;
}
.journal-entry {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.26);
}
.journal-entry.active {
  background: rgba(255,255,255,0.38);
}
.journal-entry-summary {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: center;
  padding: 15px 16px;
}
.journal-entry-summary span,
.journal-entry-summary small {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 9px;
  font-weight: 800;
  color: rgba(43,29,20,0.58);
}
.journal-entry-summary strong {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  font-weight: 500;
}
.journal-entry-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
  gap: 24px;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}
.journal-reading,
.journal-edit-form {
  min-width: 0;
  padding-top: 20px;
}
.journal-list {
  display: grid;
  gap: 8px;
}
.journal-status-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}
.journal-status-tab {
  min-width: 0;
  display: grid;
  gap: 5px;
  align-content: center;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.24);
}
.journal-status-tab.active {
  background: var(--sea-deep);
  color: var(--white);
  border-color: var(--sea-deep);
}
.journal-status-tab span {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 8px;
  font-weight: 800;
  color: rgba(43,29,20,0.58);
}
.journal-status-tab.active span {
  color: rgba(255,255,255,0.68);
}
.journal-status-tab strong {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  font-weight: 500;
}
.journal-list-item {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.28);
}
.journal-list-item.active {
  background: var(--sea-deep);
  color: var(--white);
  border-color: var(--sea-deep);
}
.journal-list-item span,
.journal-list-item small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 9px;
  font-weight: 800;
  color: rgba(43,29,20,0.58);
}
.journal-list-item.active span,
.journal-list-item.active small {
  color: rgba(255,255,255,0.68);
}
.journal-list-item strong {
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1;
  font-weight: 500;
}
.journal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.journal-actions form {
  margin: 0;
}
.journal-edit-form {
  display: grid;
  gap: 12px;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}
.journal-edit-form h3 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
}
.journal-edit-form textarea {
  min-height: 92px;
}
.journal-edit-form .journal-body-editor {
  min-height: 360px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  text-transform: none;
  letter-spacing: 0;
}
.journal-preview {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.journal-preview h3 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.96;
}
.journal-preview-subtitle,
.journal-preview > p {
  max-width: 760px;
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.42;
  color: rgba(43,29,20,0.74);
}
.journal-preview .journal-preview-subtitle {
  font-size: 25px;
  color: rgba(43,29,20,0.86);
}
.journal-preview aside {
  max-width: 760px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.28);
}
.journal-preview aside strong {
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  color: var(--sea);
}
.journal-preview aside p {
  margin: 0;
  line-height: 1.6;
  color: rgba(43,29,20,0.68);
}

@media (max-width: 980px) {
  .premium-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 18px;
  }
  .brand { grid-column: 1; }
  .logout-link {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .premium-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }
  .premium-main { width: min(100% - 32px, 1240px); padding-top: 36px; }
  .premium-hero, .admin-grid { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .journal-admin-layout { grid-template-columns: 1fr; }
  .journal-entry-summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .journal-entry-detail {
    grid-template-columns: 1fr;
  }
  .journal-edit-form {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }
  .market-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .market-filter-form .wide,
  .market-filter-actions {
    grid-column: 1 / -1;
  }
  .bespoke-request-form fieldset {
    grid-template-columns: 1fr;
  }
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline-board { grid-template-columns: 1fr; }
  .create-property-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .create-property-form label:nth-of-type(1),
  .create-property-form label:nth-of-type(6),
  .create-property-form label:nth-of-type(11),
  .create-property-form label:nth-of-type(12),
  .create-property-form label:nth-of-type(13),
  .create-property-form .button {
    grid-column: 1 / -1;
  }
  .admin-property-row {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .admin-property-specs,
  .admin-property-actions,
  .admin-property-action {
    grid-column: 2;
  }
  .admin-property-action .button { width: 100%; }
}
@media (max-width: 680px) {
  .form-grid, .property-grid { grid-template-columns: 1fr; }
  .collaborator-create-form,
  .collaborator-edit-form,
  .collaborator-card-head,
  .collaborator-filter {
    grid-template-columns: 1fr;
  }
  .collaborator-list-head {
    display: none;
  }
  .collaborator-row summary {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    min-height: auto;
    padding: 14px;
  }
  .collaborator-row summary span:nth-child(2),
  .collaborator-row summary span:nth-child(3),
  .collaborator-row summary span:nth-child(4) {
    grid-column: 1;
  }
  .collaborator-row summary span:last-child {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
  }
  .collaborator-row-body {
    padding: 14px;
  }
  .collaborator-create-form .button,
  .collaborator-edit-form .button {
    width: 100%;
  }
  .collaborator-edit-form .full {
    grid-column: 1 / -1;
  }
  .collaborator-meta {
    min-width: 0;
  }
  .collaborator-actions {
    justify-content: stretch;
  }
  .collaborator-actions form,
  .mini-action {
    width: 100%;
  }
  .lead-kpis {
    grid-template-columns: 1fr;
  }
  .lead-status-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }
  .lead-status-tab {
    min-width: 0;
  }
  .lead-filter {
    grid-template-columns: 1fr;
  }
  .lead-list-head {
    display: none;
  }
  .lead-row summary {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    min-height: auto;
    padding: 14px;
  }
  .lead-row summary span:nth-child(2),
  .lead-row summary span:nth-child(3),
  .lead-row summary span:nth-child(4) {
    grid-column: 1;
  }
  .lead-row summary span:last-child {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
  }
  .lead-row-body {
    padding: 14px;
  }
  .top-selling-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }
  .top-selling-metrics {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .top-selling-open {
    grid-column: 1 / -1;
    min-height: 34px;
  }
  .top-selling-main h3 {
    -webkit-line-clamp: 2;
  }
  .top-selling-detail {
    grid-template-columns: 1fr;
    padding: 0 12px 14px;
  }
  .top-selling-media,
  .top-selling-media img {
    min-height: 210px;
  }
  .top-selling-copy .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .create-property-form {
    grid-template-columns: 1fr;
  }
  .create-property-form label:nth-of-type(1),
  .create-property-form label:nth-of-type(4),
  .create-property-form label:nth-of-type(8),
  .create-property-form label:nth-of-type(9),
  .create-property-form label:nth-of-type(10),
  .create-property-form .button {
    grid-column: 1 / -1;
  }
  .premium-shell {
    background:
      linear-gradient(180deg, rgba(235,229,220,0.82), rgba(243,239,232,1) 280px),
      var(--paper);
  }
  .premium-header {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 13px 12px 11px;
    gap: 10px 12px;
  }
  .brand span { font-size: 28px; }
  .brand small {
    margin-top: 6px;
    font-size: 9px;
    letter-spacing: 0.14em;
  }
  .premium-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% + 24px);
    margin-inline: -12px;
    padding: 4px 12px 6px;
    gap: 8px;
  }
  .premium-nav::-webkit-scrollbar { display: none; }
  .premium-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.26);
    white-space: nowrap;
    letter-spacing: 0.075em;
    font-size: 9px;
  }
  .premium-nav a.active {
    background: var(--sea-deep);
    color: var(--white);
    border-bottom: 1px solid var(--sea-deep);
  }
  .logout-link {
    justify-self: end;
    align-self: center;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.24);
    font-size: 9px;
    letter-spacing: 0.075em;
  }
  .premium-main {
    width: min(100% - 24px, 1240px);
    padding: 26px 0 56px;
  }
  h1 {
    font-size: clamp(34px, 11vw, 48px);
    line-height: 0.98;
  }
  .premium-hero {
    gap: 18px;
    padding-bottom: 24px;
  }
  .premium-hero p:last-child,
  .intro-copy {
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.36;
  }
  .overline {
    margin-bottom: 12px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compact-hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .status-strip div { padding: 13px; }
  .status-strip strong {
    font-size: 28px;
    overflow-wrap: anywhere;
  }
  .status-strip span {
    font-size: 8px;
    letter-spacing: 0.08em;
  }
  .panel { padding: 20px 16px; }
  .panel h2 {
    margin-bottom: 16px;
    font-size: 30px;
  }
  .filters {
    width: calc(100% + 24px);
    margin-inline: -12px;
    padding: 0 12px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .filters > div {
    flex-wrap: nowrap;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 10px 12px;
    white-space: nowrap;
    letter-spacing: 0.08em;
  }
  .marketplace-filters,
  .admin-filters {
    display: flex;
    gap: 8px;
  }
  .marketplace-filters > div,
  .admin-filters > div {
    flex: 0 0 auto;
  }
  .market-filter-panel {
    padding: 16px;
  }
  .property-status-tabs {
    display: flex;
    width: calc(100% + 32px);
    margin-inline: -16px;
    padding: 0 16px 4px;
    border-inline: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .property-status-tabs::-webkit-scrollbar { display: none; }
  .property-status-tab {
    flex: 0 0 142px;
  }
  .market-filter-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
  .bespoke-request-panel summary {
    align-items: stretch;
    flex-direction: column;
    min-height: auto;
    padding: 18px;
  }
  .bespoke-request-panel summary strong {
    width: 100%;
  }
  .bespoke-request-form {
    padding: 0 18px 18px;
  }
  .bespoke-request-form fieldset {
    padding: 14px;
  }
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .market-filter-form {
    grid-template-columns: 1fr;
  }
  .market-filter-actions {
    grid-template-columns: 1fr;
  }
  .lead-card-main,
  .lead-reply-form {
    grid-template-columns: 1fr;
    display: grid;
  }
  .property-grid { gap: 16px; }
  .property-card {
    background: rgba(255,255,255,0.42);
  }
  .property-media { aspect-ratio: 1.38; }
  .gallery-trigger {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  .property-copy { padding: 18px 16px 20px; }
  .card-eyebrow {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .unit-breakdown-list article {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .unit-breakdown-list.has-fee article {
    grid-template-columns: 1fr;
  }
  .unit-breakdown-list em {
    justify-self: start;
    margin-top: 4px;
  }
  .property-copy h2 {
    margin-top: 4px;
    font-size: 30px;
    line-height: 1;
    overflow-wrap: anywhere;
  }
  .property-description {
    margin-top: 13px;
    font-size: 17px;
  }
  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 16px 0;
  }
  .spec-grid div { padding: 11px; }
  .spec-grid strong {
    font-size: 18px;
    line-height: 1.05;
  }
  .property-card .form-grid {
    gap: 10px;
  }
  .property-card textarea {
    min-height: 82px;
  }
  .button {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
  }
  .overview-property {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }
  .overview-property-media { aspect-ratio: 0.95; }
  .overview-property-copy h3 { font-size: 24px; }
  .overview-property-copy p { font-size: 15px; }
  .overview-property-copy h3,
  .overview-property-copy p,
  .pipeline-column strong {
    overflow-wrap: anywhere;
  }
  .admin-property-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }
  .bulk-property-toolbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }
  .bulk-property-toolbar > div {
    display: grid;
    grid-template-columns: 1fr;
  }
  .bulk-property-toolbar .button {
    width: 100%;
  }
  .admin-property-select {
    place-items: start;
    padding: 12px 14px 0;
  }
  .crm-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .crm-kpis article { padding: 14px; }
  .crm-kpis strong { font-size: 32px; }
  .panel-title-row {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .panel-title-row small,
  .feed-sync {
    width: fit-content;
    white-space: normal;
  }
  .admin-property-media { aspect-ratio: 1.55; }
  .admin-property-main { padding: 15px 14px 12px; }
  .admin-property-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column: 1 / -1;
    margin: 0 14px 14px;
  }
  .admin-property-specs span {
    padding: 9px;
    font-size: 16px;
  }
  .admin-property-actions,
  .admin-property-action {
    grid-column: 1 / -1;
    padding: 0 14px 14px;
  }
  .admin-property-main h3 {
    font-size: 26px;
    line-height: 1;
    overflow-wrap: anywhere;
  }
  .admin-property-main p { font-size: 15px; }
  .table-wrap { margin-inline: -16px; border-left: 0; border-right: 0; }
  table { min-width: 620px; }
  th, td { padding: 12px; }
  .feed-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }
  .feed-media { aspect-ratio: 1.45; }
  .feed-main { padding: 15px 14px 12px; }
  .feed-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 14px 14px;
    text-align: left;
  }
  .feed-status span { margin-top: 0; }
  .journal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .journal-status-tabs {
    grid-template-columns: 1fr;
  }
  .journal-preview h3 {
    font-size: 34px;
  }
  .journal-preview-subtitle,
  .journal-preview > p {
    font-size: 19px;
  }
  .journal-preview .journal-preview-subtitle {
    font-size: 22px;
  }
  .gallery-modal {
    padding: 10px;
  }
  .gallery-dialog {
    max-height: calc(100vh - 20px);
  }
  .gallery-header {
    padding: 16px;
    flex-direction: column;
    gap: 12px;
  }
  .gallery-header h2 {
    font-size: 30px;
  }
  .gallery-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
  .gallery-close,
  .gallery-manage {
    width: 100%;
  }
  .gallery-manage-panel {
    padding: 12px;
  }
  .gallery-manage-grid {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 8px;
  }
  .gallery-stage img {
    height: 46vh;
  }
  .gallery-arrow {
    width: 38px;
    height: 50px;
  }
  .gallery-arrow.prev { left: 8px; }
  .gallery-arrow.next { right: 8px; }
  .gallery-remove-photo {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }
  .gallery-footer {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }
  .gallery-thumbs button {
    flex-basis: 62px;
    height: 46px;
  }
}
@media (max-width: 420px) {
  .premium-main { width: min(100% - 20px, 1240px); }
  .premium-header {
    grid-template-columns: 1fr;
    padding-inline: 10px;
  }
  .brand,
  .logout-link,
  .premium-nav {
    grid-column: 1;
    grid-row: auto;
  }
  .logout-link {
    justify-self: start;
    width: auto;
  }
  .premium-nav {
    width: calc(100% + 20px);
    margin-inline: -10px;
    padding-inline: 10px;
  }
  .brand span { font-size: 25px; }
  .property-copy h2 { font-size: 27px; }
  .spec-grid strong { font-size: 17px; }
  .overview-property {
    grid-template-columns: 1fr;
  }
  .overview-property-media { aspect-ratio: 1.45; }
  .crm-kpis { grid-template-columns: 1fr; }
  .status-strip { grid-template-columns: 1fr; }
  .admin-property-specs,
  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
