/* Briker — black theme. Auto-derived from the original Figma stylesheet; every green hue was desaturated to a matched-luminance graphite/grey. */
/* tailwindcss @import removed: this stylesheet is served statically (no build step), and the import 404'd on /css/tailwindcss. The design does not use Tailwind utilities. */

.figma-custom-code-fragment {
  display: contents;
}

.figma-bypass-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2147483647;
  transform: translateY(-150%);
  border-radius: 6px;
  background: #111827;
  color: #fff;
  padding: 8px 12px;
  font:
    600 14px/1.2 system-ui,
    sans-serif;
  text-decoration: none;
}

.figma-bypass-link:focus {
  transform: translateY(0);
}
/* tailwindcss @import removed: this stylesheet is served statically (no build step), and the import 404'd on /css/tailwindcss. The design does not use Tailwind utilities. */

:root {
  --midnight: #171d24;
  --ivory: #f5f3ee;
  --sage: #bbc4b9;
  --sand: #d2a886;
  --forest: #313234;
  --white: #fff;
  --line: rgba(23, 29, 36, 0.14);
}
* {
  scroll-behavior: smooth;
}
html,
body {
  overflow-x: clip;
}
@layer base {
  body {
    margin: 0;
    background: var(--ivory);
    color: var(--midnight);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  button,
  input,
  select {
    font: inherit;
  }
  button {
    cursor: pointer;
  }
  img {
    display: block;
    max-width: 100%;
  }
}
.site-shell {
  overflow: hidden;
}
.wrap {
  width: min(1320px, calc(100% - 64px));
  margin-inline: auto;
}
.section {
  padding: 140px 0;
}
.eyebrow {
  margin: 0 0 24px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 600;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(42px, 4.3vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 450;
}
.logo {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  color: var(--midnight);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.055em;
  text-decoration: none;
  position: relative;
  z-index: 3;
}
.logo > span:last-child {
  color: var(--forest);
  margin-left: -7px;
}
.logo-light {
  color: white;
}
.logo-light > span:last-child {
  color: var(--sage);
}
.logo-mark {
  position: relative;
  width: 23px;
  height: 22px;
  display: block;
}
.logo-mark i {
  position: absolute;
  width: 11px;
  height: 18px;
  border: 2px solid currentColor;
  transform: skewY(-26deg);
  top: 2px;
}
.logo-mark i:last-child {
  left: 10px;
  transform: skewY(26deg);
}
.nav {
  height: 82px;
  padding: 0 max(32px, calc((100vw - 1440px)/2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: 0.35s;
}
.nav-solid {
  height: 70px;
  color: var(--midnight);
  background: rgba(245, 243, 238, 0.94);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.nav-links {
  display: flex;
  gap: 34px;
}
.nav-links button,
.login {
  color: inherit;
  background: none;
  border: 0;
  font-size: 13px;
  min-height: 44px;
}
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}
.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  padding: 11px 15px;
  font-size: 12px;
}
.nav-solid .nav-cta {
  color: #fff;
  background: var(--midnight);
  border-color: var(--midnight);
}
.menu-btn,
.mobile-menu {
  display: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px var(--midnight);
}
.hero {
  min-height: 840px;
  height: 100vh;
  max-height: 1100px;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  display: flex;
  align-items: flex-end;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(10, 15, 18, 0.77) 0%,
      rgba(10, 15, 18, 0.39) 48%,
      rgba(10, 15, 18, 0.08) 75%
    ),
    linear-gradient(0deg, rgba(8, 12, 15, 0.6), transparent 48%);
}
.hero-content {
  position: relative;
  padding-bottom: 118px;
}
.hero-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.76);
}
.hero-label span {
  width: 25px;
  height: 1px;
  background: var(--sand);
}
.hero h1 {
  max-width: 900px;
  font-size: clamp(58px, 6.15vw, 94px);
  line-height: 0.95;
  letter-spacing: -0.065em;
  font-weight: 450;
  margin-bottom: 30px;
}
.hero h1 em {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  color: #e3ded1;
}
.hero-copy {
  max-width: 610px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 36px;
}
.hero-buttons,
.final-cta .wrap > div {
  display: flex;
  gap: 12px;
}
.btn {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 500;
  transition: 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn.light {
  background: #fff;
  color: var(--midnight);
}
.btn.glass {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}
.btn.dark {
  color: #fff;
  background: var(--midnight);
}
.btn.full {
  width: 100%;
}
.hero-index {
  position: absolute;
  right: 34px;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  text-align: right;
  gap: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
}
.search-wrap {
  position: relative;
  height: 0;
  z-index: 4;
}
.search-panel {
  height: 110px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(23, 29, 36, 0.12);
  transform: translateY(-55px);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  padding: 0 20px 0 34px;
  align-items: center;
}
.search-panel label {
  padding: 0 28px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.search-panel label:first-child {
  padding-left: 0;
}
.search-panel label > span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 11px;
}
.search-panel label div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
}
.search-panel input,
.search-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--midnight);
}
.search-btn {
  width: 62px;
  height: 62px;
  border: 0;
  background: var(--forest);
  color: white;
  display: grid;
  place-items: center;
  margin-left: 20px;
}
.search-btn span {
  display: none;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}
.section-head .eyebrow {
  color: var(--forest);
}
.head-side {
  width: 330px;
}
.head-side > p {
  color: #6c706e;
  line-height: 1.65;
  font-size: 14px;
  margin-bottom: 24px;
}
.text-link {
  border: 0;
  padding: 0 0 5px;
  border-bottom: 1px solid currentColor;
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  font-weight: 600;
  min-height: 44px;
}
.properties {
  padding-top: 170px;
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 60px 24px;
}
.listing-card:nth-child(3),
.listing-card:nth-child(4) {
  grid-column: auto;
}
.listing-image {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: #ddd;
}
.listing-2 .listing-image {
  height: auto;
  margin-top: 0;
}
.listing-3 .listing-image {
  height: auto;
}
.listing-4 .listing-image {
  height: auto;
}
.listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.listing-card:hover img {
  transform: scale(1.025);
}
.listing-image > span {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 10px;
  color: #fff;
  background: rgba(23, 29, 36, 0.55);
  backdrop-filter: blur(8px);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.listing-image button {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(23, 29, 36, 0.28);
  color: #fff;
  font-size: 20px;
}
.listing-meta {
  padding-top: 20px;
}
.listing-meta > p {
  color: #737876;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.listing-meta h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 27px;
  font-weight: 400;
  margin-bottom: 15px;
}
.listing-meta > div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
}
.listing-meta strong {
  margin-right: auto;
  font-size: 14px;
}
.listing-meta span {
  display: flex;
  gap: 5px;
  color: #666b68;
}
.search-feedback {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: #eeece6;
  margin: -35px 0 34px;
  font-size: 13px;
}
.search-feedback button {
  margin-left: auto;
  border: 0;
  background: none;
  text-decoration: underline;
}
.product-section {
  padding: 140px 0 120px;
  background: var(--midnight);
  color: #fff;
}
.product-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 70px;
}
.light-label {
  color: var(--sage);
}
.product-intro h2 span {
  color: #9aa39f;
}
.product-intro > p:last-child {
  color: #949b99;
  max-width: 560px;
  margin: 26px auto 0;
  line-height: 1.65;
}
.dashboard {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 650px;
  background: #eff0ed;
  color: var(--midnight);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.3);
}
.dash-sidebar {
  background: #20282f;
  color: #dfe2df;
  padding: 23px 16px;
  display: flex;
  flex-direction: column;
}
.dash-sidebar .logo {
  font-size: 17px;
  padding: 0 7px 25px;
}
.dash-sidebar .logo-mark {
  transform: scale(0.8);
  transform-origin: left center;
  margin-right: -3px;
}
.dash-agent {
  padding: 15px 8px;
  border-top: 1px solid #364048;
  border-bottom: 1px solid #364048;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-agent > span,
.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #c8b29e;
  color: #2a2725;
  font-size: 9px;
  border-radius: 50%;
}
.dash-agent div {
  display: flex;
  flex-direction: column;
}
.dash-agent strong {
  font-size: 10px;
}
.dash-agent small {
  color: #87908c;
  font-size: 8px;
  margin-top: 3px;
}
.dash-nav {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-nav button {
  width: 100%;
  color: #929c99;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font-size: 10px;
  text-align: left;
}
.dash-nav button.active {
  color: white;
  background: #303a40;
}
.dash-nav b {
  margin-left: auto;
  background: var(--forest);
  color: white;
  padding: 2px 5px;
  font-size: 8px;
  border-radius: 8px;
}
.dash-ai {
  margin-top: auto;
  padding: 14px 10px;
  background: #2c353b;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
}
.dash-ai svg {
  grid-row: 1/3;
  color: var(--sage);
}
.dash-ai span {
  font-size: 9px;
}
.dash-ai small {
  color: #494a4c;
  font-size: 7px;
}
.dash-main {
  padding: 32px;
  min-width: 0;
}
.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.dash-top small {
  font-size: 9px;
  color: #7b807e;
}
.dash-top h3 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 7px 0 0;
}
.dash-top button {
  border: 0;
  background: var(--midnight);
  color: white;
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  font-size: 9px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0;
}
.kpis > div {
  background: #fff;
  padding: 17px 18px;
  border: 1px solid #e0e1de;
  display: grid;
}
.kpis span {
  font-size: 9px;
  color: #737a77;
}
.kpis strong {
  font-size: 23px;
  margin: 9px 0;
  letter-spacing: -0.03em;
}
.kpis small {
  color: #343537;
  font-size: 8px;
}
.dash-columns {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr;
  gap: 13px;
}
.pipeline,
.activity {
  background: #fff;
  border: 1px solid #e0e1de;
  padding: 18px;
}
.widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e8e9e6;
  padding-bottom: 14px;
}
.widget-head p {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 3px;
}
.widget-head small {
  font-size: 8px;
  color: #8b918e;
}
.widget-head button {
  border: 0;
  background: none;
  color: var(--forest);
  font-size: 8px;
}
.lead {
  display: grid;
  grid-template-columns: auto 1fr auto 70px;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #eee;
}
.lead:last-child {
  border: 0;
}
.lead > div {
  display: flex;
  flex-direction: column;
}
.lead strong,
.lead > b {
  font-size: 9px;
}
.lead small {
  font-size: 7px;
  color: #929895;
  margin-top: 3px;
}
.lead em {
  font-style: normal;
  font-size: 7px;
  text-align: center;
  padding: 5px 4px;
  background: #edf0eb;
  color: #303133;
}
.a1 {
  background: #b8c5c9;
}
.a2 {
  background: #d1c7ad;
}
.a3 {
  background: #c2b8c8;
}
.live-dot {
  font-size: 7px;
  color: #323335;
}
.live-dot:before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #424345;
  border-radius: 50%;
  margin-right: 4px;
}
.activity-row {
  display: flex;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.activity-row:last-child {
  border: 0;
}
.activity-row > i {
  width: 26px;
  height: 26px;
  background: #eef0ed;
  display: grid;
  place-items: center;
  color: var(--forest);
  flex: none;
}
.activity-row strong {
  font-size: 8px;
}
.activity-row p {
  color: #747b78;
  font-size: 7px;
  line-height: 1.45;
  margin: 4px 0;
}
.activity-row small {
  font-size: 7px;
  color: #a1a4a2;
}
.ai-heading {
  text-align: center;
  margin-bottom: 64px;
}
.ai-heading .eyebrow {
  color: var(--forest);
}
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.ai-feature {
  min-height: 610px;
  background: #ecebe6;
  padding: 42px;
  position: relative;
  overflow: hidden;
}
.ai-feature.small {
  min-height: 460px;
}
.feature-copy {
  max-width: 390px;
  position: relative;
  z-index: 2;
}
.feature-copy > span {
  width: 42px;
  height: 42px;
  background: var(--forest);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
}
.feature-copy h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 13px;
}
.feature-copy p {
  color: #6e7471;
  font-size: 14px;
  line-height: 1.65;
}
.phone {
  width: 320px;
  background: #fff;
  border: 7px solid #293038;
  border-radius: 30px 30px 0 0;
  position: absolute;
  right: 44px;
  bottom: -70px;
  padding: 24px 18px 80px;
  box-shadow: 0 18px 40px rgba(23, 29, 36, 0.15);
}
.phone-top {
  display: flex;
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 14px;
}
.phone-top > span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #c8b29e;
  display: grid;
  place-items: center;
  font-size: 9px;
}
.phone-top div {
  display: flex;
  flex-direction: column;
}
.phone-top strong {
  font-size: 10px;
}
.phone-top small {
  font-size: 7px;
  color: #38393b;
}
.bubble {
  max-width: 80%;
  padding: 10px 12px;
  margin-top: 16px;
  font-size: 9px;
  line-height: 1.5;
  background: #eeefec;
}
.bubble.outgoing {
  background: #dbe2db;
  margin-left: auto;
}
.typing {
  font-size: 7px;
  color: #888;
  margin-top: 20px;
  display: flex;
  gap: 3px;
  align-items: center;
}
.typing i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #888;
}
.score-card {
  background: #fff;
  margin: 45px auto 0;
  max-width: 420px;
  padding: 25px;
  box-shadow: 0 20px 40px rgba(23, 29, 36, 0.08);
}
.score-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}
.score-card > div > span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #b9c5c7;
  font-size: 10px;
}
.score-card p {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.score-card p strong {
  font-size: 12px;
}
.score-card p small {
  font-size: 8px;
  color: #888;
  margin-top: 4px;
}
.score-card em {
  margin-left: auto;
  font-size: 27px;
  font-style: normal;
  color: var(--forest);
}
.score-line {
  height: 4px;
  background: #eee;
  margin: 20px 0;
}
.score-line i {
  display: block;
  height: 100%;
  background: var(--forest);
}
.score-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.score-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
}
.score-card li svg {
  color: var(--forest);
}
.score-card button {
  width: 100%;
  margin-top: 22px;
  padding: 11px;
  border: 0;
  background: #e7ece7;
  color: #2e2f31;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.mini-calendar {
  background: #fff;
  width: 310px;
  padding: 20px;
  position: absolute;
  right: 36px;
  bottom: 28px;
  box-shadow: 0 14px 35px rgba(23, 29, 36, 0.1);
}
.mini-calendar > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 16px;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}
.days i {
  font-size: 8px;
  font-style: normal;
  text-align: center;
  padding: 5px 0;
}
.days .selected {
  background: var(--forest);
  color: white;
  border-radius: 50%;
}
.mini-calendar p {
  margin: 15px 0 0;
  border-top: 1px solid #eee;
  padding-top: 13px;
  font-size: 8px;
}
.mini-calendar p span {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--sand);
  border-radius: 50%;
  margin-right: 5px;
}
.match {
  background: #fff;
  display: grid;
  grid-template-columns: 110px 1fr;
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 350px;
  padding: 10px;
  box-shadow: 0 12px 30px rgba(23, 29, 36, 0.12);
}
.match img {
  width: 100px;
  height: 90px;
  object-fit: cover;
}
.match div {
  padding: 10px;
  display: flex;
  flex-direction: column;
}
.match small {
  color: var(--forest);
  font-size: 8px;
  margin-bottom: 11px;
}
.match strong {
  font-family: 'DM Serif Display';
  font-size: 16px;
  font-weight: 400;
}
.match span {
  color: #888;
  font-size: 8px;
  margin-top: 6px;
}
.ecosystem {
  background: #e8e8e2;
}
.compact {
  margin-bottom: 55px;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #bfc1bc;
}
.tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 15px 0;
  text-align: left;
  color: #898d89;
  font-size: 13px;
}
.tabs button.active {
  color: var(--midnight);
  border-color: var(--midnight);
}
.tabs span {
  font-size: 9px;
  margin-right: 12px;
  color: #9a9d99;
}
.tab-panel {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  min-height: 560px;
  background: #f7f6f2;
  margin-top: 44px;
}
.tab-copy {
  padding: 70px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tab-copy .eyebrow {
  color: var(--forest);
}
.tab-copy h3 {
  font-family: 'DM Serif Display';
  font-size: 39px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 20px;
}
.tab-copy > p:not(.eyebrow) {
  font-size: 14px;
  color: #6e7471;
  line-height: 1.7;
  margin-bottom: 32px;
}
.tab-copy .text-link {
  align-self: flex-start;
}
.tab-visual {
  background: #cfd5ce;
  padding: 55px 0 0 55px;
  overflow: hidden;
}
.visual-window {
  width: 650px;
  height: 510px;
  background: #f8f8f6;
  box-shadow: 0 25px 55px rgba(23, 29, 36, 0.15);
  position: relative;
}
.window-bar {
  height: 35px;
  border-bottom: 1px solid #ddd;
  display: flex;
  gap: 5px;
  align-items: center;
  padding-left: 12px;
}
.window-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c2c3c0;
}
.map-grid {
  position: absolute;
  inset: 35px 0 0;
  background-color: #e4e2dc;
  background-image:
    linear-gradient(#d0d0ca 1px, transparent 1px),
    linear-gradient(90deg, #d0d0ca 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(700px) rotateX(16deg) scale(1.1);
}
.map-card {
  position: absolute;
  left: 170px;
  top: 150px;
  background: white;
  padding: 8px;
  width: 220px;
  box-shadow: 0 13px 30px #858a86;
}
.map-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}
.map-card div {
  padding: 10px;
  display: grid;
}
.map-card small,
.map-card span {
  font-size: 8px;
  color: #7d817f;
}
.map-card strong {
  font-family: 'DM Serif Display';
  font-weight: 400;
  margin: 5px 0;
  font-size: 17px;
}
.inbox-mock {
  display: grid;
  grid-template-columns: 230px 1fr;
  height: calc(100% - 35px);
}
.inbox-mock aside {
  border-right: 1px solid #ddd;
  padding: 25px 15px;
}
.inbox-mock aside > b,
.inventory-mock > b,
.chart-mock > b {
  font-size: 12px;
  display: block;
  margin-bottom: 22px;
}
.inbox-mock aside p {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 8px;
  margin: 0;
  font-size: 9px;
}
.inbox-mock aside p.selected {
  background: #e5e9e4;
}
.inbox-mock aside span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #c6c7c9;
  display: grid;
  place-items: center;
  font-size: 7px;
}
.inbox-mock aside small {
  margin-left: auto;
  color: #999;
  font-size: 7px;
}
.inbox-mock main {
  padding: 25px;
}
.inbox-mock main > b {
  font-size: 12px;
}
.inbox-mock main div {
  width: max-content;
  max-width: 210px;
  background: #e8e8e4;
  padding: 12px;
  margin-top: 28px;
  font-size: 9px;
}
.inbox-mock main div.reply {
  margin-left: auto;
  background: #d5dfd5;
}
.inventory-mock,
.chart-mock {
  padding: 30px;
}
.inventory-mock > div {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-top: 1px solid #ddd;
}
.inventory-mock img {
  width: 80px;
  height: 55px;
  object-fit: cover;
}
.inventory-mock p {
  margin: 0;
  display: grid;
  gap: 5px;
}
.inventory-mock strong {
  font-size: 10px;
}
.inventory-mock small {
  font-size: 8px;
  color: #888;
}
.inventory-mock span {
  font-size: 8px;
  color: var(--forest);
  background: #e2e9e2;
  padding: 6px;
}
.chart-mock > strong {
  display: block;
  font-size: 36px;
  margin-bottom: 5px;
}
.chart-mock > small {
  color: #888;
  font-size: 9px;
}
.chart-mock svg {
  margin-top: 60px;
  overflow: visible;
}
.agencies {
  background: #fff;
}
.agency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9vw;
  align-items: center;
}
.agency-photo {
  height: 750px;
  position: relative;
}
.agency-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75);
}
.agency-photo > span {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--midnight);
  color: white;
  padding: 18px 22px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.agency-copy .eyebrow {
  color: var(--forest);
}
.agency-copy > p:not(.eyebrow) {
  margin: 30px 0;
  color: #676d6a;
  line-height: 1.7;
  max-width: 520px;
  font-size: 15px;
}
.agency-copy ul {
  list-style: none;
  padding: 24px 0;
  margin: 0 0 30px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.agency-copy li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.agency-copy li svg {
  color: var(--forest);
}
.agency-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  margin-top: 55px;
  padding-top: 30px;
}
.agency-stat > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.agency-stat strong {
  font-family: 'DM Serif Display';
  font-size: 32px;
  font-weight: 400;
}
.agency-stat span {
  color: #747976;
  font-size: 10px;
  max-width: 145px;
  line-height: 1.4;
}
.steps {
  background: var(--ivory);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.steps-grid article {
  padding: 28px 8vw 0 0;
  border-right: 1px solid var(--line);
  min-height: 310px;
  position: relative;
}
.steps-grid article + article {
  padding-left: 35px;
}
.steps-grid article:last-child {
  border: 0;
}
.steps-grid > article > span {
  font-size: 10px;
  color: #888;
}
.step-icon {
  position: relative;
  margin: 45px 0 27px;
  color: var(--forest);
}
.step-icon i {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.45;
  left: 8px;
  top: -8px;
}
.step-icon svg {
  position: relative;
}
.steps-grid h3 {
  font-family: 'DM Serif Display';
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 12px;
}
.steps-grid p {
  color: #737875;
  font-size: 13px;
  line-height: 1.6;
}
.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10vw;
  border-top: 1px solid var(--line);
}
.faq > div:first-child .eyebrow {
  color: var(--forest);
}
.faq > div:first-child > p:last-child {
  margin-top: 28px;
  color: #797e7b;
  font-size: 12px;
}
.faq > div:first-child > p button {
  border: 0;
  background: none;
  text-decoration: underline;
  padding: 0;
}
.faq-list article {
  border-bottom: 1px solid var(--line);
}
.faq-list article > button {
  width: 100%;
  border: 0;
  background: none;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  text-align: left;
  font-size: 14px;
}
.faq-list article button i {
  font-style: normal;
  font-size: 20px;
  font-weight: 300;
}
.faq-list article > div {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.35s;
}
.faq-list article > div p {
  overflow: hidden;
  color: #747976;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}
.faq-list article.open > div {
  grid-template-rows: 1fr;
}
.faq-list article.open > div p {
  padding-bottom: 25px;
}
.final-cta {
  height: 680px;
  position: relative;
  color: white;
  display: flex;
  align-items: center;
  text-align: center;
}
.final-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}
.final-cta .wrap {
  position: relative;
}
.final-cta h2 {
  font-size: clamp(48px, 5.2vw, 80px);
}
.final-cta .wrap > p:not(.eyebrow) {
  color: #c3c7c3;
  margin: 25px auto 35px;
  max-width: 580px;
  line-height: 1.6;
}
.final-cta .wrap > div {
  justify-content: center;
}
footer {
  background: var(--midnight);
  color: white;
  padding: 80px 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  padding-bottom: 80px;
}
.footer-top > div:first-child > p {
  color: #929a97;
  font-size: 13px;
  line-height: 1.6;
  margin: 24px 0 45px;
}
.footer-top > div:first-child > span {
  color: #6f7874;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer-links strong {
  color: #737d78;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 7px;
}
.footer-links a {
  color: #c9cecb;
  text-decoration: none;
  font-size: 11px;
}
.footer-bottom {
  border-top: 1px solid #343b41;
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 9px;
  color: #707a75;
}
.footer-bottom p {
  margin: 0;
  text-align: center;
}
.footer-bottom p i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #444547;
  border-radius: 50%;
  margin-right: 6px;
}
.footer-bottom div {
  text-align: right;
}
.footer-bottom a {
  color: inherit;
  text-decoration: none;
  margin-left: 18px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 17, 0.7);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.modal {
  width: min(500px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--ivory);
  padding: 50px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}
.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  border: 0;
  background: none;
}
.modal .eyebrow {
  color: var(--forest);
}
.modal h2 {
  font-size: 42px;
}
.modal-copy {
  color: #717673;
  font-size: 13px;
  line-height: 1.6;
  margin: 20px 0 28px;
}
.modal form {
  display: grid;
  gap: 16px;
}
.modal label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.modal input,
.modal select {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 13px;
  outline-color: var(--forest);
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}
.success-state {
  text-align: center;
  padding: 25px 0;
}
.success-state > span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--sage);
  display: grid;
  place-items: center;
  margin: 0 auto 30px;
}
.success-state p:not(.eyebrow) {
  color: #777;
  line-height: 1.6;
  margin: 20px 0 30px;
}

/* Refined visual system */
:root {
  --line-soft: rgba(23, 29, 36, 0.09);
  --surface: #efede7;
  --shadow-soft: 0 24px 70px rgba(23, 29, 36, 0.09);
}
.site-shell {
  background: var(--ivory);
}
.wrap {
  width: min(1360px, calc(100% - 80px));
}
.section {
  padding-block: 144px;
}
h2 {
  font-size: clamp(44px, 4.15vw, 68px);
  line-height: 0.99;
  letter-spacing: -0.058em;
  text-wrap: balance;
}
.eyebrow {
  margin-bottom: 28px;
}
.nav {
  transition:
    height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s ease,
    background 0.3s ease;
}
.nav-cta {
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
}
.hero-shade {
  background:
    linear-gradient(
      90deg,
      rgba(10, 15, 18, 0.82) 0%,
      rgba(10, 15, 18, 0.42) 46%,
      rgba(10, 15, 18, 0.06) 78%
    ),
    linear-gradient(0deg, rgba(8, 12, 15, 0.68), transparent 52%);
}
.hero h1 {
  font-size: clamp(62px, 6.1vw, 96px);
  line-height: 0.925;
  letter-spacing: -0.073em;
}
.hero-copy {
  color: rgba(255, 255, 255, 0.73);
}
.btn {
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    background 0.3s ease;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(10, 15, 18, 0.14);
}
.search-panel {
  border: 1px solid rgba(23, 29, 36, 0.08);
  box-shadow: 0 24px 70px rgba(23, 29, 36, 0.1);
}
.search-btn {
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}
.search-btn:hover {
  background: #262729;
  transform: translateY(-2px);
}
.section-head {
  margin-bottom: 72px;
}
.head-side > p {
  line-height: 1.75;
}
.text-link {
  transition:
    gap 0.3s ease,
    color 0.3s ease;
}
.text-link:hover {
  gap: 25px;
  color: var(--forest);
}
.listing-grid {
  gap: 72px 28px;
}
.listing-image {
  box-shadow: 0 1px 0 rgba(23, 29, 36, 0.08);
}
.listing-image img {
  filter: saturate(0.86) contrast(1.025);
  transition:
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.6s ease;
}
.listing-card:hover img {
  transform: scale(1.035);
  filter: saturate(0.98) contrast(1.01);
}
.listing-meta {
  padding-top: 22px;
}
.listing-meta h3 {
  font-size: 29px;
}
.listing-meta > div {
  padding-top: 16px;
}
.product-section {
  padding: 152px 0 140px;
}
.product-intro {
  margin-bottom: 82px;
}
.product-intro h2 span {
  color: #919c97;
}
.dashboard {
  border-color: rgba(255, 255, 255, 0.17);
  box-shadow:
    0 50px 110px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
  position: relative;
}
.dashboard::before {
  content: '';
  position: absolute;
  inset: -18px 7% auto;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  background: #20272e;
  opacity: 0.78;
}
.kpis > div {
  border-color: #dfe1dc;
  box-shadow: 0 4px 14px rgba(23, 29, 36, 0.025);
}
.pipeline,
.activity {
  border-color: #dfe1dc;
}
.ai-heading {
  margin-bottom: 76px;
}
.ai-grid {
  gap: 24px;
}
.ai-feature {
  background: #eeece6;
  border: 1px solid var(--line-soft);
  padding: 48px;
}
.feature-copy > span {
  background: transparent;
  border: 1px solid rgba(84, 108, 96, 0.32);
  color: var(--forest);
}
.feature-copy h3 {
  font-size: 32px;
}
.phone {
  box-shadow: 0 28px 60px rgba(23, 29, 36, 0.16);
}
.score-card {
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}
.ecosystem {
  background: #e9e8e2;
  border-block: 1px solid var(--line-soft);
}
.tab-panel {
  border: 1px solid var(--line-soft);
  box-shadow: 0 26px 80px rgba(23, 29, 36, 0.06);
}
.tab-copy h3 {
  font-size: 42px;
}
.visual-window {
  border: 1px solid rgba(23, 29, 36, 0.08);
  box-shadow: 0 30px 75px rgba(23, 29, 36, 0.16);
}
.agency-photo {
  overflow: hidden;
}
.agency-photo img {
  filter: saturate(0.72) contrast(1.025);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.agency-photo:hover img {
  transform: scale(1.025);
}
.agency-copy > p:not(.eyebrow) {
  line-height: 1.8;
}
.steps-grid article {
  min-height: 330px;
}
.final-cta {
  height: 740px;
}
.final-bg {
  transform: scale(1.015);
}
footer {
  padding: 96px 0 28px;
}
body {
  font-feature-settings:
    'kern' 1,
    'ss01' 1,
    'cv11' 1;
}
::selection {
  color: var(--midnight);
  background: var(--sage);
}
.properties .section-head,
.ecosystem .section-head,
.steps .section-head {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.properties .section-head::before,
.ecosystem .section-head::before,
.steps .section-head::before {
  position: absolute;
  top: -6px;
  left: 0;
  width: 48px;
  height: 11px;
  color: var(--forest);
  background: var(--ivory);
  font-size: 9px;
  letter-spacing: 0.14em;
}
.properties .section-head::before {
  content: '01';
}
.ecosystem .section-head::before {
  content: '02';
  background: #e9e8e2;
}
.steps .section-head::before {
  content: '03';
}
.listing-meta {
  position: relative;
}
.listing-meta::before {
  position: absolute;
  right: 0;
  top: 24px;
  color: rgba(23, 29, 36, 0.36);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.listing-card:nth-child(1) .listing-meta::before {
  content: '01';
}
.listing-card:nth-child(2) .listing-meta::before {
  content: '02';
}
.listing-card:nth-child(3) .listing-meta::before {
  content: '03';
}
.listing-card:nth-child(4) .listing-meta::before {
  content: '04';
}
.listing-meta h3 {
  padding-right: 32px;
  transition: color 0.3s ease;
}
.listing-card:hover .listing-meta h3 {
  color: var(--forest);
}
.agency-grid {
  width: min(1480px, calc(100% - 80px));
}
.dash-main,
.kpis strong,
.lead > b,
.score-card em,
.agency-stat strong {
  font-variant-numeric: tabular-nums;
}
.dash-nav button,
.lead,
.activity-row {
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.dash-nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}
.lead:hover,
.activity-row:hover {
  background: #f7f7f4;
}
.lead {
  padding-inline: 6px;
  margin-inline: -6px;
}
.activity-row {
  padding-inline: 5px;
  margin-inline: -5px;
}
.ai-feature:nth-child(2) {
  background: #e8ebe6;
}
.ai-feature:nth-child(3) {
  background: #f2f0ea;
}
.ai-feature:nth-child(4) {
  background: #e6e9e4;
}
.tabs button {
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    padding 0.25s ease;
}
.tabs button:hover {
  color: var(--midnight);
  padding-left: 5px;
}
.faq-list article > button {
  transition:
    color 0.25s ease,
    padding 0.25s ease;
}
.faq-list article > button:hover {
  color: var(--forest);
  padding-left: 6px;
}

/* Global navigation */
.global-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 78px;
  padding-inline: max(28px, calc((100vw - 1540px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition:
    height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}
.global-nav-transparent {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.17);
  background: transparent;
}
.global-nav-solid {
  height: 70px;
  color: var(--midnight);
  border-color: var(--line-soft);
  background: rgba(245, 243, 238, 0.96);
  backdrop-filter: blur(16px);
}
.global-nav-center {
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: clamp(18px, 2vw, 34px);
}
.global-nav-center button,
.global-nav-actions > button {
  position: relative;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}
.global-nav-center button::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.global-nav-center button:hover::after,
.global-nav-center button.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.global-nav-center button.active {
  font-weight: 600;
}
.global-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(15px, 1.6vw, 25px);
}
.global-nav-actions .favorites-action {
  display: flex;
  align-items: center;
  gap: 7px;
}
.favorites-action svg {
  transition: fill 0.25s ease;
}
.favorites-action:hover svg,
.favorites-action.active svg,
.mobile-favorite.active svg {
  fill: currentColor;
}
.global-nav-actions .publish-action,
.global-mobile-secondary .publish-action {
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--midnight);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}
.global-nav-solid .global-nav-actions .publish-action {
  color: #fff;
  background: var(--midnight);
  border-color: var(--midnight);
}
.global-nav-actions .publish-action:hover {
  transform: translateY(-1px);
}
.global-nav-mobile-actions,
.global-mobile-menu {
  display: none;
}
.nav-panel {
  border-top: 3px solid var(--forest);
}
.nav-panel form {
  display: grid;
  gap: 16px;
}
.nav-panel label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-panel input {
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  padding: 13px;
  border: 1px solid var(--line);
  color: var(--midnight);
  background: #fff;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 1150px) {
  .global-nav {
    height: 70px;
    padding-inline: 20px;
    grid-template-columns: 1fr auto;
  }
  .global-nav-center,
  .global-nav-actions {
    display: none;
  }
  .global-nav-mobile-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 2;
  }
  .mobile-favorite,
  .global-menu-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    color: inherit;
    background: transparent;
  }
  .global-mobile-menu {
    position: fixed;
    inset: 70px 0 0;
    display: flex;
    padding: clamp(36px, 7vh, 72px) max(24px, calc((100vw - 900px) / 2)) 28px;
    flex-direction: column;
    color: var(--midnight);
    background: var(--ivory);
    visibility: hidden;
    opacity: 0;
    overflow-y: auto;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 0.3s ease,
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.3s;
  }
  .global-mobile-menu.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .global-mobile-menu > nav {
    display: grid;
  }
  .global-mobile-menu > nav > button {
    min-height: 70px;
    padding: 0;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    border: 0;
    border-bottom: 1px solid var(--line);
    color: var(--midnight);
    background: transparent;
    text-align: left;
    font-size: clamp(25px, 4.5vw, 40px);
    font-weight: 450;
    letter-spacing: -0.04em;
  }
  .global-mobile-menu > nav > button:first-child {
    border-top: 1px solid var(--line);
  }
  .global-mobile-menu > nav > button > span {
    color: #8a8f8b;
    font-size: 9px;
    letter-spacing: 0.14em;
  }
  .global-mobile-menu > nav > button > svg {
    color: #8a8f8b;
    transition: transform 0.25s ease;
  }
  .global-mobile-menu > nav > button:hover > svg,
  .global-mobile-menu > nav > button.active > svg {
    color: var(--forest);
    transform: translateX(4px);
  }
  .global-mobile-menu > nav > button.active {
    color: var(--forest);
  }
  .global-mobile-secondary {
    margin-top: auto;
    padding-top: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .global-mobile-secondary > button {
    min-height: 44px;
    padding: 0;
    border: 0;
    color: var(--midnight);
    background: transparent;
    font-size: 12px;
  }
  .global-mobile-secondary > button:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .global-mobile-secondary .publish-action {
    margin-left: auto;
    padding-inline: 16px;
    color: #fff;
    background: var(--midnight);
  }
  .global-mobile-menu > p {
    margin: 28px 0 0;
    color: #858b87;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
}

@media (max-width: 520px) {
  .global-nav {
    height: 66px;
  }
  .global-nav .logo {
    font-size: 20px;
  }
  .global-mobile-menu {
    inset-block-start: 66px;
    padding: 32px 20px 24px;
  }
  .global-mobile-menu > nav > button {
    min-height: clamp(62px, 10.5vh, 72px);
    grid-template-columns: 34px 1fr auto;
    font-size: clamp(24px, 7.2vw, 29px);
  }
  .global-mobile-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }
  .global-mobile-secondary .publish-action {
    grid-column: 1 / -1;
    width: 100%;
    margin: 6px 0 0;
    justify-content: space-between;
  }
}

@media (max-width: 1000px) {
  .wrap {
    width: min(100% - 40px, 900px);
  }
  .section {
    padding: 88px 0;
  }
  .nav {
    padding: 0 20px;
    grid-template-columns: 1fr auto;
  }
  .nav-links,
  .nav-actions {
    display: none;
  }
  .menu-btn {
    display: grid;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    color: inherit;
    position: relative;
    z-index: 3;
    place-items: center;
  }
  .mobile-menu {
    display: flex;
    position: fixed;
    inset: 82px 0 0;
    background: var(--ivory);
    padding: 42px max(24px, calc((100vw - 900px) / 2));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    overflow-y: auto;
    z-index: 2;
  }
  .mobile-menu > button {
    text-align: left;
    min-height: 62px;
    padding: 15px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    color: var(--midnight);
    font-size: clamp(20px, 3vw, 28px);
    letter-spacing: -0.025em;
  }
  .mobile-menu .btn {
    margin-top: 20px;
    text-align: center;
  }
  .hero {
    min-height: 780px;
  }
  .search-panel {
    grid-template-columns: 1.3fr 1fr 1fr auto;
    padding-left: 20px;
  }
  .search-panel label {
    padding: 0 15px;
  }
  .listing-image,
  .listing-4 .listing-image {
    height: auto;
  }
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard {
    grid-template-columns: 165px 1fr;
  }
  .dash-main {
    padding: 22px;
  }
  .dash-columns {
    grid-template-columns: 1fr;
  }
  .activity {
    display: none;
  }
  .ai-feature {
    padding: 30px;
  }
  .phone {
    right: 25px;
  }
  .tab-panel {
    grid-template-columns: 1fr;
  }
  .tab-copy {
    padding: 55px;
  }
  .tab-visual {
    height: 520px;
  }
  .agency-grid {
    gap: 50px;
  }
  .agency-photo {
    height: 620px;
  }
  .agency-copy ul {
    grid-template-columns: 1fr;
  }
  .faq {
    gap: 50px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .section {
    padding: 68px 0;
  }
  .nav {
    height: 66px;
  }
  .mobile-menu {
    inset: 66px 0 0;
  }
  .hero {
    min-height: 720px;
    height: 100svh;
    align-items: flex-end;
    background-position: 62% center;
  }
  .hero-shade {
    background: linear-gradient(0deg, rgba(10, 15, 18, 0.83), rgba(10, 15, 18, 0.18) 80%);
  }
  .hero-content {
    padding-bottom: 78px;
  }
  .hero h1 {
    font-size: clamp(42px, 12.5vw, 58px);
    line-height: 0.97;
    margin-bottom: 22px;
  }
  .hero-copy {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 26px;
  }
  .hero-label {
    margin-bottom: 18px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .hero-index {
    display: none;
  }
  .search-wrap {
    height: auto;
    margin-top: 0;
    width: 100%;
  }
  .search-panel {
    transform: none;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    padding: 22px 20px;
    box-shadow: 0 12px 30px rgba(23, 29, 36, 0.08);
    gap: 0;
  }
  .search-panel label {
    min-height: 76px;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .search-panel label:first-child {
    grid-column: auto;
    padding: 16px 0;
  }
  .search-panel label:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .search-panel input,
  .search-panel select {
    min-height: 26px;
    font-size: 16px;
  }
  .search-btn {
    grid-column: auto;
    width: 100%;
    height: 52px;
    margin: 18px 0 0;
    display: flex;
    gap: 10px;
  }
  .search-btn span {
    display: block;
  }
  .properties {
    padding-top: 75px;
  }
  .section-head {
    display: block;
    margin-bottom: 40px;
  }
  .section-head h2 {
    font-size: 39px;
  }
  .head-side {
    width: auto;
    margin-top: 24px;
  }
  .listing-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .listing-2 .listing-image {
    margin-top: 0;
  }
  .listing-image,
  .listing-2 .listing-image,
  .listing-3 .listing-image,
  .listing-4 .listing-image {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .listing-meta > div {
    gap: 11px;
  }
  .product-section {
    padding: 80px 0;
  }
  .product-intro {
    text-align: left;
    margin-bottom: 45px;
  }
  .product-intro h2 {
    font-size: 42px;
  }
  .product-intro > p:last-child {
    margin-left: 0;
  }
  .dashboard {
    width: 100%;
    min-height: 0;
    display: block;
    transform: none;
    margin-bottom: 0;
  }
  .dash-sidebar {
    display: none;
  }
  .dash-main {
    padding: 18px;
  }
  .dash-top {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }
  .dash-top button {
    min-height: 44px;
    justify-content: center;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 18px 0 8px;
  }
  .kpis > div {
    min-width: 0;
    padding: 14px;
  }
  .kpis > div:last-child {
    grid-column: 1 / -1;
  }
  .kpis strong {
    font-size: clamp(18px, 6vw, 23px);
  }
  .dash-columns {
    display: block;
  }
  .pipeline {
    padding: 14px;
  }
  .lead {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }
  .lead em {
    display: none;
  }
  .lead > b {
    font-size: 8px;
  }
  .ai-heading {
    text-align: left;
  }
  .ai-heading h2 {
    font-size: 39px;
  }
  .ai-grid {
    grid-template-columns: 1fr;
  }
  .ai-feature {
    min-height: 560px;
    padding: 28px;
  }
  .ai-feature.small {
    min-height: 480px;
  }
  .phone {
    right: 16px;
    width: calc(100% - 32px);
    max-width: 290px;
  }
  .score-card {
    margin-top: 35px;
  }
  .mini-calendar,
  .match {
    right: 20px;
    width: calc(100% - 40px);
  }
  .tabs {
    grid-template-columns: 1fr 1fr;
  }
  .tabs button {
    border-bottom: 1px solid #bfc1bc;
  }
  .tab-panel {
    margin-top: 25px;
  }
  .tab-copy {
    padding: 40px 28px;
  }
  .tab-copy h3 {
    font-size: 33px;
  }
  .tab-visual {
    padding: 25px 0 0 25px;
    height: 430px;
  }
  .visual-window {
    width: 560px;
    transform: scale(0.68);
    transform-origin: left top;
  }
  .agency-grid {
    grid-template-columns: 1fr;
  }
  .agency-photo {
    height: 480px;
    order: 2;
  }
  .agency-copy h2 {
    font-size: 45px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid article,
  .steps-grid article + article {
    padding: 25px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 0;
  }
  .step-icon {
    margin: 30px 0 22px;
  }
  .faq {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .faq h2 {
    font-size: 40px;
  }
  .final-cta {
    height: 700px;
  }
  .final-cta h2 {
    font-size: 46px;
  }
  .final-cta .wrap > div {
    flex-direction: column;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-bottom: 50px;
  }
  .footer-links {
    gap: 20px;
  }
  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .footer-bottom p,
  .footer-bottom div {
    text-align: left;
  }
  .modal {
    padding: 42px 24px 28px;
  }
  .modal input,
  .modal select {
    min-height: 48px;
    font-size: 16px;
  }
  .modal h2 {
    font-size: 35px;
  }
}
@media (max-width: 360px) {
  .hero h1 {
    font-size: clamp(39px, 12.4vw, 44px);
  }
  .hero-copy {
    font-size: 14px;
  }
  .listing-meta > div {
    flex-wrap: wrap;
  }
  .listing-meta strong {
    width: 100%;
  }
  .dash-main {
    padding: 14px;
  }
  .kpis > div {
    padding: 12px;
  }
  .pipeline {
    padding: 11px;
  }
  .ai-feature {
    padding: 22px;
  }
  .feature-copy h3 {
    font-size: 27px;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
    row-gap: 35px;
  }
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-content {
  animation: hero-enter 0.9s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.motion-ready .properties:not(.is-visible) > .section-head,
.motion-ready .properties:not(.is-visible) > .listing-grid,
.motion-ready .product-section:not(.is-visible) > .wrap,
.motion-ready .ai-section:not(.is-visible) > .ai-heading,
.motion-ready .ai-section:not(.is-visible) > .ai-grid,
.motion-ready .ecosystem:not(.is-visible) > .wrap,
.motion-ready .agencies:not(.is-visible) > .agency-grid,
.motion-ready .steps:not(.is-visible) > .section-head,
.motion-ready .steps:not(.is-visible) > .steps-grid,
.motion-ready .faq:not(.is-visible) > div,
.motion-ready .final-cta:not(.is-visible) > .wrap {
  opacity: 0;
  transform: translateY(28px);
}
.properties > .section-head,
.properties > .listing-grid,
.product-section > .wrap,
.ai-section > .ai-heading,
.ai-section > .ai-grid,
.ecosystem > .wrap,
.agencies > .agency-grid,
.steps > .section-head,
.steps > .steps-grid,
.faq > div,
.final-cta > .wrap {
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.properties > .listing-grid,
.ai-section > .ai-grid,
.steps > .steps-grid,
.faq > div:last-child {
  transition-delay: 0.1s;
}
.motion-ready .properties:not(.is-visible) > .listing-grid,
.motion-ready .ai-section:not(.is-visible) > .ai-grid,
.motion-ready .steps:not(.is-visible) > .steps-grid {
  opacity: 1;
  transform: none;
}
.motion-ready .properties:not(.is-visible) .listing-card,
.motion-ready .ai-section:not(.is-visible) .ai-feature,
.motion-ready .steps:not(.is-visible) .steps-grid article {
  opacity: 0;
  transform: translateY(24px);
}
.listing-card,
.ai-feature,
.steps-grid article {
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    background 0.3s ease;
}
.listing-card:nth-child(2),
.ai-feature:nth-child(2),
.steps-grid article:nth-child(2) {
  transition-delay: 0.07s;
}
.listing-card:nth-child(3),
.ai-feature:nth-child(3),
.steps-grid article:nth-child(3) {
  transition-delay: 0.14s;
}
.listing-card:nth-child(4),
.ai-feature:nth-child(4) {
  transition-delay: 0.21s;
}

/* Property marketplace homepage */
.market-site {
  min-height: 100vh;
  color: var(--midnight);
  background: var(--ivory);
}
.market-wrap {
  width: min(1360px, calc(100% - 80px));
  margin-inline: auto;
}
.market-section {
  padding-block: 144px;
}
.market-hero {
  position: relative;
  min-height: 760px;
  height: min(82vh, 920px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-position: center 54%;
  background-size: cover;
}
.market-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(10, 14, 17, 0.78),
      rgba(10, 14, 17, 0.3) 55%,
      rgba(10, 14, 17, 0.04)
    ),
    linear-gradient(0deg, rgba(10, 14, 17, 0.65), transparent 58%);
}
.market-hero-copy {
  position: relative;
  padding-bottom: 148px;
}
.market-hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}
.market-hero-copy h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(66px, 7.3vw, 112px);
  font-weight: 450;
  line-height: 0.9;
  letter-spacing: -0.075em;
  text-wrap: balance;
}
.market-hero-copy > p:last-child {
  max-width: 590px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.65;
}
.market-hero-caption {
  position: absolute;
  right: 32px;
  bottom: 32px;
  display: grid;
  gap: 4px;
  text-align: right;
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.market-search-shell {
  position: relative;
  z-index: 8;
  height: 0;
}
.market-search {
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: 0 30px 80px rgba(23, 29, 36, 0.13);
  transform: translateY(-70px);
}
.operation-tabs {
  height: 48px;
  padding-inline: 28px;
  display: flex;
  gap: 28px;
  align-items: flex-end;
  border-bottom: 1px solid var(--line-soft);
}
.operation-tabs button {
  height: 48px;
  padding: 0;
  position: relative;
  border: 0;
  color: #777d79;
  background: none;
  font-size: 12px;
  font-weight: 500;
}
.operation-tabs button::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--forest);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.operation-tabs button.active {
  color: var(--midnight);
}
.operation-tabs button.active::after {
  transform: scaleX(1);
}
.market-search-fields {
  min-height: 94px;
  padding: 16px 18px 16px 28px;
  display: grid;
  grid-template-columns: minmax(200px, 1.35fr) minmax(150px, 0.9fr) minmax(135px, 0.72fr) minmax(
      215px,
      1fr
    ) auto;
  align-items: stretch;
}
.market-search-fields > label,
.market-search-fields > fieldset {
  min-width: 0;
  margin: 0;
  padding: 5px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 0;
  border-right: 1px solid var(--line-soft);
}
.market-search-fields label > span,
.market-search-fields legend {
  padding: 0;
  color: #737976;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.market-search-fields label > div {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--forest);
}
.market-search-fields input,
.market-search-fields select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--midnight);
  background: transparent;
  font-size: 13px;
}
.location-field {
  position: relative;
}
.location-suggestions {
  position: absolute;
  z-index: 10;
  top: calc(100% + 17px);
  right: 0;
  left: -12px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: 0 22px 55px rgba(23, 29, 36, 0.14);
}
.location-suggestions button {
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  color: var(--midnight);
  background: transparent;
  text-align: left;
}
.location-suggestions button:hover,
.location-suggestions button[aria-selected='true'] {
  background: #f1f0eb;
}
.location-suggestions button > svg {
  color: var(--forest);
}
.location-suggestions button span {
  display: grid;
  gap: 3px;
  font-size: 12px;
}
.location-suggestions button small {
  color: #8c918e;
  font-size: 9px;
}
.price-field {
  display: grid !important;
  grid-template-columns: 1fr 10px 1fr;
  align-content: center;
  column-gap: 7px;
}
.price-field legend {
  grid-column: 1 / -1;
  margin-bottom: 9px;
}
.price-field i {
  width: 8px;
  height: 1px;
  align-self: center;
  background: #999e9b;
}
.market-search-submit {
  min-width: 178px;
  margin-left: 18px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 0;
  color: #fff;
  background: var(--forest);
  font-size: 12px;
  font-weight: 500;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}
.market-search-submit:hover {
  background: #262729;
  transform: translateY(-2px);
}
.neighborhoods-section {
  padding-top: 218px;
}
.market-section-head {
  margin-bottom: 66px;
  padding-top: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
.market-section-head .eyebrow {
  color: var(--forest);
}
.market-section-head h2 {
  font-size: clamp(44px, 4.1vw, 66px);
}
.market-section-head > p {
  width: 350px;
  margin: 0;
  color: #717774;
  font-size: 13px;
  line-height: 1.75;
}
.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.neighborhood-card {
  position: relative;
  aspect-ratio: 0.76;
  padding: 22px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 0;
  color: #fff;
  background: var(--midnight);
  text-align: left;
}
.neighborhood-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 14, 17, 0.7), transparent 62%);
}
.neighborhood-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75);
  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
}
.neighborhood-card:hover img {
  filter: saturate(0.92);
  transform: scale(1.035);
}
.neighborhood-card > span {
  position: absolute;
  z-index: 1;
  top: 20px;
  left: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.neighborhood-card > div {
  position: relative;
  z-index: 1;
}
.neighborhood-card h3 {
  margin-bottom: 6px;
  font-family: 'DM Serif Display', serif;
  font-size: 29px;
  font-weight: 400;
}
.neighborhood-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.neighborhood-card > svg {
  position: relative;
  z-index: 1;
  margin-left: auto;
  transition: transform 0.25s ease;
}
.neighborhood-card:hover > svg {
  transform: translateX(4px);
}
.featured-section {
  background: #fff;
}
.market-text-link {
  min-height: 44px;
  padding: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--midnight);
  background: none;
  font-size: 11px;
  font-weight: 600;
}
.market-property-grid,
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px 26px;
}
.market-property-image {
  position: relative;
  aspect-ratio: 1.25;
  overflow: hidden;
  background: #ddd;
}
.market-property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
  transition:
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s ease;
}
.market-property-card:hover img {
  filter: saturate(0.98);
  transform: scale(1.03);
}
.market-property-image > span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 9px;
  color: #fff;
  background: rgba(23, 29, 36, 0.58);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.market-property-image > button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(23, 29, 36, 0.32);
}
.market-property-image > button.saved svg {
  fill: currentColor;
}
.market-property-copy {
  padding-top: 20px;
}
.market-property-copy > p {
  margin-bottom: 9px;
  color: #767c78;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.market-property-copy h3 {
  margin-bottom: 16px;
  font-family: 'DM Serif Display', serif;
  font-size: 27px;
  font-weight: 400;
}
.market-property-copy > div {
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  color: #707672;
  font-size: 11px;
}
.market-property-copy strong {
  margin-right: auto;
  color: var(--midnight);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.market-property-copy span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.collections-section {
  background: #e9e8e2;
}
.market-section-head.compact {
  display: block;
}
.collection-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}
.collection-grid > button {
  position: relative;
  min-height: 620px;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #fff;
  background: var(--midnight);
  text-align: left;
}
.collection-grid > button:last-child {
  min-height: 520px;
  margin-top: 100px;
}
.collection-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.64) saturate(0.72);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.collection-grid button:hover img {
  transform: scale(1.025);
}
.collection-grid button > div {
  position: absolute;
  right: 32px;
  bottom: 32px;
  left: 32px;
}
.collection-grid span {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.collection-grid h3 {
  margin: 14px 0 8px;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(30px, 3vw, 45px);
  font-weight: 400;
}
.collection-grid p {
  max-width: 390px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.6;
}
.collection-grid svg {
  position: absolute;
  right: 0;
  bottom: 0;
}
.market-ai {
  padding-block: 150px;
  color: #fff;
  background: var(--midnight);
}
.market-ai-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 10vw;
  align-items: center;
}
.market-ai-copy .eyebrow {
  color: var(--sage);
}
.market-ai-copy h2 {
  max-width: 570px;
  color: #fff;
}
.market-ai-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin: 30px 0;
  color: #979f9b;
  font-size: 14px;
  line-height: 1.8;
}
.market-ai-copy > button {
  min-height: 48px;
  padding: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 0;
  border-bottom: 1px solid var(--sage);
  color: #fff;
  background: none;
  font-size: 11px;
}
.ai-search-preview {
  padding: 28px;
  color: var(--midnight);
  background: #f0f0ec;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.26);
}
.ai-preview-top {
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
}
.ai-preview-top > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--forest);
}
.ai-preview-top > div {
  display: grid;
  gap: 3px;
}
.ai-preview-top strong {
  font-size: 11px;
}
.ai-preview-top small {
  color: #7b817d;
  font-size: 8px;
}
.ai-preview-top > i {
  margin-left: auto;
  color: var(--forest);
  font-size: 8px;
  font-style: normal;
}
.ai-message {
  max-width: 74%;
  margin-top: 22px;
  padding: 14px 16px;
  font-size: 10px;
  line-height: 1.65;
}
.ai-message.user {
  margin-left: auto;
  background: #dce3dc;
}
.ai-message.assistant {
  background: #fff;
}
.ai-result-row {
  margin-top: 24px;
  padding: 10px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-soft);
}
.ai-result-row img {
  width: 120px;
  height: 90px;
  object-fit: cover;
}
.ai-result-row div {
  display: grid;
  gap: 6px;
}
.ai-result-row span {
  color: var(--forest);
  font-size: 8px;
  text-transform: uppercase;
}
.ai-result-row strong {
  font-family: 'DM Serif Display', serif;
  font-size: 19px;
  font-weight: 400;
}
.ai-result-row small {
  color: #7a807c;
  font-size: 9px;
}
.results-page {
  min-height: 100vh;
  padding: 150px 0 140px;
}
.results-heading {
  max-width: 900px;
  margin-bottom: 54px;
}
.results-heading > button {
  min-height: 44px;
  margin-bottom: 42px;
  padding: 0;
  border: 0;
  color: var(--forest);
  background: none;
  font-size: 11px;
}
.results-heading .eyebrow {
  color: var(--forest);
}
.results-heading h1 {
  margin: 0;
  font-size: clamp(48px, 5.2vw, 78px);
  font-weight: 450;
  line-height: 0.98;
  letter-spacing: -0.06em;
}
.results-heading > p:last-child {
  margin-top: 22px;
  color: #747a76;
}
.market-search-compact {
  transform: none;
  box-shadow: 0 18px 55px rgba(23, 29, 36, 0.08);
}
.results-toolbar {
  margin: 72px 0 34px;
  padding-bottom: 16px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.results-toolbar select {
  border: 0;
  background: transparent;
  font-size: 11px;
}
.results-grid {
  row-gap: 72px;
}
.market-footer {
  padding: 80px 0 28px;
  color: #fff;
  background: #12181e;
}
.market-footer .market-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 70px;
}
.market-footer > div > div > p {
  margin: 22px 0 0;
  color: #8e9893;
  font-size: 12px;
}
.market-footer nav {
  display: flex;
  gap: 30px;
}
.market-footer nav a {
  color: #b8c0bc;
  text-decoration: none;
  font-size: 10px;
}
.market-footer .market-wrap > span {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid #30383d;
  color: #707a75;
  font-size: 9px;
}
.utility-input {
  width: 100%;
  min-height: 48px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.market-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.market-reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1050px) {
  .market-wrap {
    width: calc(100% - 48px);
  }
  .market-section {
    padding-block: 96px;
  }
  .market-search-shell {
    height: 190px;
  }
  .market-search-fields {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 0;
  }
  .market-search-fields > label:nth-of-type(3) {
    border-right: 0;
  }
  .price-field {
    border-top: 1px solid var(--line-soft) !important;
  }
  .market-search-submit {
    min-height: 62px;
    margin: 12px 0 0 18px;
    grid-column: 2 / 4;
  }
  .neighborhoods-section {
    padding-top: 120px;
  }
  .neighborhood-grid {
    grid-template-columns: 1fr 1fr;
  }
  .neighborhood-card {
    aspect-ratio: 1.15;
  }
  .market-property-grid,
  .results-grid {
    grid-template-columns: 1fr 1fr;
  }
  .market-ai-grid {
    gap: 55px;
  }
}

@media (max-width: 700px) {
  .market-wrap {
    width: calc(100% - 40px);
  }
  .market-section {
    padding-block: 72px;
  }
  .market-hero {
    min-height: 610px;
    height: 78svh;
    background-position: 67% center;
  }
  .market-hero-copy {
    padding-bottom: 76px;
  }
  .market-hero-copy h1 {
    max-width: 350px;
    font-size: clamp(50px, 15vw, 66px);
    line-height: 0.92;
  }
  .market-hero-copy > p:last-child {
    max-width: 340px;
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.55;
  }
  .market-hero-caption {
    display: none;
  }
  .market-search-shell {
    width: 100%;
    height: auto;
  }
  .market-search {
    transform: none;
    border-inline: 0;
    box-shadow: 0 18px 45px rgba(23, 29, 36, 0.08);
  }
  .operation-tabs {
    height: 56px;
    padding-inline: 20px;
  }
  .operation-tabs button {
    height: 56px;
  }
  .market-search-fields {
    padding: 8px 20px 22px;
    display: block;
  }
  .market-search-fields > label,
  .market-search-fields > fieldset {
    min-height: 76px;
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .market-search-fields input,
  .market-search-fields select {
    min-height: 28px;
    font-size: 16px;
  }
  .price-field {
    border-top: 0 !important;
  }
  .market-search-submit {
    width: 100%;
    min-height: 54px;
    margin: 18px 0 0;
  }
  .location-suggestions {
    top: 100%;
    right: -10px;
    left: -10px;
  }
  .neighborhoods-section {
    padding-top: 88px;
  }
  .market-section-head {
    display: block;
    margin-bottom: 38px;
  }
  .market-section-head h2 {
    font-size: 41px;
  }
  .market-section-head > p {
    width: auto;
    margin-top: 24px;
  }
  .neighborhood-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .neighborhood-card {
    min-height: 370px;
    aspect-ratio: auto;
  }
  .market-property-grid,
  .results-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .market-text-link {
    margin-top: 25px;
  }
  .collection-grid {
    grid-template-columns: 1fr;
  }
  .collection-grid > button,
  .collection-grid > button:last-child {
    min-height: 480px;
    margin-top: 0;
  }
  .collection-grid button > div {
    right: 22px;
    bottom: 24px;
    left: 22px;
  }
  .market-ai {
    padding-block: 76px;
  }
  .market-ai-grid {
    grid-template-columns: 1fr;
  }
  .market-ai-copy h2 {
    font-size: 43px;
  }
  .ai-search-preview {
    padding: 18px;
  }
  .ai-message {
    max-width: 88%;
  }
  .ai-result-row {
    grid-template-columns: 82px 1fr;
    gap: 11px;
  }
  .ai-result-row img {
    width: 82px;
    height: 76px;
  }
  .results-page {
    padding: 108px 0 80px;
  }
  .results-heading {
    margin-bottom: 38px;
  }
  .results-heading > button {
    margin-bottom: 28px;
  }
  .results-heading h1 {
    font-size: 45px;
  }
  .market-search-compact {
    border-inline: 1px solid var(--line-soft);
  }
  .results-toolbar {
    margin-top: 48px;
  }
  .market-footer {
    padding-top: 64px;
  }
  .market-footer .market-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .market-footer nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 360px) {
  .market-hero-copy h1 {
    font-size: 47px;
  }
  .market-hero-copy .eyebrow {
    font-size: 9px;
  }
  .market-property-copy > div {
    flex-wrap: wrap;
  }
  .market-property-copy strong {
    width: 100%;
  }
  .collection-grid > button,
  .collection-grid > button:last-child {
    min-height: 420px;
  }
}

/* Search discovery experience */
.results-page .market-search-compact + .results-heading {
  margin-top: 92px;
}
.results-filter-sticky {
  position: sticky;
  z-index: 20;
  top: 70px;
  margin-inline: -1px;
  padding: 14px 0 12px;
  background: rgba(245, 243, 238, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.results-filter-sticky .results-toolbar {
  margin: 0;
  padding: 0;
  align-items: center;
  border: 0;
}
.mobile-search-summary {
  display: none;
}
.results-toolbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.results-toolbar > label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.results-toolbar > label > span {
  color: #777d79;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.results-toolbar select {
  min-height: 44px;
  padding-inline: 10px 30px;
}
.filter-trigger {
  min-height: 44px;
  padding: 0 14px;
  display: none;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  color: var(--midnight);
  background: transparent;
  font-size: 11px;
}
.filter-trigger > span {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--forest);
  font-size: 8px;
}
.view-toggle {
  height: 44px;
  padding: 3px;
  display: flex;
  border: 1px solid var(--line);
}
.view-toggle button {
  min-width: 64px;
  border: 0;
  color: #777d79;
  background: transparent;
  font-size: 10px;
}
.view-toggle button.active {
  color: #fff;
  background: var(--midnight);
}
.desktop-advanced-filters {
  margin-top: 12px;
}
.advanced-filter-controls {
  display: grid;
  grid-template-columns: 155px 175px 1fr auto;
  align-items: end;
  gap: 12px;
}
.advanced-filter-controls > label {
  min-width: 0;
  height: 58px;
  padding: 9px 12px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line-soft);
  background: #fff;
}
.advanced-filter-controls > label > span,
.advanced-filter-controls legend {
  padding: 0;
  color: #777d79;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.advanced-filter-controls select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
}
.advanced-filter-controls > fieldset {
  min-width: 0;
  height: 58px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  background: #fff;
}
.advanced-filter-controls fieldset > div {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.advanced-filter-controls fieldset label {
  min-height: 25px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  color: #686e6a;
  font-size: 9px;
  white-space: nowrap;
  cursor: pointer;
}
.advanced-filter-controls fieldset label.selected {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}
.advanced-filter-controls fieldset input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.clear-filters {
  min-height: 44px;
  padding-inline: 12px;
  border: 0;
  color: #666c68;
  background: transparent;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.filter-chips {
  padding-top: 12px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-chips button {
  min-height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  border: 1px solid rgba(84, 108, 96, 0.24);
  color: var(--forest);
  background: #edf0eb;
  font-size: 9px;
}
.results-count-row {
  margin: 44px 0 28px;
  display: flex;
  justify-content: space-between;
  color: #6f7571;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.results-count-row small {
  color: #939895;
  font-size: 9px;
}
.property-title-button {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  text-align: left;
}
.property-title-button h3 {
  margin-bottom: 6px;
  transition: color 0.25s ease;
}
.property-title-button small {
  display: block;
  margin-bottom: 15px;
  color: #888e8a;
  font-size: 10px;
}
.property-title-button:hover h3 {
  color: var(--forest);
}
.market-property-image[role='link'] {
  cursor: pointer;
}
.market-property-image[role='link']:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 3px;
}
.load-more {
  margin-top: 80px;
  display: grid;
  place-items: center;
  gap: 16px;
}
.load-more button {
  min-height: 52px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 28px;
  border: 1px solid var(--midnight);
  color: #fff;
  background: var(--midnight);
  font-size: 11px;
}
.load-more span {
  color: #858b87;
  font-size: 9px;
}
.empty-results {
  min-height: 430px;
  padding: 80px 20px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  border: 1px solid var(--line);
}
.empty-results .eyebrow {
  color: var(--forest);
}
.empty-results h2 {
  font-size: 48px;
}
.empty-results > p:not(.eyebrow) {
  margin: 20px 0 28px;
  color: #757b77;
}
.empty-results > button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  color: #fff;
  background: var(--midnight);
}
.results-map {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: #dfe1dc;
  background-image:
    linear-gradient(
      32deg,
      transparent 48%,
      rgba(255, 255, 255, 0.7) 49%,
      rgba(255, 255, 255, 0.7) 51%,
      transparent 52%
    ),
    linear-gradient(
      112deg,
      transparent 47%,
      rgba(255, 255, 255, 0.55) 48%,
      rgba(255, 255, 255, 0.55) 51%,
      transparent 52%
    );
  background-size:
    170px 150px,
    220px 190px;
}
.map-streets {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(#bdc3bc 1px, transparent 1px),
    linear-gradient(90deg, #bdc3bc 1px, transparent 1px);
  background-size: 62px 62px;
  transform: rotate(-8deg) scale(1.15);
}
.map-marker {
  position: absolute;
  z-index: 2;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #fff;
  color: #fff;
  background: var(--forest);
  box-shadow: 0 7px 18px rgba(23, 29, 36, 0.2);
  font-size: 9px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.map-marker.active {
  z-index: 3;
  background: var(--midnight);
  transform: scale(1.08);
}
.marker-1 {
  top: 16%;
  left: 18%;
}
.marker-2 {
  top: 28%;
  left: 55%;
}
.marker-3 {
  top: 52%;
  left: 32%;
}
.marker-4 {
  top: 68%;
  left: 68%;
}
.marker-5 {
  top: 38%;
  left: 78%;
}
.marker-6 {
  top: 74%;
  left: 14%;
}
.marker-7 {
  top: 12%;
  left: 72%;
}
.marker-8 {
  top: 48%;
  left: 50%;
}
.marker-9 {
  top: 78%;
  left: 45%;
}
.map-property-preview {
  position: absolute;
  z-index: 4;
  right: 28px;
  bottom: 28px;
  width: min(420px, calc(100% - 56px));
  padding: 10px;
  display: grid;
  grid-template-columns: 115px 1fr auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  box-shadow: 0 20px 55px rgba(23, 29, 36, 0.2);
}
.map-property-preview img {
  width: 115px;
  height: 86px;
  object-fit: cover;
}
.map-property-preview div {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.map-property-preview span {
  color: var(--forest);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.map-property-preview strong {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  font-weight: 400;
}
.map-property-preview small {
  color: #777d79;
  font-size: 9px;
}
.map-property-preview > button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: var(--midnight);
}
.map-attribution {
  position: absolute;
  right: 8px;
  bottom: 7px;
  color: #717873;
  font-size: 7px;
}
.filter-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
  background: rgba(15, 20, 24, 0.56);
  backdrop-filter: blur(4px);
}
.filter-sheet {
  width: min(680px, 100%);
  max-height: 90vh;
  padding: 34px;
  overflow-y: auto;
  background: var(--ivory);
  box-shadow: 0 -25px 70px rgba(23, 29, 36, 0.18);
}
.filter-sheet-head {
  padding-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}
.filter-sheet-head .eyebrow {
  margin-bottom: 10px;
  color: var(--forest);
}
.filter-sheet-head h2 {
  font-size: 42px;
}
.filter-sheet-head > button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}
.filter-sheet .advanced-filter-controls {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.filter-sheet .advanced-filter-controls > fieldset {
  grid-column: 1 / -1;
  height: auto;
  min-height: 90px;
}
.filter-sheet .advanced-filter-controls fieldset > div {
  flex-wrap: wrap;
  overflow: visible;
}
.filter-sheet .clear-filters {
  justify-self: start;
}
.apply-filters {
  width: 100%;
  min-height: 54px;
  margin-top: 26px;
  border: 0;
  color: #fff;
  background: var(--forest);
}
.property-detail-hero {
  position: relative;
  min-height: 740px;
  height: 90vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.property-detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.property-detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 17, 21, 0.78), transparent 68%);
}
.property-detail-title {
  position: relative;
  padding-bottom: 70px;
}
.property-detail-title > button {
  min-height: 44px;
  margin-bottom: 70px;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
}
.property-detail-title > p {
  margin-bottom: 14px;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.property-detail-title h1 {
  max-width: 850px;
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(64px, 7vw, 104px);
  font-weight: 400;
  line-height: 0.92;
}
.property-detail-title > span {
  display: block;
  margin-top: 25px;
  font-size: 17px;
}
.property-detail-content {
  padding-block: 130px;
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 11vw;
}
.property-detail-content > div .eyebrow {
  color: var(--forest);
}
.property-detail-content > div > p:last-child {
  max-width: 620px;
  margin-top: 30px;
  color: #6f7571;
  line-height: 1.8;
}
.property-detail-content aside {
  border-top: 1px solid var(--line);
}
.property-detail-content aside > div {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.property-detail-content aside span {
  color: #7a807c;
}
.property-detail-content aside strong {
  font-weight: 500;
}
.property-detail-content .detail-amenities {
  align-items: flex-start;
  padding-block: 20px;
}
.detail-amenities p {
  margin: 0;
  text-align: right;
}
.property-detail-content aside > button {
  width: 100%;
  min-height: 52px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--midnight);
  color: var(--midnight);
  background: transparent;
}
.property-detail-content aside > button.saved {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}
.property-detail-content aside > button.saved svg {
  fill: currentColor;
}

@media (max-width: 1050px) {
  .desktop-advanced-filters {
    display: none;
  }
  .filter-trigger {
    display: flex;
  }
  .results-filter-sticky {
    padding-bottom: 10px;
  }
  .property-detail-content {
    gap: 60px;
  }
}

@media (max-width: 700px) {
  .results-page .market-search-compact + .results-heading {
    margin-top: 58px;
  }
  .results-filter-sticky {
    top: 66px;
    margin-inline: -20px;
    padding: 10px 20px;
  }
  .mobile-search-summary {
    width: 100%;
    min-height: 48px;
    margin-bottom: 9px;
    padding: 0 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    color: var(--midnight);
    background: #fff;
    text-align: left;
  }
  .mobile-search-summary > svg:first-child {
    color: var(--forest);
  }
  .mobile-search-summary > span {
    display: grid;
    gap: 2px;
    color: #777d79;
    font-size: 9px;
  }
  .mobile-search-summary strong {
    color: var(--midnight);
    font-size: 11px;
  }
  .results-toolbar {
    gap: 10px;
  }
  .results-toolbar > div {
    flex: 1;
  }
  .view-toggle {
    flex: 1;
  }
  .view-toggle button {
    min-width: 0;
    flex: 1;
  }
  .results-toolbar > label > span {
    display: none;
  }
  .results-toolbar select {
    width: 46px;
    padding: 0;
    color: transparent;
    background-position: center;
  }
  .filter-chips {
    margin-inline: -20px;
    padding-inline: 20px;
  }
  .results-count-row {
    margin-top: 32px;
  }
  .results-count-row small {
    display: none;
  }
  .results-map {
    min-height: 68svh;
    margin-inline: -20px;
    border-inline: 0;
  }
  .map-marker {
    min-height: 38px;
  }
  .map-property-preview {
    right: 14px;
    bottom: 18px;
    width: calc(100% - 28px);
    grid-template-columns: 82px 1fr auto;
  }
  .map-property-preview img {
    width: 82px;
    height: 72px;
  }
  .filter-sheet {
    max-height: 92svh;
    padding: 26px 20px max(22px, env(safe-area-inset-bottom));
  }
  .filter-sheet .advanced-filter-controls {
    grid-template-columns: 1fr;
  }
  .filter-sheet .advanced-filter-controls > fieldset {
    grid-column: auto;
  }
  .filter-sheet .advanced-filter-controls > label {
    min-height: 68px;
  }
  .property-detail-hero {
    min-height: 620px;
    height: 82svh;
  }
  .property-detail-hero > img {
    object-position: 62% center;
  }
  .property-detail-title {
    padding-bottom: 48px;
  }
  .property-detail-title > button {
    margin-bottom: 44px;
  }
  .property-detail-title h1 {
    font-size: 56px;
  }
  .property-detail-content {
    padding-block: 72px;
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .property-detail-content h2 {
    font-size: 42px;
  }
}

/* Premium property detail */
.detail-breadcrumbs {
  padding-top: 108px;
  padding-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #858b87;
  font-size: 10px;
}
.detail-breadcrumbs button {
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--forest);
  background: none;
}
.detail-breadcrumbs strong {
  color: var(--midnight);
  font-weight: 500;
}
.detail-gallery {
  position: relative;
  height: 620px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  overflow: hidden;
  background: #ddd;
}
.detail-gallery > button {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #ddd;
}
.detail-gallery-main {
  grid-row: 1 / 3;
}
.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.83) contrast(1.02);
  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s ease;
}
.detail-gallery > button:hover img {
  transform: scale(1.025);
  filter: saturate(0.98);
}
.detail-gallery .gallery-count {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-height: 44px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--midnight);
  background: #fff;
  font-size: 10px;
  box-shadow: 0 10px 28px rgba(23, 29, 36, 0.14);
}
.gallery-count span {
  color: #7c827e;
}
.detail-heading {
  padding: 58px 0 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  border-bottom: 1px solid var(--line);
}
.detail-heading > div:first-child > p {
  margin-bottom: 13px;
  color: var(--forest);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.detail-heading h1 {
  margin: 0 0 12px;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(52px, 5vw, 76px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.detail-heading > div:first-child > span {
  color: #747a76;
  font-size: 12px;
}
.detail-heading > div:last-child {
  display: grid;
  gap: 7px;
  flex: none;
  text-align: right;
}
.detail-heading > div:last-child strong {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.detail-heading > div:last-child small {
  color: #858b87;
  font-size: 9px;
}
.detail-specs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
}
.detail-specs > div {
  min-height: 102px;
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 9px;
  border-right: 1px solid var(--line);
}
.detail-specs > div:first-child {
  padding-left: 0;
}
.detail-specs > div:last-child {
  border-right: 0;
}
.detail-specs span {
  color: #858b87;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.detail-specs strong {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
}
.detail-layout {
  padding-block: 100px 140px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 9vw;
  align-items: start;
}
.detail-main-content > details {
  border-top: 1px solid var(--line);
}
.detail-main-content > details:last-of-type {
  border-bottom: 1px solid var(--line);
}
.detail-main-content summary {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  font-family: 'DM Serif Display', serif;
  font-size: 25px;
  cursor: pointer;
}
.detail-main-content summary::-webkit-details-marker {
  display: none;
}
.detail-main-content summary::after {
  content: '+';
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 400;
}
.detail-main-content details[open] summary::after {
  content: '−';
}
.detail-main-content details > div {
  padding: 2px 0 40px;
}
.detail-main-content details p {
  max-width: 760px;
  color: #626965;
  font-size: 14px;
  line-height: 1.85;
}
.detail-main-content details p + p {
  margin-top: 20px;
}
.detail-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.detail-features span {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line-soft);
  color: #5e6661;
  font-size: 11px;
}
.detail-features span:nth-child(odd) {
  border-right: 1px solid var(--line-soft);
}
.detail-ai {
  margin-top: 72px;
  padding: 28px;
  background: #e8ebe6;
  border: 1px solid var(--line-soft);
}
.detail-ai > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}
.detail-ai > div:first-child > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--forest);
}
.detail-ai > div:first-child p {
  margin: 0;
  display: grid;
  gap: 3px;
}
.detail-ai > div:first-child strong {
  font-size: 11px;
}
.detail-ai > div:first-child small {
  color: #757c78;
  font-size: 8px;
}
.detail-ai-questions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.detail-ai-questions button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(84, 108, 96, 0.25);
  color: var(--forest);
  background: rgba(255, 255, 255, 0.52);
  font-size: 9px;
}
.detail-ai-answer {
  margin: 18px 0 0;
  padding: 16px;
  color: #515a55;
  background: #fff;
  font-size: 11px;
  line-height: 1.7;
}
.detail-location {
  margin-top: 92px;
}
.detail-location > div:first-child {
  margin-bottom: 32px;
}
.detail-location .eyebrow {
  color: var(--forest);
}
.detail-location h2 {
  font-size: 48px;
}
.detail-location > div:first-child > p:last-child {
  max-width: 570px;
  margin-top: 18px;
  color: #717874;
  font-size: 12px;
  line-height: 1.7;
}
.detail-map {
  position: relative;
  height: 430px;
  overflow: hidden;
  background-color: #dfe2dc;
  background-image:
    linear-gradient(
      28deg,
      transparent 48%,
      rgba(255, 255, 255, 0.7) 49%,
      rgba(255, 255, 255, 0.7) 51%,
      transparent 52%
    ),
    linear-gradient(
      108deg,
      transparent 47%,
      rgba(255, 255, 255, 0.55) 48%,
      rgba(255, 255, 255, 0.55) 51%,
      transparent 52%
    );
  background-size:
    170px 160px,
    230px 190px;
}
.detail-map > span {
  position: absolute;
  top: 45%;
  left: 51%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--forest);
  border: 5px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(23, 29, 36, 0.18);
}
.detail-map > small {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 7px 9px;
  color: #686f6b;
  background: rgba(255, 255, 255, 0.85);
  font-size: 8px;
}
.detail-map .map-streets {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.detail-map.zoom-1 .map-streets {
  transform: rotate(-8deg) scale(1.15);
}
.detail-map.zoom-2 .map-streets {
  transform: rotate(-8deg) scale(1.45);
}
.detail-map.zoom-3 .map-streets {
  transform: rotate(-8deg) scale(1.8);
}
.detail-map-controls {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: grid;
  background: #fff;
  box-shadow: 0 7px 20px rgba(23, 29, 36, 0.13);
}
.detail-map-controls button {
  width: 44px;
  height: 44px;
  border: 0;
  color: var(--midnight);
  background: #fff;
  font-size: 18px;
}
.detail-map-controls button + button {
  border-top: 1px solid var(--line);
}
.detail-map-areas {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 6px;
}
.detail-map-areas button {
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(23, 29, 36, 0.13);
  color: #66706a;
  background: rgba(255, 255, 255, 0.9);
  font-size: 9px;
}
.detail-map-areas button.active {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}
.detail-map-label {
  position: absolute;
  top: calc(45% + 56px);
  left: 51%;
  padding: 5px 8px;
  color: #fff;
  background: var(--midnight);
  font-size: 8px;
  font-weight: 500;
  transform: translateX(-30%);
}
.detail-agency {
  margin-top: 70px;
  padding: 24px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  border-block: 1px solid var(--line);
}
.agent-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--forest);
  border-radius: 50%;
  font-size: 11px;
}
.detail-agency > div:nth-child(2) {
  display: grid;
  gap: 4px;
}
.detail-agency span,
.detail-agency small {
  color: #838985;
  font-size: 8px;
}
.detail-agency strong {
  font-size: 12px;
}
.detail-agency > button {
  min-height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  color: var(--forest);
  background: none;
  font-size: 10px;
}
.detail-contact-card {
  position: sticky;
  top: 94px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: 0 24px 65px rgba(23, 29, 36, 0.08);
}
.detail-contact-card .eyebrow {
  margin-bottom: 14px;
  color: var(--forest);
}
.detail-contact-card h2 {
  font-size: 36px;
}
.detail-contact-card > p:not(.eyebrow) {
  margin: 15px 0 22px;
  color: #747b77;
  font-size: 11px;
  line-height: 1.65;
}
.detail-contact-card form,
.schedule-modal form {
  display: grid;
  gap: 13px;
}
.detail-contact-card label,
.schedule-modal label {
  color: #717874;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.detail-contact-card input,
.detail-contact-card textarea,
.schedule-modal input,
.schedule-modal select {
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  padding: 11px;
  border: 1px solid var(--line);
  outline-color: var(--forest);
  background: var(--ivory);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.detail-contact-card textarea {
  min-height: 78px;
  resize: vertical;
}
.detail-contact-card form > button {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 0;
  color: #fff;
  background: var(--forest);
}
.schedule-action {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 1px solid var(--midnight);
  background: transparent;
}
.detail-secondary-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.detail-secondary-actions button {
  min-height: 46px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  background: transparent;
  font-size: 9px;
}
.detail-secondary-actions button:first-child {
  border-right: 1px solid var(--line);
}
.detail-secondary-actions button.saved {
  color: var(--forest);
}
.detail-secondary-actions button.saved svg {
  fill: currentColor;
}
.detail-contact-card > small {
  display: block;
  margin-top: 15px;
  color: #989d9a;
  font-size: 7px;
  line-height: 1.5;
}
.contact-success {
  min-height: 150px;
  padding: 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  background: #e8ebe6;
}
.contact-success strong {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
}
.contact-success span {
  color: #68716c;
  font-size: 10px;
}
.contact-success.large {
  min-height: 330px;
}
.related-properties {
  padding-block: 130px;
  background: #e9e8e2;
}
.gallery-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  padding: 70px 35px 35px;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 22px;
  color: #fff;
  background: #10161b;
}
.gallery-viewer > img {
  width: 100%;
  height: calc(100vh - 110px);
  object-fit: contain;
}
.gallery-viewer > button:not(.gallery-viewer-close) {
  width: 52px;
  height: 52px;
  border: 1px solid #566067;
  color: #fff;
  background: transparent;
}
.gallery-viewer-close {
  position: absolute;
  top: 22px;
  right: 28px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: transparent;
}
.gallery-viewer > span {
  position: absolute;
  top: 30px;
  left: 30px;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.schedule-modal h2 {
  margin-bottom: 25px;
  font-size: 43px;
}
.detail-mobile-actions {
  display: none;
}

@media (max-width: 900px) {
  .detail-gallery {
    height: 500px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 45px;
  }
  .detail-contact-card {
    padding: 22px;
  }
}

@media (max-width: 700px) {
  .detail-breadcrumbs {
    padding-top: 82px;
    padding-bottom: 12px;
    overflow: hidden;
    white-space: nowrap;
  }
  .detail-gallery {
    width: 100%;
    height: 430px;
    padding-inline: 20px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    background: transparent;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .detail-gallery > button:not(.gallery-count) {
    width: 88vw;
    height: 410px;
    flex: none;
    scroll-snap-align: center;
  }
  .detail-gallery .gallery-count {
    position: sticky;
    z-index: 2;
    right: 28px;
    bottom: 18px;
    width: max-content;
    min-height: 38px;
    margin-left: -155px;
    align-self: flex-end;
    flex: none;
    pointer-events: auto;
    opacity: 1;
  }
  .detail-heading {
    padding: 36px 0 28px;
    display: block;
  }
  .detail-heading h1 {
    font-size: 48px;
  }
  .detail-heading > div:last-child {
    margin-top: 27px;
    text-align: left;
  }
  .detail-specs {
    grid-template-columns: repeat(3, 1fr);
  }
  .detail-specs > div {
    min-height: 84px;
    padding: 15px 10px;
    border-bottom: 1px solid var(--line);
  }
  .detail-specs > div:first-child {
    padding-left: 10px;
  }
  .detail-layout {
    padding-block: 62px 90px;
    display: block;
  }
  .detail-main-content summary {
    min-height: 68px;
    font-size: 22px;
  }
  .detail-features {
    grid-template-columns: 1fr;
  }
  .detail-features span:nth-child(odd) {
    border-right: 0;
  }
  .detail-ai {
    margin-top: 54px;
    padding: 20px;
  }
  .detail-ai-questions {
    display: grid;
  }
  .detail-ai-questions button {
    min-height: 44px;
    text-align: left;
  }
  .detail-location {
    margin-top: 68px;
  }
  .detail-location h2 {
    font-size: 40px;
  }
  .detail-map {
    height: 350px;
  }
  .detail-map-areas {
    right: 14px;
    left: 14px;
    overflow-x: auto;
  }
  .detail-map-controls {
    top: 68px;
    right: 14px;
  }
  .detail-agency {
    grid-template-columns: auto 1fr;
  }
  .detail-agency > button {
    grid-column: 1 / -1;
    justify-content: center;
    border-top: 1px solid var(--line);
  }
  .detail-contact-card {
    position: static;
    margin-top: 62px;
    padding: 24px 20px;
  }
  .detail-contact-card input,
  .detail-contact-card textarea {
    font-size: 16px;
  }
  .related-properties {
    padding-block: 76px 110px;
  }
  .detail-mobile-actions {
    position: fixed;
    z-index: 55;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 10px 20px max(10px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 8px;
    background: rgba(245, 243, 238, 0.97);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }
  .detail-mobile-actions button {
    min-height: 50px;
    border: 1px solid var(--midnight);
    background: transparent;
  }
  .detail-mobile-actions button:last-child {
    color: #fff;
    background: var(--forest);
    border-color: var(--forest);
  }
  .gallery-viewer {
    padding: 60px 0 90px;
    grid-template-columns: 1fr;
  }
  .gallery-viewer > img {
    height: calc(100svh - 150px);
  }
  .gallery-viewer > button:not(.gallery-viewer-close) {
    position: absolute;
    bottom: 24px;
  }
  .gallery-viewer > button:nth-of-type(2) {
    left: 20px;
  }
  .gallery-viewer > button:nth-of-type(3) {
    right: 20px;
  }
}

/* Agency discovery directory */
.agency-directory-wrap {
  width: min(1360px, calc(100% - 80px));
  margin-inline: auto;
}
.agency-directory-page {
  background: var(--ivory);
}
.agency-directory-hero {
  padding: 180px 0 126px;
  border-bottom: 1px solid var(--line);
}
.agency-directory-hero .eyebrow {
  color: var(--forest);
}
.agency-directory-hero h1 {
  max-width: 1080px;
  margin: 0;
  font-size: clamp(64px, 7vw, 108px);
  font-weight: 450;
  line-height: 0.91;
  letter-spacing: -0.072em;
}
.agency-directory-hero > div > p:not(.eyebrow) {
  max-width: 640px;
  margin: 34px 0 46px;
  color: #6d746f;
  font-size: 15px;
  line-height: 1.75;
}
.agency-search {
  max-width: 820px;
  min-height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 52px rgba(23, 29, 36, 0.07);
}
.agency-search svg {
  color: var(--forest);
}
.agency-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}
.featured-agency {
  padding-block: 138px 156px;
}
.agency-section-label {
  display: flex;
  gap: 16px;
  align-items: center;
}
.agency-section-label > span {
  color: #929793;
  font-size: 9px;
  letter-spacing: 0.12em;
}
.agency-section-label .eyebrow {
  margin: 0;
  color: var(--forest);
}
.featured-agency-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  min-height: 650px;
}
.featured-agency-image {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #ddd;
}
.featured-agency-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.featured-agency-image:hover img {
  transform: scale(1.025);
}
.featured-agency-image > span {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 9px 11px;
  color: #fff;
  background: rgba(23, 29, 36, 0.62);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.featured-agency-copy {
  padding: 68px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--midnight);
  color: #fff;
}
.agency-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-family: 'DM Serif Display', serif;
  font-size: 16px;
}
.agency-logo.large {
  width: 72px;
  height: 72px;
  font-size: 22px;
}
.verified-line {
  margin: 30px 0 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--sage);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.featured-agency-copy h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(42px, 4vw, 60px);
  font-weight: 400;
}
.featured-agency-copy > p:not(.verified-line) {
  margin: 25px 0 34px;
  color: #9fa6a2;
  font-size: 13px;
  line-height: 1.75;
}
.featured-agency-copy > div {
  padding-block: 22px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 7px 13px;
  align-items: end;
  border-block: 1px solid #343c41;
}
.featured-agency-copy > div strong {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-weight: 400;
}
.featured-agency-copy > div span {
  color: #79827d;
  font-size: 8px;
  line-height: 1.3;
}
.featured-agency-copy > button {
  min-height: 48px;
  margin-top: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  align-self: flex-start;
  border: 0;
  border-bottom: 1px solid var(--sage);
  color: #fff;
  background: transparent;
  font-size: 10px;
}
.agency-list-section {
  padding-block: 140px;
  background: #fff;
}
.agency-directory-heading {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--line);
}
.agency-directory-heading h2 {
  margin-top: 24px;
}
.agency-directory-heading > p {
  width: 330px;
  margin: 0;
  color: #7b817d;
  font-size: 11px;
  line-height: 1.7;
}
.agency-controls {
  position: sticky;
  z-index: 10;
  top: 70px;
  margin-top: 62px;
  padding: 13px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
  background: rgba(255, 255, 255, 0.96);
  border-block: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.agency-desktop-filters {
  min-width: 0;
}
.agency-filter-content {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 14px;
  align-items: end;
}
.agency-filter-content > label {
  min-height: 58px;
  padding: 9px 12px;
  display: grid;
  gap: 5px;
  color: #777e79;
  border: 1px solid var(--line-soft);
  font-size: 8px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.agency-filter-content select {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
}
.agency-filter-content fieldset {
  min-width: 0;
  height: 58px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--line-soft);
}
.agency-filter-content legend {
  padding: 0;
  color: #777e79;
  font-size: 8px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.agency-filter-content fieldset > div {
  margin-top: 5px;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.agency-filter-content fieldset label {
  min-height: 27px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  flex: none;
  color: #6e7570;
  border: 1px solid var(--line);
  font-size: 8px;
  cursor: pointer;
}
.agency-filter-content fieldset label.selected {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}
.agency-filter-content fieldset input {
  position: absolute;
  opacity: 0;
}
.agency-filter-content > button {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #707671;
  font-size: 9px;
  text-decoration: underline;
}
.agency-controls > label {
  min-height: 58px;
  padding: 9px 12px;
  display: grid;
  gap: 5px;
  color: #777e79;
  border: 1px solid var(--line-soft);
  font-size: 8px;
  text-transform: uppercase;
}
.agency-controls > label select {
  border: 0;
  background: transparent;
  font-size: 10px;
}
.agency-filter-trigger {
  display: none;
}
.agency-result-count {
  margin: 36px 0 26px;
  color: #7b817d;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.agency-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 72px 26px;
}
.agency-directory-card {
  min-width: 0;
}
.agency-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1.35;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #ddd;
}
.agency-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.76) contrast(1.02);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.agency-directory-card:hover .agency-cover img {
  transform: scale(1.03);
}
.agency-cover > span {
  position: absolute;
  right: 13px;
  bottom: 13px;
  padding: 7px 9px;
  color: #fff;
  background: rgba(23, 29, 36, 0.6);
  font-size: 8px;
  letter-spacing: 0.08em;
}
.agency-card-body {
  position: relative;
  padding-top: 18px;
}
.agency-card-identity {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}
.agency-card-identity h3 {
  margin: 0 0 4px;
  font-family: 'DM Serif Display', serif;
  font-size: 23px;
  font-weight: 400;
}
.agency-card-identity > div > span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--forest);
  font-size: 8px;
  text-transform: uppercase;
}
.agency-card-identity > div > span svg {
  width: 12px;
  height: 12px;
}
.agency-card-identity > button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
}
.agency-card-identity > button.saved {
  color: var(--forest);
}
.agency-card-identity > button.saved svg {
  fill: currentColor;
}
.agency-location {
  margin: 17px 0 10px;
  color: #7b817d;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.agency-description {
  min-height: 62px;
  margin-bottom: 16px;
  color: #656c67;
  font-size: 11px;
  line-height: 1.7;
}
.agency-specialties {
  padding-block: 12px;
  display: flex;
  gap: 6px;
  border-block: 1px solid var(--line-soft);
}
.agency-specialties span {
  color: var(--forest);
  font-size: 8px;
  letter-spacing: 0.05em;
}
.agency-profile-link {
  min-height: 46px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  font-size: 10px;
}
.agency-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  border: 1px solid var(--line);
}
.agency-empty h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  font-weight: 400;
}
.agency-empty button {
  min-height: 44px;
  border: 0;
  color: #fff;
  background: var(--forest);
}
.agency-filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
  background: rgba(15, 20, 24, 0.58);
  backdrop-filter: blur(4px);
}
.agency-filter-sheet {
  width: min(680px, 100%);
  max-height: 90vh;
  padding: 32px;
  overflow-y: auto;
  background: var(--ivory);
}
.agency-filter-sheet > div:first-child {
  position: relative;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.agency-filter-sheet .eyebrow {
  margin-bottom: 9px;
  color: var(--forest);
}
.agency-filter-sheet h2 {
  font-size: 42px;
}
.agency-filter-sheet > div:first-child > button {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}
.agency-filter-sheet .agency-filter-content {
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr;
}
.agency-filter-sheet .agency-filter-content fieldset {
  height: auto;
  min-height: 110px;
}
.agency-filter-sheet .agency-filter-content fieldset > div {
  flex-wrap: wrap;
  overflow: visible;
}
.agency-apply-filters {
  width: 100%;
  min-height: 54px;
  margin-top: 25px;
  border: 0;
  color: #fff;
  background: var(--forest);
}
.agency-profile-hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.agency-profile-hero > img,
.agency-profile-hero > div:first-of-type {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.agency-profile-hero > img {
  object-fit: cover;
}
.agency-profile-hero > div:first-of-type {
  background: linear-gradient(0deg, rgba(14, 19, 23, 0.8), transparent 70%);
}
.agency-profile-hero .agency-directory-wrap {
  position: relative;
  padding-bottom: 65px;
}
.agency-profile-hero .agency-directory-wrap > button {
  min-height: 44px;
  margin-bottom: 45px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
}
.agency-profile-hero .agency-logo {
  margin-bottom: 25px;
}
.agency-profile-hero p {
  margin-bottom: 10px;
  font-size: 10px;
  text-transform: uppercase;
}
.agency-profile-hero h1 {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(62px, 7vw, 100px);
  font-weight: 400;
  line-height: 0.94;
}
.agency-profile-hero .agency-directory-wrap > span {
  display: block;
  max-width: 560px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}
.agency-profile-content {
  padding-block: 130px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 10vw;
}
.agency-profile-content .eyebrow {
  color: var(--forest);
}
.agency-profile-content > div > p:last-child {
  margin-top: 28px;
  color: #69706b;
  line-height: 1.8;
}
.agency-profile-content aside {
  padding: 30px;
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid var(--line);
}
.agency-profile-content aside > strong {
  font-family: 'DM Serif Display', serif;
  font-size: 46px;
  font-weight: 400;
}
.agency-profile-content aside > span {
  margin-bottom: 18px;
  color: #7c837e;
  font-size: 9px;
}
.agency-profile-content aside > button {
  min-height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--midnight);
  background: transparent;
}
.agency-profile-content aside > button:last-child {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}
.agency-profile-content aside > button.saved svg {
  fill: currentColor;
}

@media (max-width: 1000px) {
  .agency-directory-wrap {
    width: calc(100% - 48px);
  }
  .featured-agency-grid {
    grid-template-columns: 1fr 1fr;
    min-height: 590px;
  }
  .featured-agency-copy {
    padding: 45px 36px;
  }
  .agency-desktop-filters {
    display: none;
  }
  .agency-controls {
    grid-template-columns: auto 1fr auto;
  }
  .agency-filter-trigger {
    min-height: 48px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: transparent;
  }
  .agency-filter-trigger span {
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--forest);
    font-size: 8px;
  }
  .agency-directory-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .agency-directory-wrap {
    width: calc(100% - 40px);
  }
  .agency-directory-hero {
    padding: 120px 0 76px;
  }
  .agency-directory-hero h1 {
    font-size: clamp(50px, 14vw, 62px);
  }
  .agency-directory-hero > div > p:not(.eyebrow) {
    margin: 25px 0 32px;
    font-size: 13px;
  }
  .agency-search {
    min-height: 60px;
  }
  .agency-search input {
    font-size: 16px;
  }
  .featured-agency {
    padding-block: 76px;
  }
  .featured-agency-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .featured-agency-image {
    min-height: 400px;
  }
  .featured-agency-copy {
    padding: 38px 24px;
  }
  .agency-list-section {
    padding-block: 76px;
  }
  .agency-directory-heading {
    display: block;
  }
  .agency-directory-heading h2 {
    font-size: 43px;
  }
  .agency-directory-heading > p {
    width: auto;
    margin-top: 24px;
  }
  .agency-controls {
    top: 66px;
    margin: 42px -20px 0;
    padding: 10px 20px;
    grid-template-columns: 1fr auto;
  }
  .agency-controls > label {
    min-height: 48px;
  }
  .agency-directory-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .agency-cover {
    aspect-ratio: 1.25;
  }
  .agency-description {
    min-height: 0;
  }
  .agency-filter-sheet {
    max-height: 92svh;
    padding: 26px 20px max(22px, env(safe-area-inset-bottom));
  }
  .agency-profile-hero {
    min-height: 690px;
  }
  .agency-profile-hero .agency-directory-wrap {
    padding-bottom: 45px;
  }
  .agency-profile-hero h1 {
    font-size: 56px;
  }
  .agency-profile-content {
    padding-block: 76px;
    grid-template-columns: 1fr;
    gap: 45px;
  }
}

@media (max-width: 360px) {
  .agency-directory-hero h1 {
    font-size: 46px;
  }
  .featured-agency-image {
    min-height: 340px;
  }
  .agency-card-identity h3 {
    font-size: 21px;
  }
}

/* Property publisher and assigned agent */
.property-attribution {
  margin-top: 72px;
  display: grid;
  gap: 42px;
}
.property-attribution > div > .eyebrow,
.property-attribution > .eyebrow {
  margin-bottom: 16px;
  color: var(--forest);
}
.publisher-agency-card,
.publisher-agent-card {
  min-width: 0;
  padding: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  background: #fff;
}
.publisher-agency-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
}
.publisher-name-line {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.publisher-name-line > strong {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-weight: 400;
}
.publisher-name-line > span {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--forest);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.publisher-name-line > span svg {
  width: 11px;
  height: 11px;
}
.publisher-agency-card p,
.publisher-agent-card p {
  margin: 5px 0;
  color: #717873;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.publisher-agency-card small,
.publisher-agent-card small {
  display: block;
  margin-top: 4px;
  color: #8a908c;
  font-size: 8px;
  line-height: 1.4;
}
.publisher-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.publisher-links button,
.publisher-agent-card > div > button {
  min-height: 32px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--forest);
  background: transparent;
  font-size: 8px;
}
.publisher-agent-card {
  grid-template-columns: 64px 1fr;
}
.publisher-agent-card > img {
  width: 64px;
  height: 76px;
  object-fit: cover;
  filter: saturate(0.82);
}
.publisher-agent-card > div > button {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.publisher-contact-sidebar {
  position: sticky;
  top: 92px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: 0 24px 65px rgba(23, 29, 36, 0.08);
}
.unified-contact-card {
  padding: 28px;
}
.unified-contact-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.unified-contact-heading .eyebrow {
  margin-bottom: 10px;
  color: var(--forest);
}
.unified-contact-heading h2 {
  font-size: 34px;
}
.unified-contact-heading > span {
  display: block;
  margin-top: 11px;
  color: #757c77;
  font-size: 9px;
  line-height: 1.55;
}
.unified-contact-heading > span strong {
  color: var(--midnight);
  font-weight: 500;
}
.unified-contact-identities {
  padding-block: 16px;
  display: grid;
  gap: 9px;
}
.publisher-agency-card.compact,
.publisher-agent-card.compact {
  padding: 0;
  border: 0;
}
.publisher-agency-card.compact .publisher-agency-logo {
  width: 42px;
  height: 42px;
  font-size: 13px;
}
.publisher-agent-card.compact {
  grid-template-columns: 48px 1fr;
}
.publisher-agent-card.compact > img {
  width: 48px;
  height: 56px;
}
.publisher-agency-card.compact .publisher-name-line > strong,
.publisher-agent-card.compact .publisher-name-line > strong {
  font-size: 15px;
}
.publisher-agency-card.compact .publisher-links {
  margin-top: 8px;
}
.publisher-agency-card.compact .publisher-links button:last-child,
.publisher-agent-card.compact small {
  display: none;
}
.unified-contact-card form {
  display: grid;
  gap: 11px;
}
.unified-contact-card form label {
  color: #737a75;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.unified-contact-card input,
.unified-contact-card textarea {
  width: 100%;
  min-height: 44px;
  margin-top: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  outline-color: var(--forest);
  background: var(--ivory);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.unified-contact-card textarea {
  min-height: 68px;
  resize: vertical;
}
.unified-contact-card form > button,
.publisher-schedule,
.publisher-whatsapp {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  text-decoration: none;
  font-size: 10px;
}
.unified-contact-card form > button {
  border: 0;
  color: #fff;
  background: var(--forest);
}
.publisher-schedule {
  margin-top: 9px;
  border: 1px solid var(--midnight);
  background: transparent;
}
.publisher-whatsapp {
  margin-top: 9px;
  color: var(--forest);
  border: 1px solid rgba(84, 108, 96, 0.35);
  background: #edf0eb;
}
.unified-contact-card > small {
  display: block;
  margin-top: 13px;
  color: #969b98;
  font-size: 7px;
  line-height: 1.45;
}
.publisher-contact-success {
  min-height: 130px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--forest);
  background: #e8ebe6;
  text-align: center;
}
.publisher-contact-success strong {
  font-family: 'DM Serif Display', serif;
  font-size: 21px;
  font-weight: 400;
}
.publisher-contact-success span {
  max-width: 220px;
  color: #707873;
  font-size: 9px;
  line-height: 1.5;
}
.publisher-contact-sidebar > .detail-secondary-actions {
  margin: 0 28px 20px;
}
.publisher-contact-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: grid;
  place-items: end center;
  background: rgba(14, 19, 23, 0.62);
  backdrop-filter: blur(4px);
}
.publisher-contact-sheet {
  position: relative;
  width: min(620px, 100%);
  max-height: 92svh;
  overflow-y: auto;
  background: var(--ivory);
}
.publisher-sheet-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}
.publisher-contact-sheet .unified-contact-card {
  padding: 28px 24px 14px;
  background: var(--ivory);
}
.publisher-contact-sheet .detail-secondary-actions {
  margin: 0 24px;
}
.agent-profile-wrap {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
}
.agent-profile-page {
  background: var(--ivory);
}
.agent-profile-hero {
  padding: 150px 0 90px;
  color: #fff;
  background: var(--midnight);
}
.agent-profile-hero > div > button {
  min-height: 44px;
  margin-bottom: 45px;
  padding: 0;
  border: 0;
  color: var(--sage);
  background: transparent;
}
.agent-profile-hero > div > div {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 55px;
  align-items: end;
}
.agent-profile-hero img {
  width: 280px;
  height: 350px;
  object-fit: cover;
  filter: saturate(0.82);
}
.agent-profile-hero p {
  color: var(--sage);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.agent-profile-hero h1 {
  margin: 14px 0 18px;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(60px, 7vw, 96px);
  font-weight: 400;
  line-height: 0.92;
}
.agent-profile-hero span {
  color: #8f9994;
  font-size: 11px;
}
.agent-profile-content {
  padding-block: 120px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 9vw;
}
.agent-profile-content .eyebrow {
  color: var(--forest);
}
.agent-profile-content > div > p:last-child {
  margin-top: 28px;
  color: #68706b;
  line-height: 1.8;
}
.agent-profile-content aside > .eyebrow {
  margin-bottom: 15px;
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
  }
  .unified-contact-card {
    padding: 22px;
  }
}

@media (max-width: 700px) {
  .detail-layout {
    display: block;
  }
  .property-attribution {
    margin-top: 58px;
  }
  .publisher-agency-card,
  .publisher-agent-card {
    padding: 18px;
  }
  .publisher-name-line > strong {
    font-size: 18px;
  }
  .publisher-links button,
  .publisher-agent-card > div > button {
    min-height: 44px;
  }
  .publisher-contact-sidebar {
    display: none;
  }
  .publisher-contact-sheet .unified-contact-identities {
    padding-right: 38px;
  }
  .publisher-contact-sheet input,
  .publisher-contact-sheet textarea {
    font-size: 16px;
  }
  .agent-profile-wrap {
    width: calc(100% - 40px);
  }
  .agent-profile-hero {
    padding: 105px 0 65px;
  }
  .agent-profile-hero > div > button {
    margin-bottom: 30px;
  }
  .agent-profile-hero > div > div {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .agent-profile-hero img {
    width: 180px;
    height: 225px;
  }
  .agent-profile-hero h1 {
    font-size: 56px;
  }
  .agent-profile-content {
    padding-block: 75px;
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .agent-profile-content h2 {
    font-size: 42px;
  }
}

@media (max-width: 360px) {
  .publisher-agency-card,
  .publisher-agent-card {
    gap: 11px;
  }
  .publisher-agency-logo {
    width: 46px;
    height: 46px;
  }
  .publisher-agent-card {
    grid-template-columns: 54px 1fr;
  }
  .publisher-agent-card > img {
    width: 54px;
    height: 66px;
  }
}

/* Compact publisher attribution on property cards */
.market-property-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.property-image-open {
  width: 100%;
  height: 100%;
  padding: 0;
  display: block;
  border: 0;
  background: transparent;
}
.property-image-open:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: -3px;
}
.market-property-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.market-property-copy > div {
  margin-top: auto;
}
.property-publisher-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.property-publisher-footer > button {
  width: 100%;
  min-height: 44px;
  padding: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  border: 0;
  color: var(--midnight);
  background: transparent;
  text-align: left;
}
.property-publisher-logo,
.property-publisher-footer > button > img {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  object-fit: cover;
  font-family: 'DM Serif Display', serif;
  font-size: 8px;
}
.property-publisher-footer > button > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.property-publisher-footer small {
  color: #8b908d;
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.property-publisher-footer strong {
  overflow: hidden;
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.property-publisher-footer i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--forest);
  border: 1px solid rgba(84, 108, 96, 0.25);
  border-radius: 50%;
  font-style: normal;
}
.property-publisher-footer > button:hover strong {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .property-publisher-footer {
    margin-top: 14px;
  }
  .property-publisher-footer strong {
    font-size: 10px;
  }
}

/* Unified authentication and onboarding */
.auth-experience {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(560px, 1.08fr) minmax(440px, 0.92fr);
  color: var(--midnight);
  background: var(--ivory);
}
.auth-form-side {
  position: relative;
  min-width: 0;
  padding: 0 clamp(40px, 6vw, 110px) 60px;
  display: flex;
  flex-direction: column;
}
.auth-topbar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}
.auth-topbar > span {
  color: #7b827d;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.onboarding-progress {
  position: absolute;
  top: 90px;
  right: 0;
  left: 0;
  height: 2px;
  background: #dddcd6;
}
.onboarding-progress i {
  display: block;
  height: 100%;
  background: var(--forest);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.auth-form-container {
  width: min(100%, 480px);
  margin: auto;
  padding-block: 70px 25px;
}
.auth-heading {
  margin-bottom: 34px;
}
.auth-heading .eyebrow,
.auth-centered-state .eyebrow,
.onboarding-complete .eyebrow {
  margin-bottom: 17px;
  color: var(--forest);
}
.auth-heading h1,
.auth-centered-state h1,
.onboarding-complete h1 {
  margin: 0;
  font-size: clamp(44px, 4vw, 61px);
  font-weight: 450;
  line-height: 0.96;
  letter-spacing: -0.058em;
}
.auth-heading > p:last-child,
.auth-centered-state > p:not(.eyebrow),
.onboarding-complete > p:not(.eyebrow) {
  margin: 20px 0 0;
  color: #707772;
  font-size: 13px;
  line-height: 1.7;
}
.google-auth {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid var(--line);
  color: var(--midnight);
  background: #fff;
  font-size: 11px;
}
.google-auth:hover {
  border-color: #9ba09d;
}
.auth-divider {
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8b918d;
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--line);
}
.auth-form,
.auth-centered-state form {
  display: grid;
  gap: 16px;
}
.auth-form label,
.auth-centered-state label,
.auth-form fieldset {
  color: #6c736e;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.auth-form input,
.auth-form select,
.auth-centered-state input {
  width: 100%;
  min-height: 50px;
  margin-top: 7px;
  padding: 0 13px;
  border: 1px solid var(--line);
  outline-color: var(--forest);
  color: var(--midnight);
  background: #fff;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.auth-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.auth-form legend {
  padding: 0;
}
.auth-primary {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  color: #fff;
  background: var(--forest);
  font-size: 11px;
  font-weight: 500;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}
.auth-primary:hover:not(:disabled) {
  background: #262729;
  transform: translateY(-1px);
}
.auth-primary:disabled,
.google-auth:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.auth-text-action {
  width: max-content;
  min-height: 36px;
  padding: 0;
  border: 0;
  color: var(--forest);
  background: transparent;
  font-size: 9px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-switch,
.auth-terms {
  margin: 24px 0 0;
  color: #858b87;
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}
.auth-switch button {
  padding: 0;
  border: 0;
  color: var(--forest);
  background: transparent;
  text-decoration: underline;
}
.auth-message {
  margin-top: 18px;
  padding: 12px;
  font-size: 10px;
  line-height: 1.5;
}
.auth-message.error {
  color: #743e36;
  background: #f0e3df;
  border: 1px solid #dfc6bf;
}
.auth-message.success {
  color: #2a2b2d;
  background: #e4eae4;
  border: 1px solid #cad6cc;
}
.auth-prototype-note {
  margin: 28px 0 0;
  color: #9a9f9c;
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}
.auth-centered-state {
  text-align: center;
}
.auth-centered-state form {
  margin-top: 32px;
  text-align: left;
}
.auth-state-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--forest);
}
.auth-centered-state > .auth-text-action {
  margin-top: 20px;
}
.auth-centered-state strong {
  color: var(--midnight);
}
.auth-centered-state input[inputmode='numeric'] {
  text-align: center;
  font-size: 23px;
  letter-spacing: 0.35em;
  font-variant-numeric: tabular-nums;
}
.auth-back {
  min-height: 44px;
  margin-bottom: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  color: var(--forest);
  background: transparent;
  font-size: 10px;
}
.auth-success-panel {
  min-height: 180px;
  margin-top: 34px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  color: var(--forest);
  background: #e7ece7;
}
.auth-success-panel strong {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
}
.auth-success-panel span {
  color: #737a75;
  font-size: 9px;
}
.account-type-grid {
  margin-bottom: 18px;
  display: grid;
  gap: 9px;
}
.account-type-grid > button {
  position: relative;
  min-height: 106px;
  padding: 18px 48px 18px 18px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-content: center;
  gap: 4px 8px;
  border: 1px solid var(--line);
  color: var(--midnight);
  background: #fff;
  text-align: left;
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}
.account-type-grid > button:hover,
.account-type-grid > button.selected {
  border-color: var(--forest);
  background: #eef0eb;
}
.account-type-grid > button > span {
  grid-row: 1 / 3;
  color: #919692;
  font-size: 8px;
  letter-spacing: 0.1em;
}
.account-type-grid strong {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-weight: 400;
}
.account-type-grid p {
  margin: 0;
  color: #737975;
  font-size: 10px;
}
.account-type-grid i {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translateY(-50%);
}
.account-type-grid .selected i {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}
.standard-account-action,
.save-resume {
  width: 100%;
  min-height: 44px;
  margin-top: 9px;
  border: 0;
  color: var(--forest);
  background: transparent;
  font-size: 9px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.onboarding-tags {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.onboarding-tags label {
  min-height: 40px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  color: #666d68;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.onboarding-tags label.selected {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}
.onboarding-tags input {
  position: absolute;
  opacity: 0;
}
.onboarding-complete {
  text-align: center;
}
.onboarding-complete > span {
  width: 58px;
  height: 58px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--forest);
  border-radius: 50%;
}
.onboarding-complete > div {
  margin: 30px 0 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}
.onboarding-complete > div button {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: var(--forest);
  background: transparent;
  font-size: 9px;
}
.auth-visual {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background-position: center;
  background-size: cover;
}
.auth-visual > div {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 17, 21, 0.72), rgba(12, 17, 21, 0.06) 65%);
}
.auth-visual blockquote {
  position: relative;
  max-width: 640px;
  margin: 0;
  padding: clamp(40px, 6vw, 90px);
}
.auth-visual blockquote p {
  margin: 0 0 25px;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(33px, 3.2vw, 50px);
  line-height: 1.04;
}
.auth-visual blockquote span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 1000px) {
  .auth-experience {
    grid-template-columns: minmax(480px, 1.1fr) minmax(320px, 0.9fr);
  }
  .auth-form-side {
    padding-inline: 42px;
  }
}

@media (max-width: 760px) {
  .auth-experience {
    display: block;
  }
  .auth-form-side {
    min-height: 100svh;
    padding: 0 20px 40px;
  }
  .auth-topbar {
    min-height: 70px;
  }
  .onboarding-progress {
    top: 68px;
  }
  .auth-form-container {
    padding-block: 48px 20px;
  }
  .auth-heading h1,
  .auth-centered-state h1,
  .onboarding-complete h1 {
    font-size: 44px;
  }
  .auth-visual {
    display: none;
  }
  .auth-form input,
  .auth-form select,
  .auth-centered-state input {
    min-height: 52px;
    font-size: 16px;
  }
  .auth-primary,
  .google-auth {
    min-height: 54px;
  }
}

@media (max-width: 360px) {
  .auth-form-side {
    padding-inline: 16px;
  }
  .auth-form-container {
    padding-top: 38px;
  }
  .auth-heading h1,
  .auth-centered-state h1,
  .onboarding-complete h1 {
    font-size: 40px;
  }
  .account-type-grid > button {
    min-height: 98px;
    padding-left: 14px;
  }
}

.auth-loading {
  min-height: 100svh;
  padding: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--midnight);
  background: var(--ivory);
}
.auth-loading > span {
  color: #7b827d;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Agency organization onboarding */
.agency-onboarding {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(640px, 1.45fr) minmax(380px, 0.75fr);
  color: var(--midnight);
  background: var(--ivory);
  overflow-x: clip;
}
.agency-onboarding-main {
  min-width: 0;
  padding: 0 clamp(32px, 5vw, 82px) 48px;
}
.agency-onboarding-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}
.agency-onboarding-header > div {
  display: flex;
  align-items: center;
  gap: 22px;
}
.agency-onboarding-header span {
  color: #858b87;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.agency-onboarding-header button {
  padding: 0;
  border: 0;
  color: var(--forest);
  background: transparent;
  font-size: 9px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.agency-progress {
  min-height: 82px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-soft);
}
.agency-progress button {
  position: relative;
  min-width: 0;
  padding: 18px 6px 15px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 0;
  color: #999e9a;
  background: transparent;
  text-align: left;
}
.agency-progress button::after {
  content: '';
  position: absolute;
  right: 7px;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
}
.agency-progress button.active,
.agency-progress button.complete {
  color: var(--forest);
}
.agency-progress button.active::after,
.agency-progress button.complete::after {
  background: var(--forest);
}
.agency-progress i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 8px;
  font-style: normal;
}
.agency-progress i svg {
  width: 12px;
}
.agency-progress span {
  max-width: 95px;
  font-size: 8px;
  line-height: 1.25;
}
.agency-step-content {
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 56px 0 70px;
  outline: 0;
}
.agency-step-heading {
  max-width: 590px;
  margin-bottom: 38px;
}
.agency-step-heading .eyebrow {
  margin: 0 0 15px;
  color: var(--forest);
}
.agency-step-heading h1 {
  margin: 0;
  font-size: clamp(40px, 4.2vw, 62px);
  font-weight: 450;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.agency-step-heading > p:last-child {
  margin: 17px 0 0;
  color: #707772;
  font-size: 12px;
  line-height: 1.65;
}
.agency-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}
.agency-field {
  min-width: 0;
  color: #646c66;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.agency-field > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.agency-field small {
  color: #a1a5a2;
  font-size: 7px;
  font-weight: 400;
}
.agency-field input,
.agency-field select,
.agency-field textarea,
.team-list select {
  width: 100%;
  min-height: 50px;
  margin-top: 7px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline-color: var(--forest);
  color: var(--midnight);
  background: #fff;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.agency-field textarea {
  min-height: 128px;
  padding-block: 13px;
  resize: vertical;
}
.agency-form-grid > .agency-field:has(textarea) {
  grid-row: span 2;
}
.agency-span-full {
  grid-column: 1 / -1;
}
.agency-check-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.agency-check-group legend {
  padding: 0;
  color: #646c66;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.agency-check-group > div {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.agency-check-group label {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  color: #626a64;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 9px;
}
.agency-check-group label.selected {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}
.agency-check-group input {
  position: absolute;
  opacity: 0;
}
.jurisdiction-note,
.verification-state-note,
.review-status {
  margin-bottom: 24px;
  padding: 17px 18px;
  border-left: 2px solid var(--forest);
  background: #e7ebe5;
}
.jurisdiction-note span,
.review-status > div > span {
  color: var(--forest);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.jurisdiction-note p,
.verification-state-note p,
.review-status p {
  margin: 8px 0 0;
  color: #646c66;
  font-size: 10px;
  line-height: 1.55;
}
.agency-upload input,
.compact-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.agency-upload > label {
  min-height: 144px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px dashed #aab0ac;
  background: #faf9f6;
  cursor: pointer;
  text-align: center;
}
.agency-upload > label:hover,
.agency-upload input:focus-visible + label,
.compact-upload input:focus-visible + label {
  border-color: var(--forest);
  outline: 2px solid rgba(84, 108, 96, 0.2);
  outline-offset: 2px;
}
.agency-upload label strong {
  color: var(--midnight);
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  font-weight: 400;
}
.agency-upload label span,
.compact-upload label span {
  color: #8a908c;
  font-size: 8px;
}
.agency-upload ul {
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}
.agency-upload li {
  min-height: 44px;
  padding: 0 10px 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line-soft);
  background: #fff;
  font-size: 10px;
}
.agency-upload li + li {
  margin-top: 6px;
}
.agency-upload li button,
.team-list > div > button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  color: #858b87;
  background: transparent;
}
.verification-state-note {
  margin: 20px 0 0;
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 0;
  background: #f0efea;
}
.verification-state-note p {
  margin: 0;
}
.verification-badge {
  width: max-content;
  padding: 7px 9px;
  display: inline-block;
  color: #6b716d;
  border: 1px solid #c9ccc8;
  background: #f4f3ef;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.verification-badge.submitted {
  color: #756044;
  border-color: #d8c59f;
  background: #f2ead8;
}
.verification-badge.approved {
  color: #27282a;
  border-color: #c0c1c3;
  background: #e1e9e2;
}
.verification-badge.rejected {
  color: #743e36;
  border-color: #d9bbb5;
  background: #f0e0dd;
}
.verification-badge.more-info {
  color: #7a5842;
  border-color: #d8bda9;
  background: #f2e6de;
}
.compact-upload label {
  min-height: 82px;
  padding: 13px;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-content: center;
  gap: 4px 8px;
  border: 1px dashed #aab0ac;
  background: #fff;
  color: var(--midnight);
  cursor: pointer;
  font-size: 10px;
}
.compact-upload label span {
  grid-column: 2;
}
.slug-input {
  margin-top: 7px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
}
.slug-input > span {
  padding-left: 12px;
  color: #969b98;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.slug-input input {
  min-width: 80px;
  margin: 0;
  padding-left: 2px;
  border: 0;
}
.team-invite {
  padding: 20px;
  display: grid;
  grid-template-columns: 1.3fr 0.85fr auto;
  align-items: end;
  gap: 10px;
  background: #e9ece7;
}
.agency-secondary {
  min-height: 50px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--forest);
  color: var(--forest);
  background: transparent;
  font-size: 9px;
  white-space: nowrap;
}
.team-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.team-list > div {
  min-height: 68px;
  display: grid;
  grid-template-columns: 38px 1fr auto 34px;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
}
.team-list > div > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--forest);
  border: 1px solid #bfc7c0;
  border-radius: 50%;
  font-size: 8px;
}
.team-list strong,
.team-list small {
  display: block;
}
.team-list strong {
  font-size: 10px;
  font-weight: 500;
}
.team-list small {
  margin-top: 4px;
  color: #8a908c;
  font-size: 8px;
}
.team-list select {
  min-height: 36px;
  margin: 0;
  font-size: 9px;
}
.team-list em {
  grid-column: 3 / 5;
  color: #858b87;
  font-size: 8px;
  font-style: normal;
}
.team-help {
  color: #858b87;
  font-size: 9px;
  line-height: 1.6;
}
.review-status > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.agency-review-list {
  margin: 0;
  border-top: 1px solid var(--line);
}
.agency-review-list > div {
  min-height: 66px;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}
.agency-review-list dt {
  color: #818783;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.agency-review-list dd {
  margin: 0;
  font-size: 11px;
}
.agency-review-list button {
  padding: 0;
  border: 0;
  color: var(--forest);
  background: transparent;
  font-size: 8px;
  text-decoration: underline;
}
.review-confirm {
  margin-top: 22px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #656d67;
  font-size: 9px;
  line-height: 1.5;
}
.review-confirm input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--forest);
}
.agency-step-actions {
  margin-top: 38px;
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 12px;
}
.agency-step-actions .auth-primary {
  margin: 0;
}
.agency-back {
  min-height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  color: var(--forest);
  background: transparent;
  font-size: 9px;
}
.agency-notice {
  margin-top: 14px;
  padding: 11px 13px;
  color: #2a2b2d;
  border: 1px solid #c4d0c6;
  background: #e5ebe5;
  font-size: 9px;
}
.agency-onboarding-aside {
  position: sticky;
  top: 0;
  min-width: 0;
  height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(0deg, rgba(12, 17, 21, 0.78), rgba(12, 17, 21, 0.05) 65%),
    url('../../legacy/assets/briker-studio.webp') center / cover;
  overflow: hidden;
}
.agency-aside-content {
  width: 100%;
  padding: clamp(34px, 4.8vw, 76px);
}
.agency-aside-content > span,
.preview-label > span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 8px;
  letter-spacing: 0.14em;
}
.agency-aside-content > p {
  margin: 28px 0 13px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}
.agency-aside-content blockquote {
  margin: 0 0 28px;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3.1vw, 45px);
  line-height: 1.05;
}
.agency-aside-content small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 9px;
  line-height: 1.5;
}
.agency-onboarding-aside.previewing {
  padding: clamp(25px, 3vw, 48px);
  align-items: center;
  color: var(--midnight);
  background: #dfe4dc;
}
.agency-live-preview {
  width: min(100%, 470px);
  margin: auto;
}
.preview-label {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.preview-label > span {
  color: #6b736d;
}
.preview-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 4px rgba(84, 108, 96, 0.12);
}
.agency-live-preview article {
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 29, 36, 0.15);
}
.preview-cover {
  height: 170px;
  background-position: center;
  background-size: cover;
}
.preview-content {
  position: relative;
  padding: 44px 25px 26px;
}
.preview-logo {
  position: absolute;
  top: -30px;
  left: 25px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 4px solid #fff;
  background: var(--forest);
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
}
.preview-content > p {
  margin: 0 0 8px;
  color: #8a908c;
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.preview-content h2 {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: 29px;
  font-weight: 400;
}
.preview-content > strong,
.preview-content > span {
  display: block;
}
.preview-content > strong {
  margin-top: 10px;
  color: var(--forest);
  font-size: 10px;
  font-weight: 500;
}
.preview-content > span {
  margin-top: 15px;
  color: #737a75;
  font-size: 9px;
  line-height: 1.55;
}
.preview-content > div:last-child {
  margin-top: 18px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.preview-content small {
  padding: 6px 8px;
  color: #657068;
  background: #edf0eb;
  font-size: 7px;
}
.agency-live-preview > p {
  color: #6b736d;
  font-size: 8px;
  text-align: center;
}
.mobile-brand-preview {
  display: none;
}
.agency-mobile-actions {
  display: none;
}
.agency-completion {
  min-height: 100svh;
  padding: 0 clamp(24px, 6vw, 90px) 60px;
  color: var(--midnight);
  background: linear-gradient(90deg, var(--ivory) 0 68%, #dfe5dc 68% 100%);
}
.agency-completion-top {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}
.agency-completion-top > span {
  color: #858b87;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.agency-completion > section {
  width: min(100%, 720px);
  margin: 0 auto;
  padding-top: clamp(60px, 9vw, 120px);
  text-align: center;
}
.completion-mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 30px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--forest);
}
.agency-completion h1 {
  margin: 16px 0 0;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 450;
  line-height: 0.95;
  letter-spacing: -0.06em;
}
.agency-completion section > p:not(.eyebrow) {
  max-width: 530px;
  margin: 24px auto 0;
  color: #6e756f;
  font-size: 12px;
  line-height: 1.7;
}
.completion-restriction {
  max-width: 590px;
  margin: 28px auto 0;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: #ece9df;
  text-align: left;
}
.completion-restriction > span:last-child {
  color: #6f716b;
  font-size: 9px;
  line-height: 1.5;
}
.completion-actions {
  max-width: 590px;
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.completion-actions > button:not(.auth-primary) {
  min-height: 50px;
  border: 1px solid var(--line);
  color: var(--forest);
  background: transparent;
  font-size: 9px;
}
.completion-actions .auth-primary {
  grid-column: 1 / -1;
}

/* Agent professional onboarding */
.agent-progress {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.agent-onboarding-aside {
  background:
    linear-gradient(0deg, rgba(12, 17, 21, 0.8), rgba(12, 17, 21, 0.04) 66%),
    url('../../legacy/assets/briker-agent.webp') center 24% / cover;
}
.agent-photo-upload {
  min-height: 116px;
  padding: 16px;
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 18px;
  border: 1px dashed #aab0ac;
  background: #faf9f6;
}
.agent-photo-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.agent-photo-upload img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(0.85);
}
.agent-photo-upload label {
  min-height: 76px;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-content: center;
  gap: 5px 9px;
  cursor: pointer;
}
.agent-photo-upload label strong {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  font-weight: 400;
}
.agent-photo-upload label span {
  grid-column: 2;
  color: #888e8a;
  font-size: 8px;
}
.agent-photo-upload input:focus-visible ~ label {
  outline: 2px solid rgba(84, 108, 96, 0.25);
  outline-offset: 3px;
}
.affiliation-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.affiliation-options > button {
  position: relative;
  min-height: 190px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  color: var(--midnight);
  background: #fff;
  text-align: left;
}
.affiliation-options > button:hover,
.affiliation-options > button.selected {
  border-color: var(--forest);
  background: #edf0eb;
}
.affiliation-options > button > i {
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  color: var(--forest);
  border: 1px solid #bfc8c1;
  font-style: normal;
}
.affiliation-options > button > span {
  color: #979c98;
  font-size: 7px;
  letter-spacing: 0.1em;
}
.affiliation-options strong {
  margin-top: 7px;
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.1;
}
.affiliation-options p {
  margin: 8px 0 0;
  color: #7a817c;
  font-size: 8px;
  line-height: 1.45;
}
.affiliation-options em {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.affiliation-options .selected em {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}
.affiliation-options em svg {
  width: 12px;
}
.agent-affiliation-panel {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #f3f2ed;
}
.agency-search-box {
  position: relative;
}
.agency-search-box > svg {
  position: absolute;
  top: 37px;
  left: 14px;
  z-index: 1;
  color: #848a86;
}
.agency-search-box label,
.verification-controls label {
  display: block;
  color: #646c66;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.agency-search-box input,
.verification-controls select {
  width: 100%;
  min-height: 50px;
  margin-top: 7px;
  padding: 0 13px 0 43px;
  border: 1px solid var(--line);
  outline-color: var(--forest);
  background: #fff;
  font-size: 14px;
}
.agency-search-results {
  max-height: 235px;
  margin-top: 10px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}
.agency-search-results > button {
  width: 100%;
  min-height: 68px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--midnight);
  background: transparent;
  text-align: left;
}
.agency-search-results > button:hover,
.agency-search-results > button.selected {
  background: #e3e8e1;
}
.agency-search-results > button > span,
.affiliation-request > div > span,
.invitation-card > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--forest);
  font-family: 'DM Serif Display', serif;
  font-size: 11px;
}
.agency-search-results strong,
.agency-search-results small {
  display: block;
}
.agency-search-results strong {
  font-size: 10px;
  font-weight: 500;
}
.agency-search-results small {
  margin-top: 4px;
  color: #828884;
  font-size: 8px;
}
.agency-search-results em {
  color: #6b746e;
  font-size: 7px;
  font-style: normal;
}
.affiliation-request {
  margin-top: 14px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.affiliation-request > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.affiliation-request p {
  margin: 0;
}
.affiliation-request strong,
.affiliation-request small {
  display: block;
}
.affiliation-request strong {
  font-size: 10px;
}
.affiliation-request small {
  max-width: 290px;
  margin-top: 4px;
  color: #7a817c;
  font-size: 8px;
}
.independent-workspace-note {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 11px;
}
.independent-workspace-note > svg {
  color: var(--forest);
}
.independent-workspace-note strong {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  font-weight: 400;
}
.independent-workspace-note p,
.publication-permission p {
  margin: 6px 0 0;
  color: #747b76;
  font-size: 9px;
  line-height: 1.55;
}
.publication-permission {
  margin-top: 20px;
  padding: 14px;
  border-left: 2px solid #b48c61;
  background: #eae4d8;
}
.publication-permission span {
  color: #8d7559;
  font-size: 7px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.publication-permission strong {
  margin-left: 9px;
  font-size: 9px;
}
.invitation-token {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: end;
  gap: 10px;
}
.invitation-token > svg {
  margin-bottom: 16px;
  color: var(--forest);
}
.invitation-card {
  margin-top: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 13px;
  background: #e3e8e1;
}
.invitation-card small,
.invitation-card strong {
  display: block;
}
.invitation-card small {
  color: #7a817c;
  font-size: 7px;
  text-transform: uppercase;
}
.invitation-card strong {
  margin-top: 4px;
  font-family: 'DM Serif Display', serif;
  font-size: 16px;
  font-weight: 400;
}
.invitation-card p {
  margin: 5px 0 0;
  color: #707772;
  font-size: 8px;
}
.invitation-card > div:last-child {
  display: flex;
  gap: 6px;
}
.invitation-card > div:last-child button {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--forest);
  color: var(--forest);
  background: transparent;
  font-size: 8px;
}
.invitation-card > div:last-child button:first-child {
  color: #fff;
  background: var(--forest);
}
.verification-controls {
  margin-bottom: 18px;
  padding: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 18px;
  background: #f0efea;
}
.verification-controls > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.verification-controls > div > span {
  color: #646c66;
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.verification-controls select {
  padding-left: 12px;
}
.agent-document-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.agent-document-grid .agency-upload li {
  display: flex;
}
.agent-document-grid .agency-upload li small {
  color: #7b827d;
  font-size: 7px;
}
.agent-profile-preview {
  width: min(100%, 420px);
  margin: auto;
}
.agent-profile-preview article {
  padding: 34px 28px 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 29, 36, 0.14);
  text-align: center;
}
.agent-preview-photo {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 22px;
}
.agent-preview-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(0.8);
}
.agent-preview-photo > span {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--forest);
}
.agent-preview-photo svg {
  width: 12px;
}
.agent-profile-preview article > p {
  margin: 0;
  color: #8a908c;
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.agent-profile-preview h2 {
  margin: 8px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  font-weight: 400;
}
.agent-profile-preview article > strong {
  margin-top: 6px;
  display: block;
  color: var(--forest);
  font-size: 10px;
}
.agent-profile-preview article > small {
  margin-top: 8px;
  display: block;
  color: #818783;
  font-size: 8px;
}
.agent-profile-preview blockquote {
  margin: 20px 0 0;
  color: #6f7671;
  font-family: inherit;
  font-size: 9px;
  line-height: 1.6;
}
.agent-profile-preview article > div:not(.agent-preview-photo) {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}
.agent-profile-preview article > div span {
  padding: 6px 8px;
  color: #657068;
  background: #edf0eb;
  font-size: 7px;
}
.agent-profile-preview article > button {
  width: 100%;
  min-height: 43px;
  margin-top: 20px;
  border: 0;
  color: #fff;
  background: var(--forest);
  font-size: 9px;
}
.agent-profile-preview > p {
  color: #6b736d;
  font-size: 8px;
  text-align: center;
}
.mobile-agent-preview {
  display: none;
}
.agent-completion-status {
  max-width: 590px;
  margin: 28px auto 0;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: #ece9df;
  text-align: left;
}
.agent-completion-status > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.agent-completion-status > div > span {
  color: #747b76;
  font-size: 8px;
  text-transform: uppercase;
}
.agent-completion-status > p {
  grid-column: 1 / -1;
  margin: 0;
  color: #6f716b;
  font-size: 9px;
  line-height: 1.5;
}

/* Property owner onboarding */
.owner-onboarding-aside {
  background:
    linear-gradient(0deg, rgba(12, 17, 21, 0.8), rgba(12, 17, 21, 0.04) 66%),
    url('../../legacy/assets/briker-palermo.webp') center / cover;
}
.owner-step-content {
  width: min(100%, 720px);
}
.owner-trust-note {
  margin: 25px 0 0;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #646c66;
  background: #e7ebe5;
  font-size: 9px;
  line-height: 1.55;
}
.owner-trust-note svg {
  flex: 0 0 auto;
  color: var(--forest);
}
.owner-choice-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.owner-choice-fieldset > legend {
  margin-bottom: 17px;
  padding: 0;
  font-family: 'DM Serif Display', serif;
  font-size: 19px;
}
.owner-relationship-options {
  display: grid;
  gap: 9px;
}
.owner-relationship-options > label {
  position: relative;
  min-height: 92px;
  padding: 16px 52px 16px 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.owner-relationship-options > label:hover,
.owner-relationship-options > label.selected {
  border-color: var(--forest);
  background: #edf0eb;
}
.owner-relationship-options input,
.owner-objective-grid input {
  position: absolute;
  opacity: 0;
}
.owner-relationship-options i {
  position: absolute;
  top: 50%;
  left: 20px;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  color: var(--forest);
  border: 1px solid #bdc6be;
  transform: translateY(-50%);
}
.owner-relationship-options strong {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  font-weight: 400;
}
.owner-relationship-options span {
  margin-top: 5px;
  color: #797f7b;
  font-size: 9px;
}
.owner-relationship-options em,
.owner-objective-grid em,
.owner-publishing-options em {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translateY(-50%);
}
.owner-relationship-options .selected em,
.owner-objective-grid .selected em,
.owner-publishing-options .selected em {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}
.owner-relationship-options em svg,
.owner-objective-grid em svg,
.owner-publishing-options em svg {
  width: 12px;
}
.owner-verification-disclosure {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #c9d0ca;
  background: #f1f2ed;
}
.owner-verification-disclosure > div:first-child {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;
}
.owner-verification-disclosure > div:first-child > svg {
  color: var(--forest);
}
.owner-verification-disclosure p {
  margin: 0;
}
.owner-verification-disclosure strong,
.owner-verification-disclosure span {
  display: block;
}
.owner-verification-disclosure strong {
  font-family: 'DM Serif Display', serif;
  font-size: 16px;
  font-weight: 400;
}
.owner-verification-disclosure span,
.owner-verification-disclosure > p {
  margin-top: 5px;
  color: #717873;
  font-size: 8px;
  line-height: 1.5;
}
.owner-upload-grid {
  margin-top: 17px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.owner-private-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.owner-private-upload label {
  min-height: 80px;
  padding: 12px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px dashed #aab0ac;
  background: #fff;
  cursor: pointer;
}
.owner-private-upload input:focus-visible + label {
  border-color: var(--forest);
  outline: 2px solid rgba(84, 108, 96, 0.2);
  outline-offset: 2px;
}
.owner-private-upload label > svg {
  color: var(--forest);
}
.owner-private-upload strong,
.owner-private-upload small {
  display: block;
}
.owner-private-upload strong {
  font-size: 9px;
  font-weight: 500;
}
.owner-private-upload small {
  margin-top: 4px;
  color: #858b87;
  font-size: 7px;
}
.owner-private-upload em {
  color: var(--forest);
  font-size: 7px;
  font-style: normal;
  text-decoration: underline;
}
.owner-verification-disclosure > p {
  margin-top: 14px;
}
.owner-objective-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.owner-objective-grid label {
  position: relative;
  min-height: 140px;
  padding: 20px 48px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.owner-objective-grid label:hover,
.owner-objective-grid label.selected {
  border-color: var(--forest);
  background: #edf0eb;
}
.owner-objective-grid label > span {
  color: #9ba09d;
  font-size: 7px;
  letter-spacing: 0.1em;
}
.owner-objective-grid strong {
  margin-top: 12px;
  font-family: 'DM Serif Display', serif;
  font-size: 19px;
  font-weight: 400;
}
.owner-objective-grid p {
  margin: 6px 0 0;
  color: #767d78;
  font-size: 8px;
  line-height: 1.45;
}
.owner-selection-help {
  margin: 12px 0 0;
  color: #858b87;
  font-size: 8px;
}
.owner-publishing-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.owner-publishing-options > button {
  position: relative;
  min-height: 315px;
  padding: 28px 55px 25px 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  color: var(--midnight);
  background: #fff;
  text-align: left;
}
.owner-publishing-options > button:hover,
.owner-publishing-options > button.selected {
  border-color: var(--forest);
  background: #edf0eb;
}
.owner-publishing-options > button > span {
  width: 48px;
  height: 48px;
  margin-bottom: auto;
  display: grid;
  place-items: center;
  color: var(--forest);
  border: 1px solid #bfc7c0;
}
.owner-publishing-options small {
  margin-top: 32px;
  color: #818783;
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.owner-publishing-options h2 {
  margin: 11px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.05;
}
.owner-publishing-options p {
  margin: 13px 0 0;
  color: #747b76;
  font-size: 9px;
  line-height: 1.55;
}
.owner-publishing-options em {
  top: 26px;
  transform: none;
}
.owner-agency-cta {
  margin-top: 12px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #e6eae4;
}
.owner-agency-cta p {
  margin: 0;
  color: #6d746f;
  font-size: 9px;
  line-height: 1.5;
}
.owner-agency-cta button {
  min-height: 42px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  color: #fff;
  background: var(--forest);
  font-size: 8px;
  white-space: nowrap;
}
.owner-onboarding-aside.dashboarding {
  padding: clamp(25px, 3vw, 48px);
  align-items: center;
  color: var(--midnight);
  background: #dfe4dc;
}
.owner-dashboard-preview {
  width: min(100%, 500px);
  margin: auto;
  padding: 22px;
  background: #f8f7f3;
  box-shadow: 0 24px 70px rgba(23, 29, 36, 0.14);
}
.owner-dashboard-head {
  padding-bottom: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.owner-dashboard-head span,
.owner-dashboard-head strong {
  display: block;
}
.owner-dashboard-head span {
  color: #858b87;
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.owner-dashboard-head strong {
  margin-top: 5px;
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-weight: 400;
}
.owner-dashboard-head i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--forest);
  font-size: 8px;
  font-style: normal;
}
.owner-dashboard-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.owner-dashboard-stats article {
  min-height: 105px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.owner-dashboard-stats span,
.owner-dashboard-status span {
  color: #858b87;
  font-size: 7px;
  text-transform: uppercase;
}
.owner-dashboard-stats strong {
  margin-top: auto;
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-weight: 400;
}
.owner-dashboard-stats small {
  color: #858b87;
  font-size: 7px;
}
.owner-dashboard-status {
  margin-top: 8px;
  background: #e9ece7;
}
.owner-dashboard-status > div {
  min-height: 48px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #d4d9d3;
}
.owner-dashboard-status strong {
  color: var(--forest);
  font-size: 8px;
  font-weight: 500;
}
.owner-get-started {
  text-align: center;
}
.owner-get-started > .completion-mark {
  display: grid;
}
.owner-get-started h1 {
  margin: 16px 0 0;
  font-size: clamp(47px, 5.5vw, 74px);
  font-weight: 450;
  line-height: 0.95;
  letter-spacing: -0.06em;
}
.owner-get-started > p:not(.eyebrow) {
  max-width: 520px;
  margin: 22px auto 0;
  color: #6e756f;
  font-size: 11px;
  line-height: 1.65;
}
.owner-start-actions {
  max-width: 520px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.owner-start-actions .auth-primary {
  grid-column: 1 / -1;
}
.owner-start-actions > button:not(.auth-primary) {
  min-height: 49px;
  border: 1px solid var(--line);
  color: var(--forest);
  background: transparent;
  font-size: 9px;
}
.mobile-owner-dashboard {
  display: none;
}

@media (max-width: 1050px) {
  .agency-onboarding {
    grid-template-columns: minmax(600px, 1.4fr) minmax(300px, 0.6fr);
  }
  .agency-onboarding-main {
    padding-inline: 28px;
  }
  .agency-progress span {
    display: none;
  }
}

@media (max-width: 760px) {
  .agency-onboarding {
    display: block;
  }
  .agency-onboarding-main {
    padding: 0 18px 100px;
  }
  .agency-onboarding-header {
    min-height: 70px;
  }
  .agency-onboarding-header > div {
    gap: 12px;
  }
  .agency-onboarding-header > div > span {
    display: none;
  }
  .agency-progress {
    position: sticky;
    top: 0;
    z-index: 5;
    min-height: 46px;
    background: var(--ivory);
  }
  .agency-progress button {
    min-height: 46px;
    padding: 10px 4px;
    align-items: center;
  }
  .agency-progress button::after {
    right: 4px;
  }
  .agency-progress i {
    width: 22px;
    height: 22px;
  }
  .agency-step-content {
    padding: 40px 0 35px;
  }
  .agency-step-heading {
    margin-bottom: 30px;
  }
  .agency-step-heading h1 {
    font-size: 43px;
  }
  .agency-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .agency-span-full {
    grid-column: auto;
  }
  .agency-field input,
  .agency-field select,
  .agency-field textarea,
  .team-list select {
    font-size: 16px;
  }
  .agency-form-grid > .agency-field:has(textarea) {
    grid-row: auto;
  }
  .agency-onboarding-aside,
  .agency-step-actions {
    display: none;
  }
  .mobile-brand-preview {
    margin-top: 34px;
    padding: 18px;
    display: block;
    background: #dfe4dc;
  }
  .mobile-brand-preview .preview-cover {
    height: 140px;
  }
  .team-invite {
    padding: 16px;
    grid-template-columns: minmax(0, 1fr);
  }
  .agency-secondary {
    justify-content: center;
  }
  .team-list > div {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    padding-block: 10px;
  }
  .team-list select {
    grid-column: 2;
    width: 100%;
  }
  .team-list em {
    grid-column: 3;
  }
  .agency-review-list > div {
    min-height: 76px;
    grid-template-columns: minmax(95px, 0.7fr) 1fr auto;
    gap: 8px;
  }
  .verification-state-note,
  .completion-restriction {
    align-items: flex-start;
    flex-direction: column;
  }
  .agency-mobile-actions {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 72px;
    padding: 10px 18px max(10px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--line);
    background: rgba(245, 243, 238, 0.97);
    backdrop-filter: blur(12px);
  }
  .agency-mobile-actions > button:first-child {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--forest);
    background: transparent;
  }
  .agency-mobile-actions span {
    color: #858b87;
    font-size: 8px;
    text-align: center;
  }
  .agency-mobile-actions > button:last-child {
    min-height: 44px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    color: #fff;
    background: var(--forest);
    font-size: 9px;
  }
  .agency-mobile-actions button:disabled {
    opacity: 0.45;
  }
  .agency-completion {
    padding: 0 18px 40px;
    background: var(--ivory);
  }
  .agency-completion-top {
    min-height: 70px;
  }
  .agency-completion > section {
    padding-top: 48px;
  }
  .agency-completion h1 {
    font-size: 49px;
  }
  .completion-actions {
    grid-template-columns: 1fr;
  }
  .completion-actions .auth-primary {
    grid-column: auto;
  }
  .affiliation-options {
    grid-template-columns: minmax(0, 1fr);
  }
  .affiliation-options > button {
    min-height: 116px;
    padding: 17px 48px 17px 66px;
    justify-content: center;
  }
  .affiliation-options > button > i {
    position: absolute;
    top: 50%;
    left: 16px;
    margin: 0;
    transform: translateY(-50%);
  }
  .agent-affiliation-panel {
    padding: 14px;
  }
  .agency-search-box input,
  .verification-controls select {
    font-size: 16px;
  }
  .agency-search-results > button {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .agency-search-results em {
    grid-column: 2;
  }
  .affiliation-request,
  .invitation-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .affiliation-request {
    display: flex;
  }
  .invitation-token {
    grid-template-columns: minmax(0, 1fr);
  }
  .invitation-token > svg {
    display: none;
  }
  .invitation-card {
    display: flex;
  }
  .verification-controls,
  .agent-document-grid,
  .agent-completion-status {
    grid-template-columns: minmax(0, 1fr);
  }
  .agent-completion-status > p {
    grid-column: auto;
  }
  .mobile-agent-preview {
    margin-top: 34px;
    padding: 18px;
    display: block;
    background: #dfe4dc;
  }
  .agent-profile-preview article {
    padding-inline: 20px;
  }
  .agent-photo-upload {
    grid-template-columns: 62px 1fr;
  }
  .agent-photo-upload img {
    width: 62px;
    height: 62px;
  }
  .owner-upload-grid,
  .owner-objective-grid,
  .owner-publishing-options {
    grid-template-columns: minmax(0, 1fr);
  }
  .owner-relationship-options > label {
    min-height: 102px;
  }
  .owner-private-upload label {
    min-height: 84px;
  }
  .owner-objective-grid label {
    min-height: 125px;
  }
  .owner-publishing-options > button {
    min-height: 255px;
  }
  .owner-agency-cta {
    align-items: stretch;
    flex-direction: column;
  }
  .owner-agency-cta button {
    justify-content: center;
  }
  .owner-step-content:has(.owner-get-started) {
    padding-bottom: 40px;
  }
  .owner-get-started h1 {
    font-size: 48px;
  }
  .owner-start-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .owner-start-actions .auth-primary {
    grid-column: auto;
  }
  .mobile-owner-dashboard {
    margin-top: 32px;
    padding: 14px;
    display: block;
    background: #dfe4dc;
  }
  .owner-dashboard-preview {
    padding: 16px;
  }
}

/* Unified account and workspace experience */
.workspace-app {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  color: var(--midnight);
  background: #efeee9;
}
.workspace-sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 100svh;
  border-right: 1px solid var(--line);
  background: var(--ivory);
}
.workspace-sidebar-inner {
  height: 100%;
  padding: 0 14px 15px;
  display: flex;
  flex-direction: column;
}
.workspace-brand-row {
  min-height: 72px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}
.workspace-brand-row > button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--midnight);
  background: transparent;
}
.workspace-switcher {
  position: relative;
  margin-top: 14px;
}
.workspace-switcher-trigger {
  width: 100%;
  min-height: 68px;
  padding: 10px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  color: var(--midnight);
  background: #fff;
  text-align: left;
}
.workspace-switcher-trigger:hover {
  border-color: #a5aaa6;
}
.workspace-switcher-trigger > svg {
  width: 14px;
  color: #858b87;
  transform: rotate(90deg);
}
.workspace-switcher-trigger strong,
.workspace-switcher-trigger small,
.workspace-switcher-menu strong,
.workspace-switcher-menu small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-switcher-trigger strong,
.workspace-switcher-menu strong {
  font-size: 10px;
  font-weight: 500;
}
.workspace-switcher-trigger small,
.workspace-switcher-menu small {
  margin-top: 4px;
  color: #858b87;
  font-size: 7px;
}
.workspace-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  object-fit: cover;
  border-radius: 8px;
  font-family: 'DM Serif Display', serif;
  font-size: 12px;
}
.workspace-mark.compact {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  font-size: 9px;
}
.workspace-switcher-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  left: 0;
  width: 360px;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 22px 60px rgba(23, 29, 36, 0.17);
}
.workspace-menu-head {
  padding: 10px 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.workspace-menu-head span {
  color: #666d68;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.workspace-menu-head small {
  margin: 0;
}
.workspace-switcher-menu > button {
  width: 100%;
  min-height: 56px;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  border: 0;
  color: var(--midnight);
  background: transparent;
  text-align: left;
}
.workspace-switcher-menu > button:hover,
.workspace-switcher-menu > button.active {
  background: #edf0eb;
}
.workspace-switcher-menu > button > svg {
  width: 14px;
  color: var(--forest);
}
.workspace-switcher-menu > .workspace-add {
  min-height: 52px;
  margin-top: 7px;
  grid-template-columns: 32px 1fr;
  border-top: 1px solid var(--line-soft);
}
.workspace-add > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--forest);
  border: 1px dashed #aab0ac;
}
.workspace-nav {
  margin-top: 25px;
  flex: 1;
}
.workspace-nav > span {
  padding: 0 10px;
  color: #9a9f9c;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.workspace-nav > button,
.workspace-sidebar-footer > button {
  width: 100%;
  min-height: 42px;
  margin-top: 3px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 9px;
  border: 0;
  color: #626a64;
  background: transparent;
  font-size: 9px;
  text-align: left;
}
.workspace-nav > button:hover:not(:disabled),
.workspace-nav > button.active,
.workspace-sidebar-footer > button:hover {
  color: var(--midnight);
  background: #e6e9e3;
}
.workspace-nav > button.active {
  font-weight: 500;
}
.workspace-nav > button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
.workspace-nav > button > svg,
.workspace-sidebar-footer > button > svg {
  width: 16px;
}
.workspace-nav > button > svg:last-child {
  width: 12px;
}
.workspace-sidebar-footer {
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.workspace-sidebar-footer > div {
  min-height: 54px;
  margin-top: 8px;
  padding: 8px;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 9px;
  background: #ebece7;
}
.workspace-sidebar-footer strong,
.workspace-sidebar-footer small {
  display: block;
}
.workspace-sidebar-footer strong {
  font-size: 9px;
  font-weight: 500;
}
.workspace-sidebar-footer small {
  margin-top: 3px;
  color: #858b87;
  font-size: 7px;
}
.workspace-main {
  min-width: 0;
}
.workspace-mobile-header {
  display: none;
}
.workspace-topbar {
  min-height: 106px;
  padding: 22px clamp(28px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 243, 238, 0.88);
  backdrop-filter: blur(18px);
}
.workspace-topbar p {
  margin: 0 0 7px;
  color: #7c837e;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.workspace-topbar h1 {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  font-weight: 400;
}
.workspace-topbar > div:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.workspace-topbar > div:last-child > button,
.workspace-card-head > button {
  min-height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  color: #fff;
  background: var(--forest);
  font-size: 8px;
}
.workspace-verification {
  width: max-content;
  padding: 7px 9px;
  display: inline-block;
  color: #27282a;
  border: 1px solid #c1c2c4;
  background: #e2e9e2;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.workspace-verification.pending {
  color: #775f3f;
  border-color: #d6c39e;
  background: #f1e9d7;
}
.workspace-verification.more-info {
  color: #7a493e;
  border-color: #d6b9b1;
  background: #f0dfda;
}
.workspace-content {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 34px clamp(22px, 4vw, 60px) 60px;
}
.workspace-notice {
  min-height: 44px;
  margin-bottom: 16px;
  padding: 8px 8px 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #2a2b2d;
  border: 1px solid #c3cec4;
  background: #e5eae4;
  font-size: 9px;
}
.workspace-notice button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--forest);
  background: transparent;
}
.workspace-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.workspace-metrics article {
  min-height: 160px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.workspace-metrics span {
  color: #7c837e;
  font-size: 8px;
  letter-spacing: 0.04em;
}
.workspace-metrics strong {
  margin-top: auto;
  font-family: 'DM Serif Display', serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}
.workspace-metrics small {
  margin-top: 8px;
  color: #8a908c;
  font-size: 8px;
}
.workspace-overview-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.5fr);
  gap: 12px;
}
.workspace-activity,
.workspace-permission-card,
.workspace-records,
.workspace-settings-layout {
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.workspace-card-head {
  min-height: 108px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.workspace-card-head span {
  color: #858b87;
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.workspace-card-head h2 {
  margin: 7px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.workspace-card-head > button:not(:has(svg)) {
  padding: 0;
  color: var(--forest);
  background: transparent;
  text-decoration: underline;
}
.workspace-activity-row {
  min-height: 72px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 105px 1fr 18px;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.workspace-activity-row span {
  color: #8a908c;
  font-size: 8px;
}
.workspace-activity-row p {
  margin: 0;
  font-size: 10px;
}
.workspace-activity-row svg {
  width: 13px;
  color: #929793;
}
.workspace-permission-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.workspace-permission-card > span {
  width: 42px;
  height: 42px;
  margin-bottom: auto;
  display: grid;
  place-items: center;
  color: var(--forest);
  border: 1px solid #bfc7c0;
}
.workspace-permission-card .eyebrow {
  margin: 30px 0 8px;
  color: #858b87;
  font-size: 7px;
}
.workspace-permission-card h3 {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: 25px;
  font-weight: 400;
}
.workspace-permission-card > p:not(.eyebrow) {
  margin: 12px 0 20px;
  color: #717873;
  font-size: 9px;
  line-height: 1.55;
}
.workspace-record-table > button {
  width: 100%;
  min-height: 74px;
  padding: 10px 20px 10px 22px;
  display: grid;
  grid-template-columns: 1fr auto 18px;
  align-items: center;
  gap: 18px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--midnight);
  background: transparent;
  text-align: left;
}
.workspace-record-table > button:hover {
  background: #eef0eb;
}
.workspace-record-table strong,
.workspace-record-table small {
  display: block;
}
.workspace-record-table strong {
  font-size: 10px;
  font-weight: 500;
}
.workspace-record-table small {
  margin-top: 5px;
  color: #858b87;
  font-size: 8px;
}
.workspace-record-table em {
  padding: 6px 8px;
  color: #657068;
  background: #e6eae4;
  font-size: 7px;
  font-style: normal;
}
.workspace-record-table svg {
  width: 13px;
  color: #929793;
}
.workspace-settings-layout {
  min-height: 660px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}
.workspace-settings-layout > nav {
  padding: 24px 12px;
  border-right: 1px solid var(--line);
}
.workspace-settings-layout > nav > p {
  padding: 0 10px;
  color: #8b918d;
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.workspace-settings-layout > nav > button {
  width: 100%;
  min-height: 43px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  color: #6d746f;
  background: transparent;
  font-size: 8px;
  text-align: left;
}
.workspace-settings-layout > nav > button:hover,
.workspace-settings-layout > nav > button.active {
  color: var(--midnight);
  background: #e8ebe5;
}
.workspace-settings-layout > nav svg {
  width: 15px;
}
.workspace-settings-layout > section {
  min-width: 0;
  padding: 40px clamp(24px, 5vw, 70px);
}
.workspace-settings-heading {
  margin-bottom: 30px;
}
.workspace-settings-heading h2 {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.workspace-settings-heading p {
  max-width: 590px;
  margin: 10px 0 0;
  color: #747b76;
  font-size: 9px;
  line-height: 1.55;
}
.workspace-settings-form > div:nth-child(2) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.workspace-settings-form label {
  color: #676e69;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.workspace-settings-form input {
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  outline-color: var(--forest);
  background: #fff;
  font-size: 14px;
  text-transform: none;
}
.workspace-settings-form > button {
  min-height: 46px;
  margin-top: 24px;
  padding: 0 16px;
  border: 0;
  color: #fff;
  background: var(--forest);
  font-size: 9px;
}
.workspace-settings-stack > article,
.workspace-toggle {
  min-height: 72px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.workspace-settings-stack > article > span:not(.workspace-mark),
.workspace-toggle > span {
  margin-right: auto;
}
.workspace-settings-stack article strong,
.workspace-settings-stack article small,
.workspace-toggle strong,
.workspace-toggle small {
  display: block;
}
.workspace-settings-stack article strong,
.workspace-toggle strong {
  font-size: 9px;
  font-weight: 500;
}
.workspace-settings-stack article small,
.workspace-toggle small {
  margin-top: 4px;
  color: #858b87;
  font-size: 8px;
}
.workspace-settings-stack article > button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--forest);
  background: transparent;
  font-size: 8px;
}
.workspace-toggle {
  position: relative;
  cursor: pointer;
}
.workspace-toggle input {
  position: absolute;
  opacity: 0;
}
.workspace-toggle i {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 20px;
  background: #cfd2ce;
}
.workspace-toggle i::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.workspace-toggle input:checked + i {
  background: var(--forest);
}
.workspace-toggle input:checked + i::after {
  transform: translateX(16px);
}
.workspace-toggle input:focus-visible + i {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}
.workspace-add-role {
  max-width: 680px;
}
.workspace-add-role > button {
  width: 100%;
  min-height: 88px;
  padding: 14px;
  display: grid;
  grid-template-columns: 44px 1fr 18px;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  color: var(--midnight);
  background: #fff;
  text-align: left;
}
.workspace-add-role > button + button {
  margin-top: 8px;
}
.workspace-add-role > button:hover {
  border-color: var(--forest);
  background: #edf0eb;
}
.workspace-add-role > button > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--forest);
  border: 1px solid #c0c8c1;
}
.workspace-add-role strong,
.workspace-add-role small {
  display: block;
}
.workspace-add-role strong {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  font-weight: 400;
}
.workspace-add-role small {
  margin-top: 5px;
  color: #7a817c;
  font-size: 8px;
}
.workspace-add-role > button > svg {
  width: 13px;
  color: #929793;
}
.workspace-drawer-backdrop {
  display: none;
}

@media (max-width: 1050px) {
  .workspace-app {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .workspace-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .workspace-switcher-menu {
    width: 330px;
  }
}

@media (max-width: 760px) {
  .workspace-app {
    display: block;
  }
  .workspace-sidebar {
    display: none;
  }
  .workspace-mobile-header {
    position: sticky;
    top: 0;
    z-index: 15;
    min-height: 66px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background: rgba(245, 243, 238, 0.95);
    backdrop-filter: blur(15px);
  }
  .workspace-mobile-header .logo {
    margin: auto;
  }
  .workspace-mobile-header > button {
    width: 40px;
    height: 40px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--midnight);
    background: transparent;
  }
  .workspace-mobile-header > button:last-child {
    justify-self: end;
  }
  .workspace-drawer-backdrop {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: block;
    background: rgba(12, 17, 21, 0.45);
  }
  .workspace-drawer-backdrop > aside {
    width: min(88vw, 340px);
    height: 100%;
    background: var(--ivory);
    box-shadow: 20px 0 50px rgba(12, 17, 21, 0.2);
  }
  .workspace-sidebar-inner.mobile {
    padding-inline: 14px;
  }
  .workspace-sidebar-inner.mobile .workspace-switcher-menu {
    position: static;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
  }
  .workspace-sidebar-inner.mobile:has(.workspace-switcher-menu) .workspace-nav {
    display: none;
  }
  .workspace-topbar {
    min-height: 98px;
    padding: 18px;
  }
  .workspace-topbar h1 {
    font-size: 26px;
  }
  .workspace-topbar > div:last-child .workspace-verification {
    display: none;
  }
  .workspace-topbar > div:last-child > button {
    min-height: 40px;
    padding: 0 11px;
  }
  .workspace-content {
    padding: 18px 14px 40px;
  }
  .workspace-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .workspace-metrics article {
    min-height: 135px;
    padding: 14px;
  }
  .workspace-metrics strong {
    font-size: 34px;
  }
  .workspace-overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .workspace-activity-row {
    min-height: 78px;
    padding-inline: 15px;
    grid-template-columns: 75px 1fr 14px;
    gap: 10px;
  }
  .workspace-permission-card > span {
    margin-bottom: 20px;
  }
  .workspace-permission-card .eyebrow {
    margin-top: 10px;
  }
  .workspace-card-head {
    min-height: 96px;
    padding: 17px 15px;
  }
  .workspace-card-head h2 {
    font-size: 22px;
  }
  .workspace-record-table > button {
    min-height: 80px;
    padding-inline: 15px;
    grid-template-columns: minmax(0, 1fr) auto 14px;
    gap: 8px;
  }
  .workspace-settings-layout {
    min-height: 0;
    display: block;
  }
  .workspace-settings-layout > nav {
    padding: 10px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }
  .workspace-settings-layout > nav > p {
    display: none;
  }
  .workspace-settings-layout > nav > button {
    width: max-content;
    min-width: max-content;
    min-height: 40px;
    padding-inline: 11px;
    border: 1px solid var(--line);
  }
  .workspace-settings-layout > section {
    padding: 28px 16px;
  }
  .workspace-settings-heading h2 {
    font-size: 30px;
  }
  .workspace-settings-form > div:nth-child(2) {
    grid-template-columns: minmax(0, 1fr);
  }
  .workspace-settings-form input {
    font-size: 16px;
  }
  .workspace-settings-stack > article {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .workspace-settings-stack > article > span:not(.workspace-mark) {
    min-width: calc(100% - 50px);
  }
}

@media (max-width: 420px) {
  .workspace-topbar > div:last-child > button {
    width: 40px;
    padding: 0;
    font-size: 0;
    justify-content: center;
  }
  .workspace-topbar > div:last-child > button svg {
    margin: 0;
  }
  .workspace-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Unified property listing wizard */
.listing-wizard {
  min-height: 100svh;
  color: var(--midnight);
  background: var(--ivory);
}
.listing-wizard-header {
  min-height: 72px;
  padding: 0 clamp(20px, 3.5vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.listing-wizard-header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.listing-wizard-header > div > span {
  margin-right: 8px;
  color: #858b87;
  font-size: 8px;
}
.listing-wizard-header button {
  min-height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  color: var(--forest);
  background: transparent;
  font-size: 8px;
}
.listing-wizard-progress {
  min-height: 74px;
  padding: 0 clamp(20px, 3.5vw, 52px);
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.listing-wizard-progress button {
  position: relative;
  min-width: 0;
  padding: 14px 6px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 0;
  color: #9a9f9c;
  background: transparent;
  text-align: left;
}
.listing-wizard-progress button::after {
  content: '';
  position: absolute;
  right: 6px;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
}
.listing-wizard-progress button.active,
.listing-wizard-progress button.complete {
  color: var(--forest);
}
.listing-wizard-progress button.active::after,
.listing-wizard-progress button.complete::after {
  background: var(--forest);
}
.listing-wizard-progress i {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 7px;
  font-style: normal;
}
.listing-wizard-progress i svg {
  width: 11px;
}
.listing-wizard-progress span {
  max-width: 96px;
  font-size: 7px;
  line-height: 1.25;
}
.listing-wizard-layout {
  display: grid;
  grid-template-columns: minmax(620px, 1.22fr) minmax(400px, 0.78fr);
}
.listing-editor {
  min-width: 0;
}
.listing-editor-content {
  width: min(100% - 50px, 780px);
  min-height: calc(100svh - 146px);
  margin: 0 auto;
  padding: 58px 0 70px;
  outline: 0;
}
.listing-editor-content .agency-step-heading h1 {
  font-size: clamp(42px, 4.4vw, 62px);
}
.listing-field {
  position: relative;
}
.listing-field > span {
  gap: 8px;
}
.listing-field > small {
  position: absolute;
  right: 4px;
  bottom: 5px;
  color: #9a9f9c;
  font-size: 7px;
}
.listing-card-options {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}
.listing-card-options legend {
  margin-bottom: 10px;
  padding: 0;
  color: #646c66;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.listing-card-options > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.listing-card-options label {
  position: relative;
  min-height: 108px;
  padding: 17px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.listing-card-options label:hover,
.listing-card-options label.selected {
  border-color: var(--forest);
  background: #edf0eb;
}
.listing-card-options input {
  position: absolute;
  opacity: 0;
}
.listing-card-options strong {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  font-weight: 400;
}
.listing-card-options label > span {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.listing-card-options .selected > span {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}
.listing-card-options svg {
  width: 11px;
}
.listing-inline-check {
  min-height: 68px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  background: #f4f3ef;
  cursor: pointer;
}
.listing-inline-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--forest);
}
.listing-inline-check strong,
.listing-inline-check small {
  display: block;
}
.listing-inline-check strong {
  font-size: 9px;
  font-weight: 500;
}
.listing-inline-check small {
  margin-top: 4px;
  color: #858b87;
  font-size: 8px;
}
.listing-location-map {
  position: relative;
  height: 200px;
  overflow: hidden;
  background:
    linear-gradient(28deg, transparent 49%, rgba(84, 108, 96, 0.11) 50% 51%, transparent 52%),
    linear-gradient(-35deg, transparent 49%, rgba(84, 108, 96, 0.12) 50% 51%, transparent 52%),
    #e6e9e3;
  background-size:
    74px 74px,
    92px 92px;
}
.listing-location-map > span {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 8px 10px;
  color: #fff;
  background: var(--forest);
  font-size: 8px;
  transform: translate(-50%, -50%);
}
.listing-location-map > i {
  position: absolute;
  top: calc(50% + 28px);
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--forest);
  transform: translateX(-50%);
}
.listing-location-map > p {
  position: absolute;
  right: 12px;
  bottom: 10px;
  margin: 0;
  color: #737a75;
  font-size: 7px;
}
.listing-amenities > p {
  margin: 8px 0 20px;
  color: #7a817c;
  font-size: 9px;
  line-height: 1.5;
}
.listing-amenities > div {
  gap: 9px;
}
.listing-amenities label {
  min-height: 46px;
  padding-inline: 14px;
  font-size: 9px;
}
.listing-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.listing-media-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.listing-media-upload label {
  min-height: 130px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  border: 1px dashed #aab0ac;
  background: #faf9f6;
  cursor: pointer;
}
.listing-media-upload label:hover,
.listing-media-upload input:focus-visible + label {
  border-color: var(--forest);
  outline: 2px solid rgba(84, 108, 96, 0.18);
  outline-offset: 2px;
}
.listing-media-upload svg {
  margin-bottom: auto;
  color: var(--forest);
}
.listing-media-upload strong {
  font-family: 'DM Serif Display', serif;
  font-size: 15px;
  font-weight: 400;
}
.listing-media-upload span {
  margin-top: 5px;
  color: #858b87;
  font-size: 7px;
}
.listing-media-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.listing-media-list > div:first-child {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.listing-media-list > div:first-child span {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
}
.listing-media-list > div:first-child small {
  color: #858b87;
  font-size: 7px;
}
.listing-media-list article {
  min-height: 74px;
  padding: 8px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #fff;
}
.listing-media-list article:last-child {
  border-bottom: 1px solid var(--line);
}
.listing-media-list article.cover {
  border-left: 2px solid var(--forest);
  background: #edf0eb;
}
.listing-media-list article > img,
.listing-media-list article > span {
  width: 58px;
  height: 52px;
  object-fit: cover;
}
.listing-media-list article > span {
  display: grid;
  place-items: center;
  color: var(--forest);
  background: #e4e8e2;
}
.listing-media-list article strong,
.listing-media-list article small {
  display: block;
}
.listing-media-list article strong {
  overflow: hidden;
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.listing-media-list article small {
  margin-top: 5px;
  color: #858b87;
  font-size: 7px;
}
.listing-media-list article > button {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  color: var(--forest);
  background: transparent;
  font-size: 7px;
}
.listing-order-controls {
  display: flex;
  gap: 2px;
}
.listing-order-controls button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  color: #747b76;
  background: transparent;
}
.listing-order-controls button:disabled {
  opacity: 0.25;
}
.listing-price-summary {
  padding: 20px;
  background: #e8ebe5;
}
.listing-price-summary span,
.listing-price-summary strong {
  display: block;
}
.listing-price-summary span {
  color: #747b76;
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.listing-price-summary strong {
  margin-top: 8px;
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-weight: 400;
}
.listing-price-summary p {
  margin: 8px 0 0;
  color: #7a817c;
  font-size: 8px;
}
.listing-ai-panel {
  margin-bottom: 22px;
  padding: 18px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #c5cec6;
  background: #e7ebe5;
}
.listing-ai-panel > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--forest);
  border: 1px solid #b7c2b9;
}
.listing-ai-panel strong {
  font-family: 'DM Serif Display', serif;
  font-size: 16px;
  font-weight: 400;
}
.listing-ai-panel p {
  margin: 5px 0 0;
  color: #727974;
  font-size: 8px;
  line-height: 1.45;
}
.listing-ai-panel button {
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--forest);
  color: var(--forest);
  background: transparent;
  font-size: 8px;
}
.listing-copy-fields {
  display: grid;
  gap: 18px;
}
.listing-publisher-card {
  min-height: 114px;
  margin-bottom: 20px;
  padding: 18px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.listing-publisher-card > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--forest);
  font-family: 'DM Serif Display', serif;
  font-size: 16px;
}
.listing-publisher-card small {
  color: #858b87;
  font-size: 7px;
  text-transform: uppercase;
}
.listing-publisher-card h2 {
  margin: 5px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
}
.listing-publisher-card p {
  margin: 5px 0 0;
  color: #747b76;
  font-size: 8px;
}
.listing-publisher-card em {
  padding: 7px 9px;
  color: #27282a;
  border: 1px solid #c1c2c4;
  background: #e2e9e2;
  font-size: 7px;
  font-style: normal;
  text-transform: uppercase;
}
.listing-publisher-card em.pending {
  color: #775f3f;
  border-color: #d6c39e;
  background: #f1e9d7;
}
.listing-identity-note {
  margin: 18px 0;
  padding: 15px;
  display: flex;
  gap: 10px;
  color: #2a2b2d;
  border-left: 2px solid var(--forest);
  background: #e5eae4;
}
.listing-identity-note.warning {
  color: #745d3f;
  border-color: #b89061;
  background: #ede6d9;
}
.listing-identity-note p {
  margin: 0;
  font-size: 9px;
  line-height: 1.55;
}
.listing-contact-options {
  margin-top: 24px;
}
.listing-review-layout {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 12px;
}
.listing-review-layout > section {
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
}
.listing-review-layout h2 {
  margin: 0 0 22px;
  font-family: 'DM Serif Display', serif;
  font-size: 27px;
  font-weight: 400;
}
.listing-checklist button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 9px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  color: var(--midnight);
  background: transparent;
  text-align: left;
}
.listing-checklist button > span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  color: #9a9f9c;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 8px;
}
.listing-checklist button.complete > span {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}
.listing-checklist strong {
  font-size: 8px;
  font-weight: 500;
}
.listing-checklist small {
  color: #8a908c;
  font-size: 7px;
}
.listing-review-layout > aside {
  padding: 20px;
  color: #fff;
  background: var(--midnight);
}
.listing-review-layout > aside span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 7px;
  text-transform: uppercase;
}
.listing-review-layout > aside strong {
  margin-top: 55px;
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 25px;
  font-weight: 400;
}
.listing-review-layout > aside p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  line-height: 1.55;
}
.listing-submit-panel {
  margin: 14px 0;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #e8ebe5;
}
.listing-submit-panel > div {
  display: flex;
  gap: 10px;
}
.listing-submit-panel p {
  margin: 0;
}
.listing-submit-panel strong,
.listing-submit-panel span {
  display: block;
}
.listing-submit-panel strong {
  font-size: 9px;
}
.listing-submit-panel span {
  margin-top: 4px;
  color: #737a75;
  font-size: 8px;
}
.listing-submit-panel > button {
  min-height: 42px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  color: #fff;
  background: var(--forest);
  font-size: 8px;
  white-space: nowrap;
}
.listing-submit-panel > button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.listing-step-actions {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
}
.listing-step-actions button {
  min-height: 50px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  color: var(--forest);
  background: transparent;
  font-size: 9px;
}
.listing-step-actions button:last-child:not(:first-child) {
  color: #fff;
  background: var(--forest);
}
.listing-preview-pane {
  position: sticky;
  top: 0;
  min-width: 0;
  height: calc(100svh - 146px);
  padding: clamp(24px, 3vw, 46px);
  background: #dfe4dc;
  overflow-y: auto;
}
.listing-live-preview {
  width: min(100%, 490px);
  margin: auto;
}
.listing-preview-toolbar {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.listing-preview-toolbar span {
  color: #69716b;
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.listing-preview-toolbar em {
  padding: 6px 8px;
  color: #2f3032;
  background: rgba(255, 255, 255, 0.55);
  font-size: 7px;
  font-style: normal;
}
.listing-live-preview > article {
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 29, 36, 0.15);
}
.listing-preview-image {
  position: relative;
  aspect-ratio: 1.46;
  background: #d7dbd4;
}
.listing-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-preview-image > div {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--forest);
}
.listing-preview-image > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 8px;
  color: #fff;
  background: rgba(12, 17, 21, 0.65);
  font-size: 7px;
}
.listing-preview-body {
  padding: 22px;
}
.listing-preview-body > p:first-child {
  margin: 0;
  color: #858b87;
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.listing-preview-body h2 {
  margin: 8px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.05;
}
.listing-preview-body > strong {
  margin-top: 13px;
  display: block;
  color: var(--forest);
  font-size: 14px;
}
.listing-preview-specs {
  margin-top: 18px;
  padding: 12px 0;
  display: flex;
  gap: 12px;
  border-block: 1px solid var(--line-soft);
}
.listing-preview-specs span {
  font-size: 8px;
}
.listing-preview-body address {
  margin-top: 14px;
  color: #747b76;
  font-size: 8px;
  font-style: normal;
}
.listing-preview-description {
  max-height: 65px;
  margin: 14px 0 0;
  overflow: hidden;
  color: #747b76;
  font-size: 8px;
  line-height: 1.55;
}
.listing-preview-publisher {
  margin-top: 18px;
  padding-top: 16px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line-soft);
}
.listing-preview-publisher > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--forest);
  font-family: 'DM Serif Display', serif;
  font-size: 9px;
}
.listing-preview-publisher small,
.listing-preview-publisher strong,
.listing-preview-publisher em {
  display: block;
}
.listing-preview-publisher small {
  color: #8a908c;
  font-size: 6px;
  text-transform: uppercase;
}
.listing-preview-publisher strong {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 500;
}
.listing-preview-publisher em {
  margin-top: 3px;
  color: #747b76;
  font-size: 7px;
  font-style: normal;
}
.listing-mobile-preview-button,
.listing-mobile-preview {
  display: none;
}

@media (max-width: 1050px) {
  .listing-wizard-layout {
    grid-template-columns: minmax(560px, 1.3fr) minmax(330px, 0.7fr);
  }
  .listing-wizard-progress span {
    display: none;
  }
  .listing-editor-content {
    width: min(100% - 36px, 760px);
  }
}

@media (max-width: 760px) {
  .listing-wizard-header {
    min-height: 66px;
    padding-inline: 15px;
  }
  .listing-wizard-header > div > span,
  .listing-wizard-header button:first-of-type {
    display: none;
  }
  .listing-wizard-header button:last-child {
    width: 40px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }
  .listing-wizard-progress {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 46px;
    padding: 0 12px;
    background: var(--ivory);
  }
  .listing-wizard-progress button {
    padding: 10px 2px;
    align-items: center;
  }
  .listing-wizard-progress i {
    width: 21px;
    height: 21px;
  }
  .listing-wizard-layout {
    display: block;
  }
  .listing-preview-pane {
    display: none;
  }
  .listing-editor-content {
    width: auto;
    min-height: 0;
    padding: 28px 17px 100px;
  }
  .listing-mobile-preview-button {
    width: 100%;
    min-height: 44px;
    margin-bottom: 28px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--line);
    color: var(--forest);
    background: transparent;
    font-size: 8px;
  }
  .listing-editor-content .agency-step-heading h1 {
    font-size: 43px;
  }
  .listing-field input,
  .listing-field select,
  .listing-field textarea {
    font-size: 16px;
  }
  .listing-card-options > div,
  .listing-upload-grid,
  .listing-review-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .listing-card-options label {
    min-height: 84px;
  }
  .listing-media-upload label {
    min-height: 105px;
  }
  .listing-media-list > div:first-child {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
  .listing-media-list article {
    grid-template-columns: 50px minmax(0, 1fr) auto;
  }
  .listing-media-list article > img,
  .listing-media-list article > span {
    width: 50px;
    height: 48px;
  }
  .listing-media-list article > button {
    grid-column: 2;
    width: max-content;
  }
  .listing-order-controls {
    grid-row: 1 / 3;
    grid-column: 3;
    flex-direction: column;
  }
  .listing-ai-panel {
    grid-template-columns: 32px 1fr;
  }
  .listing-ai-panel button {
    grid-column: 1 / -1;
  }
  .listing-publisher-card {
    grid-template-columns: 48px 1fr;
  }
  .listing-publisher-card > em {
    grid-column: 2;
    width: max-content;
  }
  .listing-review-layout > aside strong {
    margin-top: 25px;
  }
  .listing-submit-panel {
    align-items: stretch;
    flex-direction: column;
  }
  .listing-submit-panel > button {
    justify-content: center;
  }
  .listing-step-actions {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 70px;
    margin: 0;
    padding: 10px 17px max(10px, env(safe-area-inset-bottom));
    grid-template-columns: 44px 1fr;
    border-top: 1px solid var(--line);
    background: rgba(245, 243, 238, 0.97);
    backdrop-filter: blur(12px);
  }
  .listing-step-actions button:first-child {
    width: 44px;
    padding: 0;
    justify-content: center;
    border: 1px solid var(--line);
    font-size: 0;
  }
  .listing-mobile-preview {
    position: fixed;
    z-index: 60;
    inset: 0;
    padding: 0 15px 30px;
    display: block;
    background: #dfe4dc;
    overflow-y: auto;
  }
  .listing-mobile-preview > header {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .listing-mobile-preview > header span {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .listing-mobile-preview > header button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--midnight);
    background: transparent;
  }
}

/* Briker Collect */
.collect-app {
  --collect-sidebar: 264px;
  min-height: 100svh;
  display: grid;
  grid-template-columns: var(--collect-sidebar) minmax(0, 1fr);
  color: var(--midnight);
  background: #efeee9;
  font-variant-numeric: tabular-nums;
  transition: grid-template-columns 0.25s ease;
}
.collect-app.collapsed {
  --collect-sidebar: 78px;
}
.collect-sidebar {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 100svh;
  border-right: 1px solid var(--line);
  background: var(--ivory);
  overflow: visible;
}
.collect-sidebar-inner {
  height: 100%;
  padding: 0 13px 13px;
  display: flex;
  flex-direction: column;
}
.collect-brand {
  min-height: 68px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}
.collect-brand > button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--midnight);
  background: transparent;
}
.collect-switcher {
  margin-top: 12px;
}
.collect-mark {
  background: var(--midnight);
}
.collect-alt-mark {
  background: var(--forest);
}
.collect-nav {
  margin-top: 20px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.collect-nav > span {
  padding: 0 9px;
  color: #969b98;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.collect-nav > button,
.collect-sidebar-foot > button {
  position: relative;
  width: 100%;
  min-height: 39px;
  margin-top: 2px;
  padding: 0 9px;
  display: grid;
  grid-template-columns: 19px 1fr auto;
  align-items: center;
  gap: 9px;
  border: 0;
  color: #626a64;
  background: transparent;
  font-size: 8px;
  text-align: left;
}
.collect-nav > button:hover,
.collect-nav > button.active,
.collect-sidebar-foot > button:hover {
  color: var(--midnight);
  background: #e4e7e1;
}
.collect-nav > button.active {
  font-weight: 500;
}
.collect-nav svg,
.collect-sidebar-foot svg {
  width: 15px;
}
.collect-nav i {
  color: #8b918d;
}
.collect-nav i svg {
  width: 11px;
}
.collect-nav em {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--line-soft);
}
.collect-nav button:has(em) {
  margin-bottom: 15px;
}
.collect-sidebar-foot {
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}
.collect-sidebar-foot > div {
  min-height: 52px;
  margin-top: 7px;
  padding: 8px;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 9px;
  background: #e8eae5;
}
.collect-sidebar-foot p {
  margin: 0;
}
.collect-sidebar-foot strong,
.collect-sidebar-foot small {
  display: block;
}
.collect-sidebar-foot strong {
  font-size: 8px;
  font-weight: 500;
}
.collect-sidebar-foot small {
  margin-top: 3px;
  color: #858b87;
  font-size: 7px;
}
.collect-app.collapsed .collect-brand .logo span,
.collect-app.collapsed .workspace-switcher-trigger > span:nth-child(2),
.collect-app.collapsed .workspace-switcher-trigger > svg,
.collect-app.collapsed .collect-nav > span,
.collect-app.collapsed .collect-nav button > span,
.collect-app.collapsed .collect-nav button > i,
.collect-app.collapsed .collect-sidebar-foot button > span,
.collect-app.collapsed .collect-sidebar-foot p {
  display: none;
}
.collect-app.collapsed .collect-brand .logo {
  width: 40px;
  overflow: hidden;
}
.collect-app.collapsed .collect-brand .logo svg {
  flex: 0 0 auto;
}
.collect-app.collapsed .workspace-switcher-trigger {
  grid-template-columns: 38px;
  justify-content: center;
  padding: 8px;
}
.collect-app.collapsed .collect-nav > button,
.collect-app.collapsed .collect-sidebar-foot > button {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 0;
}
.collect-app.collapsed .collect-sidebar-foot > div {
  grid-template-columns: 32px;
  justify-content: center;
}
.collect-app.collapsed .workspace-switcher-menu {
  left: calc(100% + 8px);
  top: 0;
}
.collect-main {
  min-width: 0;
}
.collect-mobile-header {
  display: none;
}
.collect-topbar {
  min-height: 104px;
  padding: 20px clamp(24px, 3.5vw, 50px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 243, 238, 0.9);
  backdrop-filter: blur(16px);
}
.collect-topbar p {
  margin: 0 0 6px;
  color: #7c837e;
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.collect-topbar h1 {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  font-weight: 400;
}
.collect-filters {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.collect-filters label {
  min-width: 180px;
  min-height: 50px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  column-gap: 7px;
  border: 1px solid var(--line);
  background: #fff;
}
.collect-filters svg {
  grid-row: 1 / 3;
  color: var(--forest);
}
.collect-filters span {
  color: #8a908c;
  font-size: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.collect-filters select {
  min-width: 0;
  padding: 0 18px 0 0;
  border: 0;
  outline: 0;
  color: var(--midnight);
  background: transparent;
  font-size: 8px;
}
.collect-filters input {
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--midnight);
  background: transparent;
  font-size: 8px;
}
.collect-content {
  width: min(100%, 1580px);
  margin: 0 auto;
  padding: 26px clamp(18px, 3.5vw, 50px) 60px;
}
.collect-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.collect-metrics article {
  min-height: 148px;
  padding: 17px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8f7f3;
}
.collect-metrics article > span {
  color: #777e79;
  font-size: 7px;
  letter-spacing: 0.04em;
}
.collect-metrics strong {
  margin-top: auto;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(23px, 2.1vw, 34px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}
.collect-metrics em {
  margin-top: 6px;
  color: #606862;
  font-size: 9px;
  font-style: normal;
}
.collect-metrics small {
  margin-top: 7px;
  color: #969b98;
  font-size: 7px;
}
.collect-dashboard-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 12px;
}
.collect-chart-panel,
.collect-quick-actions,
.collect-table,
.collect-activity {
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.collect-section-head {
  min-height: 84px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.collect-section-head span,
.collect-quick-actions > span {
  color: #858b87;
  font-size: 7px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.collect-section-head h2 {
  margin: 6px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.collect-section-head > button {
  min-height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  color: #fff;
  background: var(--forest);
  font-size: 7px;
}
.collect-currency-toggle {
  padding: 3px;
  display: flex;
  border: 1px solid var(--line);
  background: #efeee9;
}
.collect-currency-toggle button {
  min-width: 44px;
  min-height: 30px;
  border: 0;
  color: #777e79;
  background: transparent;
  font-size: 7px;
}
.collect-currency-toggle button.active {
  color: #fff;
  background: var(--forest);
}
.collect-chart-legend {
  padding: 14px 18px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #747b76;
  font-size: 7px;
}
.collect-chart-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.collect-chart-legend i {
  width: 8px;
  height: 8px;
  background: #aeb9b0;
}
.collect-chart-legend span:nth-child(2) i {
  background: var(--forest);
}
.collect-chart-legend small {
  margin-left: auto;
  color: #969b98;
  font-size: 7px;
}
.collect-chart {
  height: 270px;
  padding: 28px 20px 18px;
  display: flex;
  align-items: stretch;
  gap: clamp(9px, 2vw, 26px);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(
    to bottom,
    transparent 24%,
    var(--line-soft) 25%,
    transparent 25.5% 49%,
    var(--line-soft) 50%,
    transparent 50.5% 74%,
    var(--line-soft) 75%,
    transparent 75.5%
  );
}
.collect-chart > div {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-rows: 1fr 18px;
  gap: 8px;
}
.collect-chart > div > div {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
}
.collect-chart i {
  width: min(15px, 42%);
  min-height: 4px;
  background: #aeb9b0;
  transition: height 0.35s ease;
}
.collect-chart i:last-child {
  background: var(--forest);
}
.collect-chart > div > span {
  color: #858b87;
  font-size: 7px;
  text-align: center;
}
.collect-quick-actions {
  padding: 18px;
}
.collect-quick-actions > span {
  display: block;
  margin-bottom: 12px;
}
.collect-quick-actions > button {
  width: 100%;
  min-height: 53px;
  padding: 0 4px;
  display: grid;
  grid-template-columns: 30px 1fr 14px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  color: var(--midnight);
  background: transparent;
  font-size: 8px;
  text-align: left;
}
.collect-quick-actions > button:hover {
  color: var(--forest);
}
.collect-quick-actions > button > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--forest);
  border: 1px solid #bdc6be;
}
.collect-quick-actions svg {
  width: 13px;
}
.collect-two-column {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.collect-three-column {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 0.85fr 0.85fr 1.3fr;
  gap: 12px;
}
.collect-table-scroll {
  min-width: 0;
  overflow-x: auto;
}
.collect-table-scroll > button {
  width: 100%;
  min-width: 500px;
  min-height: 64px;
  padding: 9px 15px 9px 18px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(85px, auto) 14px;
  align-items: center;
  gap: 13px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--midnight);
  background: transparent;
  text-align: left;
}
.collect-table-scroll > button:hover {
  background: #ecefe9;
}
.collect-table-scroll strong,
.collect-table-scroll small {
  display: block;
}
.collect-table-scroll strong {
  font-size: 8px;
  font-weight: 500;
}
.collect-table-scroll small {
  margin-top: 4px;
  color: #858b87;
  font-size: 7px;
}
.collect-table-scroll em {
  padding: 6px 8px;
  color: #303133;
  background: #e2e8e1;
  font-size: 7px;
  font-style: normal;
  white-space: nowrap;
}
.collect-table-scroll b {
  font-size: 8px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}
.collect-table-scroll svg {
  width: 12px;
  color: #969b98;
}
.collect-three-column .collect-table-scroll > button {
  min-width: 420px;
}
.collect-activity > button {
  width: 100%;
  min-height: 61px;
  padding: 9px 16px 9px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--midnight);
  background: transparent;
  text-align: left;
}
.collect-activity strong,
.collect-activity small {
  display: block;
}
.collect-activity strong {
  font-size: 8px;
  font-weight: 500;
}
.collect-activity small {
  margin-top: 4px;
  color: #858b87;
  font-size: 7px;
}
.collect-activity em {
  font-size: 8px;
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
}
.collect-activity em.income {
  color: var(--forest);
}
.collect-activity em.expense {
  color: #8a5149;
}
.collect-drawer-backdrop {
  display: none;
}

@media (max-width: 1180px) {
  .collect-app {
    --collect-sidebar: 224px;
  }
  .collect-app.collapsed {
    --collect-sidebar: 74px;
  }
  .collect-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .collect-dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .collect-three-column {
    grid-template-columns: 1fr 1fr;
  }
  .collect-three-column > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .collect-app {
    --collect-sidebar: 74px;
  }
  .collect-brand .logo span,
  .collect-sidebar .workspace-switcher-trigger > span:nth-child(2),
  .collect-sidebar .workspace-switcher-trigger > svg,
  .collect-sidebar .collect-nav > span,
  .collect-sidebar .collect-nav button > span,
  .collect-sidebar .collect-nav button > i,
  .collect-sidebar .collect-sidebar-foot button > span,
  .collect-sidebar .collect-sidebar-foot p {
    display: none;
  }
  .collect-sidebar .workspace-switcher-trigger {
    grid-template-columns: 38px;
    justify-content: center;
    padding: 8px;
  }
  .collect-sidebar .collect-nav > button,
  .collect-sidebar .collect-sidebar-foot > button {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }
  .collect-sidebar .collect-sidebar-foot > div {
    grid-template-columns: 32px;
    justify-content: center;
  }
  .collect-sidebar .workspace-switcher-menu {
    left: calc(100% + 8px);
    top: 0;
  }
  .collect-filters label {
    min-width: 155px;
  }
  .collect-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .collect-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 15px;
  }
  .collect-quick-actions > span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .collect-app {
    display: block;
  }
  .collect-sidebar {
    display: none;
  }
  .collect-mobile-header {
    position: sticky;
    z-index: 20;
    top: 0;
    min-height: 64px;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 40px 1fr 32px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background: rgba(245, 243, 238, 0.96);
    backdrop-filter: blur(14px);
  }
  .collect-mobile-header > button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--midnight);
    background: transparent;
  }
  .collect-mobile-header > strong {
    font-size: 10px;
    text-align: center;
  }
  .collect-drawer-backdrop {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: block;
    background: rgba(12, 17, 21, 0.45);
  }
  .collect-drawer-backdrop > aside {
    width: min(88vw, 340px);
    height: 100%;
    background: var(--ivory);
    box-shadow: 20px 0 50px rgba(12, 17, 21, 0.2);
  }
  .collect-drawer-backdrop .collect-switcher .workspace-switcher-menu {
    position: static;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
  }
  .collect-drawer-backdrop .collect-sidebar-inner:has(.workspace-switcher-menu) .collect-nav {
    display: none;
  }
  .collect-topbar {
    min-height: 0;
    padding: 20px 15px;
    align-items: stretch;
    flex-direction: column;
  }
  .collect-topbar h1 {
    font-size: 27px;
  }
  .collect-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .collect-filters label {
    min-width: 0;
  }
  .collect-filters select {
    font-size: 16px;
  }
  .collect-content {
    padding: 16px 12px 40px;
  }
  .collect-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .collect-metrics article {
    min-height: 135px;
    padding: 14px;
  }
  .collect-metrics strong {
    font-size: 22px;
  }
  .collect-two-column,
  .collect-three-column {
    grid-template-columns: minmax(0, 1fr);
  }
  .collect-three-column > :last-child {
    grid-column: auto;
  }
  .collect-chart-panel {
    overflow: hidden;
  }
  .collect-chart {
    height: 230px;
    padding-inline: 12px;
    gap: 8px;
  }
  .collect-chart-legend {
    flex-wrap: wrap;
  }
  .collect-chart-legend small {
    width: 100%;
    margin-left: 0;
  }
  .collect-table-scroll > button {
    min-width: 470px;
  }
}

@media (max-width: 420px) {
  .collect-filters,
  .collect-metrics,
  .collect-quick-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .collect-quick-actions > span {
    grid-column: auto;
  }
  .collect-section-head {
    align-items: flex-start;
  }
  .collect-chart {
    overflow-x: auto;
  }
  .collect-chart > div {
    min-width: 34px;
  }
}

/* Briker Collect contracts */
.contracts-page-head {
  min-height: 106px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.contracts-page-head p,
.contract-detail-head p {
  margin: 0 0 6px;
  color: #858b87;
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contracts-page-head h1,
.contract-detail-head h1 {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: 31px;
  font-weight: 400;
}
.contracts-page-head > div > span {
  margin-top: 7px;
  display: block;
  color: #858b87;
  font-size: 8px;
}
.contracts-page-head > button,
.contract-wizard-actions button:last-child,
.contract-activation > button {
  min-height: 42px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  color: #fff;
  background: var(--forest);
  font-size: 8px;
}
.contracts-filters {
  min-height: 78px;
  padding: 13px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 140px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #f8f7f3;
}
.contracts-filters label {
  min-height: 50px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  column-gap: 7px;
  border: 1px solid var(--line);
  background: #fff;
}
.contracts-filters label:not(:first-child) {
  grid-template-columns: 1fr;
}
.contracts-filters svg {
  grid-row: 1 / 3;
  color: var(--forest);
}
.contracts-filters span {
  color: #858b87;
  font-size: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contracts-filters input,
.contracts-filters select {
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--midnight);
  background: transparent;
  font-size: 9px;
}
.contracts-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-top: 0;
  background: #f8f7f3;
}
.contracts-table {
  width: 100%;
  min-width: 1580px;
  border-collapse: collapse;
  font-size: 8px;
}
.contracts-table th {
  height: 46px;
  padding: 0 12px;
  color: #818783;
  border-bottom: 1px solid var(--line);
  background: #eeeee9;
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.contracts-table td {
  height: 67px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: #555d57;
  white-space: nowrap;
}
.contracts-table tr {
  cursor: pointer;
}
.contracts-table tbody tr:hover {
  background: #ebeee8;
}
.contracts-table td strong,
.contracts-table td small {
  display: block;
}
.contracts-table td strong {
  color: var(--midnight);
  font-size: 8px;
  font-weight: 500;
}
.contracts-table td small {
  margin-top: 4px;
  color: #8b918d;
  font-size: 7px;
}
.contracts-table td.numeric {
  color: var(--midnight);
  font-weight: 500;
  text-align: right;
}
.contracts-table td svg {
  width: 12px;
}
.contract-status {
  width: max-content;
  padding: 6px 8px;
  display: inline-block;
  color: #2d2e30;
  border: 1px solid #c3cec5;
  background: #e6ece6;
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.contract-status.borrador,
.contract-status.finalizado {
  color: #666d68;
  border-color: #cbd0cc;
  background: #eceeeb;
}
.contract-status.pendiente-de-firma,
.contract-status.próximo-a-iniciar {
  color: #755f42;
  border-color: #d5c49f;
  background: #f1e9d7;
}
.contract-status.próximo-a-vencer {
  color: #7b523d;
  border-color: #d8baa8;
  background: #f2e4dc;
}
.contract-status.rescindido,
.contract-status.cancelado {
  color: #7b433d;
  border-color: #d6b6b2;
  background: #f0dfdc;
}
.contracts-empty {
  padding: 60px;
  color: #858b87;
  font-size: 9px;
  text-align: center;
}
.contract-wizard {
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.contract-wizard-head {
  min-height: 66px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.contract-wizard-head > button,
.contract-detail-head > button {
  min-height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  color: var(--forest);
  background: transparent;
  font-size: 8px;
}
.contract-wizard-head > div {
  text-align: right;
}
.contract-wizard-head span,
.contract-wizard-head strong {
  display: block;
}
.contract-wizard-head span {
  color: #858b87;
  font-size: 7px;
}
.contract-wizard-head strong {
  margin-top: 4px;
  color: var(--forest);
  font-size: 7px;
  font-weight: 500;
}
.contract-wizard-progress {
  min-height: 76px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  border-bottom: 1px solid var(--line);
}
.contract-wizard-progress button {
  position: relative;
  min-width: 0;
  padding: 13px 5px 11px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 0;
  color: #a0a4a1;
  background: transparent;
  text-align: left;
}
.contract-wizard-progress button::after {
  content: '';
  position: absolute;
  right: 5px;
  bottom: -1px;
  left: 0;
  height: 2px;
}
.contract-wizard-progress button.active,
.contract-wizard-progress button.complete {
  color: var(--forest);
}
.contract-wizard-progress button.active::after,
.contract-wizard-progress button.complete::after {
  background: var(--forest);
}
.contract-wizard-progress i {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 7px;
  font-style: normal;
}
.contract-wizard-progress i svg {
  width: 11px;
}
.contract-wizard-progress span {
  max-width: 95px;
  font-size: 7px;
  line-height: 1.2;
}
.contract-wizard-content {
  width: min(100% - 40px, 900px);
  min-height: 640px;
  margin: 0 auto;
  padding: 50px 0 70px;
}
.contract-wizard-content .agency-step-heading h1 {
  font-size: clamp(41px, 4vw, 58px);
}
.contract-field input,
.contract-field select,
.contract-field textarea {
  background: #fff;
}
.contract-selection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.contract-selection-grid > button {
  position: relative;
  min-height: 106px;
  padding: 16px 48px 16px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--midnight);
  background: #fff;
  text-align: left;
}
.contract-selection-grid > button:hover,
.contract-selection-grid > button.selected {
  border-color: var(--forest);
  background: #edf0eb;
}
.contract-selection-grid > button > span {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--forest);
  border: 1px solid #bdc6be;
  transform: translateY(-50%);
}
.contract-selection-grid > button strong,
.contract-selection-grid > button small {
  display: block;
}
.contract-selection-grid > button strong {
  font-family: 'DM Serif Display', serif;
  font-size: 16px;
  font-weight: 400;
}
.contract-selection-grid > button small {
  margin-top: 5px;
  color: #858b87;
  font-size: 7px;
}
.contract-selection-grid > button > i {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.contract-selection-grid > button.selected > i {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}
.contract-selection-grid > button > i svg {
  width: 11px;
}
.contract-selection-grid > .agency-field {
  grid-column: 1 / -1;
}
.contract-party-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contract-party-grid > section {
  padding: 20px;
  border: 1px solid var(--line);
  background: #fff;
}
.contract-party-grid h3 {
  margin: 0 0 18px;
  font-family: 'DM Serif Display', serif;
  font-size: 19px;
  font-weight: 400;
}
.contract-owner-row {
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 1fr 75px 15px;
  align-items: center;
  gap: 5px;
}
.contract-owner-row select,
.contract-owner-row input {
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 9px;
}
.contract-party-grid section > button {
  min-height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  color: var(--forest);
  background: transparent;
  font-size: 8px;
}
.contract-party-grid section > p {
  margin: 12px 0 0;
  color: #747b76;
  font-size: 8px;
}
.contract-legal-note {
  padding: 15px;
  display: flex;
  gap: 10px;
  color: #5d685f;
  background: #e7ebe5;
}
.contract-legal-note p {
  margin: 0;
  font-size: 8px;
  line-height: 1.55;
}
.contract-adjustment-preview,
.contract-management-summary {
  padding: 17px;
  background: #e7ebe5;
}
.contract-adjustment-preview span,
.contract-adjustment-preview strong,
.contract-adjustment-preview small,
.contract-management-summary span,
.contract-management-summary strong {
  display: block;
}
.contract-adjustment-preview span,
.contract-management-summary span {
  color: #747b76;
  font-size: 7px;
  text-transform: uppercase;
}
.contract-adjustment-preview strong {
  margin-top: 9px;
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  font-weight: 400;
}
.contract-adjustment-preview small {
  margin-top: 7px;
  color: #858b87;
  font-size: 7px;
}
.contract-management-summary strong {
  margin-top: 10px;
  font-size: 9px;
  font-weight: 500;
}
.contract-documents > input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
}
.contract-documents > label {
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px dashed #aab0ac;
  background: #faf9f6;
  cursor: pointer;
}
.contract-documents > label strong {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  font-weight: 400;
}
.contract-documents > label span {
  color: #858b87;
  font-size: 8px;
}
.contract-documents > div {
  min-height: 58px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 28px 1fr 34px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #fff;
}
.contract-documents strong,
.contract-documents small {
  display: block;
}
.contract-documents strong {
  font-size: 8px;
}
.contract-documents small {
  margin-top: 4px;
  color: #858b87;
  font-size: 7px;
}
.contract-documents > div > button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  color: #747b76;
  background: transparent;
}
.contract-review-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
}
.contract-review-grid > section {
  padding: 20px;
  border: 1px solid var(--line);
  background: #fff;
}
.contract-review-grid dl {
  margin: 0;
}
.contract-review-grid dl > div {
  min-height: 54px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}
.contract-review-grid dt {
  color: #858b87;
  font-size: 7px;
  text-transform: uppercase;
}
.contract-review-grid dd {
  margin: 5px 0 0;
  font-size: 9px;
}
.contract-schedule-mini > div {
  min-height: 46px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
}
.contract-schedule-mini > div > span {
  color: #858b87;
  font-size: 7px;
}
.contract-schedule-mini p {
  margin: 0;
}
.contract-schedule-mini strong,
.contract-schedule-mini small {
  display: block;
}
.contract-schedule-mini strong {
  font-size: 8px;
}
.contract-schedule-mini small {
  margin-top: 3px;
  color: #858b87;
  font-size: 6px;
}
.contract-schedule-mini em {
  font-size: 8px;
  font-style: normal;
  font-weight: 500;
}
.contract-activation {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.contract-activation > span {
  width: 58px;
  height: 58px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--forest);
}
.contract-activation h2 {
  margin: 12px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: 37px;
  font-weight: 400;
  line-height: 1;
}
.contract-activation > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: #747b76;
  font-size: 9px;
  line-height: 1.6;
}
.contract-activation > label {
  margin: 24px 0;
  padding: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #626a64;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 8px;
  line-height: 1.5;
  text-align: left;
}
.contract-activation input {
  width: 17px;
  height: 17px;
  accent-color: var(--forest);
}
.contract-activation > button {
  width: 100%;
  justify-content: space-between;
}
.contract-activation > button:disabled {
  opacity: 0.4;
}
.contract-activation > small {
  margin-top: 12px;
  display: block;
  color: #969b98;
  font-size: 7px;
}
.contract-wizard-actions {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
}
.contract-wizard-actions button:first-child {
  min-height: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  color: var(--forest);
  background: transparent;
  font-size: 8px;
}
.contract-wizard-actions button:last-child {
  justify-content: space-between;
}
.contract-detail-head {
  min-height: 132px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.contract-detail-head > div:nth-child(2) > span {
  margin-top: 9px;
}
.contract-actions {
  display: flex;
  gap: 5px;
}
.contract-actions button {
  min-height: 38px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  color: #636b65;
  background: transparent;
  font-size: 7px;
}
.contract-actions button:hover {
  border-color: var(--forest);
  color: var(--forest);
}
.contract-summary-cards {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.contract-summary-cards article {
  min-height: 120px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8f7f3;
}
.contract-summary-cards span {
  color: #858b87;
  font-size: 7px;
  text-transform: uppercase;
}
.contract-summary-cards strong {
  margin-top: auto;
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  font-weight: 400;
}
.contract-summary-cards small {
  margin-top: 6px;
  color: #858b87;
  font-size: 7px;
}
.contract-tabs {
  margin-top: 10px;
  padding: 0 8px;
  display: flex;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #f8f7f3;
  scrollbar-width: none;
}
.contract-tabs button {
  min-width: max-content;
  min-height: 51px;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #747b76;
  background: transparent;
  font-size: 8px;
}
.contract-tabs button.active {
  color: var(--forest);
  border-color: var(--forest);
  font-weight: 500;
}
.contract-tab-content {
  min-height: 390px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #f8f7f3;
}
.contract-summary-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contract-summary-layout > section {
  padding: 20px;
  border: 1px solid var(--line);
  background: #fff;
}
.contract-summary-layout h3 {
  margin: 0 0 15px;
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-weight: 400;
}
.contract-person {
  min-height: 62px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
}
.contract-person > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--forest);
  border: 1px solid #c1c8c2;
  border-radius: 50%;
}
.contract-person p {
  margin: 0;
}
.contract-person small,
.contract-person strong,
.contract-person em {
  display: block;
}
.contract-person small {
  color: #858b87;
  font-size: 6px;
  text-transform: uppercase;
}
.contract-person strong {
  margin-top: 3px;
  font-size: 8px;
}
.contract-person em {
  margin-top: 3px;
  color: #858b87;
  font-size: 7px;
  font-style: normal;
}
.contract-summary-layout dl {
  margin: 0;
}
.contract-summary-layout dl > div {
  min-height: 57px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}
.contract-summary-layout dt {
  color: #858b87;
  font-size: 7px;
}
.contract-summary-layout dd {
  margin: 5px 0 0;
  font-size: 8px;
}
.contract-detail-table > div {
  min-height: 58px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 45px 1fr 150px 1fr 100px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}
.contract-detail-table span,
.contract-detail-table small {
  color: #858b87;
  font-size: 7px;
}
.contract-detail-table strong,
.contract-detail-table em,
.contract-detail-table b {
  font-size: 8px;
  font-style: normal;
  font-weight: 500;
}
.contract-detail-table b {
  color: var(--forest);
  text-align: right;
}
.contract-history article {
  min-height: 66px;
  padding: 10px 13px;
  display: grid;
  grid-template-columns: 90px 1fr 140px auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}
.contract-history article > span,
.contract-history small {
  color: #858b87;
  font-size: 7px;
}
.contract-history strong,
.contract-history small {
  display: block;
}
.contract-history strong {
  font-size: 8px;
}
.contract-history small {
  margin-top: 4px;
}
.contract-history em {
  font-size: 8px;
  font-style: normal;
  font-weight: 500;
}
.contract-history i {
  padding: 5px 7px;
  color: #657068;
  background: #e7ebe5;
  font-size: 6px;
  font-style: normal;
  text-transform: uppercase;
}
.contract-placeholder {
  max-width: 480px;
  margin: 50px auto;
  text-align: center;
}
.contract-placeholder > svg {
  color: var(--forest);
}
.contract-placeholder h3 {
  margin: 15px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: 25px;
  font-weight: 400;
}
.contract-placeholder p {
  margin: 10px 0 20px;
  color: #747b76;
  font-size: 9px;
}
.contract-placeholder button {
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--forest);
  color: var(--forest);
  background: transparent;
  font-size: 8px;
}
.contract-modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(12, 17, 21, 0.48);
}
.contract-modal-backdrop > div {
  position: relative;
  width: min(100%, 540px);
  padding: 32px;
  background: var(--ivory);
  box-shadow: 0 25px 80px rgba(12, 17, 21, 0.22);
}
.contract-modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}
.contract-modal-backdrop h2 {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: 31px;
  font-weight: 400;
}
.contract-modal-backdrop p:not(.eyebrow) {
  margin: 13px 0 20px;
  color: #747b76;
  font-size: 9px;
  line-height: 1.6;
}
.contract-modal-backdrop label {
  margin-top: 12px;
  display: block;
  color: #676e69;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contract-modal-backdrop input,
.contract-modal-backdrop textarea {
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  text-transform: none;
}
.contract-modal-backdrop > div > div {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.contract-modal-backdrop > div > div button {
  min-height: 44px;
  border: 1px solid var(--line);
  color: var(--forest);
  background: transparent;
  font-size: 8px;
}
.contract-modal-backdrop > div > div button:last-child {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}
.contract-modal-backdrop > div > small {
  margin-top: 12px;
  display: block;
  color: #969b98;
  font-size: 7px;
  text-align: center;
}

@media (max-width: 1100px) {
  .contract-wizard-progress span {
    display: none;
  }
  .contract-summary-cards {
    grid-template-columns: 1fr 1fr;
  }
  .contract-detail-head {
    grid-template-columns: 80px 1fr;
  }
  .contract-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 700px) {
  .contracts-page-head {
    min-height: 0;
    padding: 18px;
    align-items: stretch;
    flex-direction: column;
  }
  .contracts-page-head > button {
    justify-content: center;
  }
  .contracts-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .contracts-filters label:first-child {
    grid-column: 1 / -1;
  }
  .contracts-filters input,
  .contracts-filters select {
    font-size: 16px;
  }
  .contract-wizard-head {
    padding-inline: 13px;
  }
  .contract-wizard-progress {
    position: sticky;
    z-index: 8;
    top: 64px;
    min-height: 46px;
    padding-inline: 9px;
    background: var(--ivory);
  }
  .contract-wizard-progress button {
    padding: 10px 2px;
    align-items: center;
  }
  .contract-wizard-progress i {
    width: 21px;
    height: 21px;
  }
  .contract-wizard-content {
    width: auto;
    min-height: 0;
    padding: 35px 15px 95px;
  }
  .contract-wizard-content .agency-step-heading h1 {
    font-size: 42px;
  }
  .contract-field input,
  .contract-field select,
  .contract-field textarea,
  .contract-owner-row select,
  .contract-owner-row input {
    font-size: 16px;
  }
  .contract-selection-grid,
  .contract-party-grid,
  .contract-review-grid,
  .contract-summary-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .contract-wizard-actions {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 70px;
    margin: 0;
    padding: 10px 15px max(10px, env(safe-area-inset-bottom));
    grid-template-columns: 44px 1fr;
    border-top: 1px solid var(--line);
    background: rgba(245, 243, 238, 0.97);
    backdrop-filter: blur(12px);
  }
  .contract-wizard-actions button:first-child {
    width: 44px;
    padding: 0;
    justify-content: center;
    border: 1px solid var(--line);
    font-size: 0;
  }
  .contract-detail-head {
    padding: 17px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }
  .contract-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .contract-actions button {
    justify-content: center;
  }
  .contract-summary-cards {
    grid-template-columns: 1fr 1fr;
  }
  .contract-summary-cards article {
    min-height: 105px;
  }
  .contract-tab-content {
    padding: 14px;
  }
  .contract-detail-table,
  .contract-history {
    overflow-x: auto;
  }
  .contract-detail-table > div,
  .contract-history article {
    min-width: 620px;
  }
  .contract-modal-backdrop {
    padding: 10px;
    align-items: end;
  }
  .contract-modal-backdrop > div {
    padding: 28px 20px max(20px, env(safe-area-inset-bottom));
  }
  .contract-modal-backdrop input,
  .contract-modal-backdrop textarea {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .contracts-filters,
  .contract-summary-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .contracts-filters label:first-child {
    grid-column: auto;
  }
  .contract-modal-backdrop > div > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Briker Collect receivables */
.receivables-page-head {
  min-height: 108px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.receivables-page-head p,
.receivable-detail-head p {
  margin: 0 0 6px;
  color: #858b87;
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.receivables-page-head h1,
.receivable-detail-head h1 {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: 31px;
  font-weight: 400;
}
.receivables-page-head > div > span {
  margin-top: 7px;
  display: block;
  color: #858b87;
  font-size: 8px;
}
.receivables-page-head > div:last-child {
  display: flex;
  gap: 7px;
}
.receivables-page-head > div:last-child button,
.receivables-page-head > button {
  min-height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  color: var(--forest);
  background: transparent;
  font-size: 8px;
}
.receivables-page-head > div:last-child button:last-child,
.receivables-page-head > button {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}
.receivables-page-head > label {
  min-width: 300px;
  color: #747b76;
  font-size: 7px;
  text-transform: uppercase;
}
.receivables-page-head > label select {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 8px;
  text-transform: none;
}
.receivables-metrics {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.receivables-metrics article {
  min-height: 128px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8f7f3;
}
.receivables-metrics span {
  color: #7b827d;
  font-size: 7px;
}
.receivables-metrics strong {
  margin-top: auto;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(19px, 1.7vw, 27px);
  font-weight: 400;
  white-space: nowrap;
}
.receivables-metrics em {
  margin-top: 7px;
  color: #656d67;
  font-size: 8px;
  font-style: normal;
}
.receivables-toolbar {
  min-height: 70px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 120px 140px auto;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #f8f7f3;
}
.receivables-toolbar label {
  min-height: 44px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: #fff;
}
.receivables-toolbar label svg {
  color: var(--forest);
}
.receivables-toolbar input,
.receivables-toolbar select {
  min-width: 0;
  min-height: 44px;
  padding: 0 9px;
  border: 1px solid var(--line);
  outline-color: var(--forest);
  background: #fff;
  font-size: 8px;
}
.receivables-toolbar label input {
  min-height: 40px;
  padding: 0;
  border: 0;
}
.receivables-toolbar > button {
  min-height: 44px;
  padding: 0 11px;
  border: 0;
  color: #fff;
  background: var(--forest);
  font-size: 8px;
  white-space: nowrap;
}
.receivables-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-top: 0;
  background: #f8f7f3;
}
.receivables-table {
  width: 100%;
  min-width: 1450px;
  border-collapse: collapse;
}
.receivables-table th {
  height: 44px;
  padding: 0 11px;
  color: #858b87;
  border-bottom: 1px solid var(--line);
  background: #eeeee9;
  font-size: 6px;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.receivables-table td {
  height: 66px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--line-soft);
  color: #5f6761;
  font-size: 8px;
  white-space: nowrap;
}
.receivables-table tbody tr {
  cursor: pointer;
}
.receivables-table tbody tr:hover {
  background: #ebeee8;
}
.receivables-table td strong,
.receivables-table td small {
  display: block;
}
.receivables-table td strong {
  color: var(--midnight);
  font-size: 8px;
  font-weight: 500;
}
.receivables-table td small {
  margin-top: 4px;
  color: #858b87;
  font-size: 7px;
}
.receivables-table td svg {
  width: 12px;
}
.receivable-status {
  padding: 6px 8px;
  display: inline-block;
  color: #303133;
  border: 1px solid #c3cec5;
  background: #e5ebe5;
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.receivable-status.pago-parcial {
  color: #755f42;
  border-color: #d5c49f;
  background: #f1e9d7;
}
.receivable-status.vencido {
  color: #7b433d;
  border-color: #d6b6b2;
  background: #f0dfdc;
}
.receivable-status.pendiente {
  color: #656d68;
  border-color: #ccd0cc;
  background: #eceeeb;
}
.receivable-status.crédito {
  color: #4e6470;
  border-color: #bdcbd0;
  background: #e3eaed;
}
.receivable-detail-head {
  min-height: 126px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.receivable-detail-head > button:first-child {
  min-height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  color: var(--forest);
  background: transparent;
  font-size: 8px;
}
.receivable-detail-head > button:last-child {
  min-height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  color: #fff;
  background: var(--forest);
  font-size: 8px;
}
.receivable-detail-head > div > span {
  margin-top: 8px;
}
.receivable-detail-metrics {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.receivable-detail-metrics article {
  min-height: 105px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8f7f3;
}
.receivable-detail-metrics span {
  color: #858b87;
  font-size: 7px;
  text-transform: uppercase;
}
.receivable-detail-metrics strong {
  margin-top: auto;
  font-family: 'DM Serif Display', serif;
  font-size: 21px;
  font-weight: 400;
}
.receivable-detail-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 10px;
}
.receivable-detail-grid > section,
.receivable-audit {
  padding: 20px;
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.receivable-detail-grid h2,
.receivable-audit h2,
.communication-history h2 {
  margin: 0 0 16px;
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-weight: 400;
}
.receivable-detail-grid dl {
  margin: 0;
}
.receivable-detail-grid dl > div {
  min-height: 51px;
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
}
.receivable-detail-grid dt {
  color: #858b87;
  font-size: 7px;
  text-transform: uppercase;
}
.receivable-detail-grid dd {
  margin: 5px 0 0;
  font-size: 8px;
}
.receivable-detail-grid section > article {
  min-height: 62px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
}
.receivable-detail-grid article.reversed {
  opacity: 0.55;
  text-decoration: line-through;
}
.receivable-detail-grid article > span {
  margin-right: auto;
}
.receivable-detail-grid article strong,
.receivable-detail-grid article small {
  display: block;
}
.receivable-detail-grid article strong {
  font-size: 8px;
}
.receivable-detail-grid article small {
  margin-top: 4px;
  color: #858b87;
  font-size: 7px;
}
.receivable-detail-grid article em {
  font-size: 8px;
  font-style: normal;
  font-weight: 500;
}
.receivable-detail-grid article button {
  min-height: 32px;
  padding: 0 7px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  color: var(--forest);
  background: transparent;
  font-size: 7px;
}
.receivable-empty-copy {
  color: #858b87;
  font-size: 8px;
}
.receivable-audit {
  margin-top: 10px;
}
.receivable-audit > div {
  min-height: 52px;
  display: grid;
  grid-template-columns: 110px 1fr 140px 140px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
}
.receivable-audit span,
.receivable-audit small {
  color: #858b87;
  font-size: 7px;
}
.receivable-audit strong,
.receivable-audit em {
  font-size: 8px;
  font-style: normal;
}
.aging-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.aging-grid section {
  min-height: 130px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8f7f3;
}
.aging-grid span {
  color: #7b827d;
  font-size: 7px;
}
.aging-grid strong {
  margin-top: auto;
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  font-weight: 400;
}
.aging-grid small {
  margin-top: 5px;
  color: #747b76;
  font-size: 7px;
}
.delinquency-list {
  margin-top: 10px;
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.delinquency-list article {
  min-height: 82px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr 150px auto;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line-soft);
}
.delinquency-list article > div:first-child > span {
  padding: 5px 7px;
  display: inline-block;
  color: #7b433d;
  background: #f0dfdc;
  font-size: 6px;
  text-transform: uppercase;
}
.delinquency-list strong,
.delinquency-list small {
  display: block;
}
.delinquency-list strong {
  margin-top: 6px;
  font-size: 9px;
}
.delinquency-list small {
  margin-top: 4px;
  color: #858b87;
  font-size: 7px;
}
.delinquency-list article > em {
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
  text-align: right;
}
.delinquency-list article > div:last-child {
  display: flex;
  gap: 5px;
}
.delinquency-list button {
  min-height: 34px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  color: var(--forest);
  background: transparent;
  font-size: 7px;
}
.communication-history {
  margin-top: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.communication-history > div {
  min-height: 50px;
  display: grid;
  grid-template-columns: 150px 1fr 1fr 90px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
}
.communication-history span,
.communication-history small {
  color: #858b87;
  font-size: 7px;
}
.communication-history strong,
.communication-history em {
  font-size: 8px;
  font-style: normal;
}
.communication-history em {
  color: var(--forest);
  text-align: right;
}
.reconciliation-summary {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.reconciliation-summary article {
  min-height: 96px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8f7f3;
}
.reconciliation-summary span {
  color: #858b87;
  font-size: 7px;
}
.reconciliation-summary strong {
  margin-top: auto;
  font-family: 'DM Serif Display', serif;
  font-size: 27px;
  font-weight: 400;
}
.reconciliation-layout {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 10px;
}
.reconciliation-layout > section,
.reconciliation-layout > aside {
  min-width: 0;
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.reconciliation-head {
  min-height: 58px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.reconciliation-head span {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
}
.reconciliation-head small {
  color: #858b87;
  font-size: 7px;
}
.reconciliation-layout > section > button {
  width: 100%;
  min-height: 70px;
  padding: 9px 14px;
  display: grid;
  grid-template-columns: 1fr 120px 120px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--midnight);
  background: transparent;
  text-align: left;
}
.reconciliation-layout > section > button:hover,
.reconciliation-layout > section > button.selected {
  background: #e8ebe5;
}
.reconciliation-layout strong,
.reconciliation-layout small {
  display: block;
}
.reconciliation-layout strong {
  font-size: 8px;
}
.reconciliation-layout small {
  margin-top: 4px;
  color: #858b87;
  font-size: 7px;
}
.reconciliation-layout > section em {
  font-size: 8px;
  font-style: normal;
  font-weight: 500;
  text-align: right;
}
.reconciliation-layout > section i {
  padding: 6px 8px;
  color: #6f756f;
  background: #e8e9e5;
  font-size: 6px;
  font-style: normal;
  text-align: center;
}
.reconciliation-layout > section i.sugerencia-disponible {
  color: #755f42;
  background: #f1e9d7;
}
.reconciliation-layout > section i.conciliado {
  color: #2d2e30;
  background: #e5ebe5;
}
.reconciliation-layout > aside {
  padding: 22px;
}
.reconciliation-layout > aside h2 {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: 29px;
  font-weight: 400;
}
.reconciliation-layout > aside > p:not(.eyebrow) {
  margin: 9px 0 18px;
  color: #747b76;
  font-size: 8px;
}
.reconciliation-layout > aside > label {
  min-height: 60px;
  padding: 9px;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #fff;
  cursor: pointer;
}
.reconciliation-layout > aside > label.selected {
  background: #e6ebe5;
  border-color: #bdc8bf;
}
.reconciliation-layout > aside > label input {
  accent-color: var(--forest);
}
.reconciliation-layout > aside > label em {
  font-size: 8px;
  font-style: normal;
  font-weight: 500;
}
.reconciliation-layout > aside > button {
  width: 100%;
  min-height: 43px;
  margin-top: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  color: #fff;
  background: var(--forest);
  font-size: 8px;
}
.reconciliation-layout > aside > button:disabled {
  opacity: 0.4;
}
.reconciliation-empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  color: #858b87;
  text-align: center;
}
.reconciliation-empty p {
  max-width: 260px;
  margin: 14px 0 0;
  font-size: 8px;
  line-height: 1.55;
}
.finance-modal-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(12, 17, 21, 0.5);
}
.finance-modal-backdrop > div {
  position: relative;
  width: min(100%, 670px);
  max-height: calc(100svh - 40px);
  padding: 30px;
  background: var(--ivory);
  box-shadow: 0 28px 90px rgba(12, 17, 21, 0.24);
  overflow-y: auto;
}
.finance-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}
.finance-modal-backdrop h2 {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  font-weight: 400;
}
.finance-modal-backdrop > div > p:not(.eyebrow) {
  margin: 11px 0 20px;
  color: #747b76;
  font-size: 9px;
  line-height: 1.55;
}
.payment-main-fields {
  display: grid;
  grid-template-columns: 110px 1fr 1fr;
  gap: 8px;
}
.finance-modal-backdrop label {
  color: #686f6a;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.finance-modal-backdrop input,
.finance-modal-backdrop select,
.finance-modal-backdrop textarea {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  text-transform: none;
}
.payment-allocation {
  margin-top: 20px;
}
.payment-allocation > span {
  color: #858b87;
  font-size: 7px;
  text-transform: uppercase;
}
.payment-allocation > label {
  min-height: 60px;
  padding: 8px 0;
  display: grid;
  grid-template-columns: 1fr 130px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.payment-allocation strong,
.payment-allocation small {
  display: block;
}
.payment-allocation strong {
  color: var(--midnight);
  font-size: 8px;
  text-transform: none;
}
.payment-allocation small {
  margin-top: 4px;
  color: #858b87;
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.payment-balance {
  margin-top: 15px;
  padding: 13px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: #e7ebe5;
}
.payment-balance span,
.payment-balance strong {
  display: block;
}
.payment-balance span {
  color: #747b76;
  font-size: 7px;
}
.payment-balance strong {
  margin-top: 6px;
  color: var(--midnight);
  font-size: 9px;
}
.payment-receipt {
  margin-top: 15px;
}
.payment-receipt input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
}
.payment-receipt label {
  min-height: 66px;
  padding: 10px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
  border: 1px dashed #aab0ac;
  background: #fff;
  cursor: pointer;
}
.payment-receipt strong,
.payment-receipt small {
  display: block;
}
.payment-receipt strong {
  color: var(--midnight);
  font-size: 8px;
  text-transform: none;
}
.payment-receipt small {
  margin-top: 4px;
  color: #858b87;
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.finance-confirm {
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  color: #fff;
  background: var(--forest);
  font-size: 8px;
}
.finance-confirm:disabled {
  opacity: 0.4;
}
.finance-modal-backdrop > div > small {
  margin-top: 10px;
  display: block;
  color: #969b98;
  font-size: 7px;
  text-align: center;
}
.finance-confirm-dialog {
  max-width: 470px;
  text-align: center;
}
.finance-confirm-dialog > span {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #8a5149;
}
.finance-confirm-dialog > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.finance-confirm-dialog > div button {
  min-height: 43px;
  border: 1px solid var(--line);
  color: var(--forest);
  background: transparent;
  font-size: 8px;
}
.finance-confirm-dialog > div button:last-child {
  color: #fff;
  border-color: #8a5149;
  background: #8a5149;
}
.receipt-preview {
  max-width: 520px;
  text-align: center;
}
.receipt-preview > div {
  width: 100%;
  height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--forest);
  border: 1px solid var(--line);
  background: #fff;
}
.receipt-preview > div svg {
  width: 42px;
  height: 42px;
}
.receipt-preview > div span {
  font-size: 8px;
  letter-spacing: 0.1em;
}
.receipt-preview h2 {
  margin-top: 18px;
  font-size: 22px;
}
.receipt-preview strong {
  color: #7b433d;
  font-size: 8px;
}

@media (max-width: 1150px) {
  .receivables-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .aging-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .delinquency-list article {
    grid-template-columns: 1fr 130px;
  }
  .delinquency-list article > div:last-child {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 800px) {
  .receivables-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .receivables-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .receivables-toolbar label {
    grid-column: 1 / -1;
  }
  .receivables-toolbar > button {
    grid-column: 1 / -1;
  }
  .receivable-detail-head {
    grid-template-columns: 80px 1fr;
  }
  .receivable-detail-head > button:last-child {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .receivable-detail-grid,
  .reconciliation-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .reconciliation-layout > aside {
    min-height: 330px;
  }
}

@media (max-width: 700px) {
  .receivables-page-head {
    min-height: 0;
    padding: 17px;
    align-items: stretch;
    flex-direction: column;
  }
  .receivables-page-head > label {
    min-width: 0;
  }
  .receivables-page-head select {
    font-size: 16px;
  }
  .receivables-page-head > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .receivables-page-head > div:last-child button {
    justify-content: center;
  }
  .receivables-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .receivables-metrics article {
    min-height: 112px;
  }
  .receivables-metrics strong {
    font-size: 20px;
  }
  .receivables-toolbar input,
  .receivables-toolbar select {
    font-size: 16px;
  }
  .receivables-table {
    min-width: 0;
  }
  .receivables-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .receivables-table,
  .receivables-table tbody,
  .receivables-table tr,
  .receivables-table td {
    display: block;
  }
  .receivables-table tr {
    position: relative;
    margin: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    background: #fff;
  }
  .receivables-table td {
    height: auto;
    padding: 4px 0;
    border: 0;
    white-space: normal;
  }
  .receivables-table td:nth-child(6),
  .receivables-table td:nth-child(7),
  .receivables-table td:nth-child(8) {
    display: inline-block;
    margin-right: 12px;
  }
  .receivables-table td:last-child {
    position: absolute;
    top: 14px;
    right: 12px;
  }
  .receivable-detail-head {
    padding: 17px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }
  .receivable-detail-metrics,
  .aging-grid,
  .reconciliation-summary {
    grid-template-columns: 1fr 1fr;
  }
  .receivable-audit {
    overflow-x: auto;
  }
  .receivable-audit > div {
    min-width: 570px;
  }
  .delinquency-list article {
    padding: 14px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }
  .delinquency-list article > em {
    text-align: left;
  }
  .delinquency-list article > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .delinquency-list article > div:last-child button {
    justify-content: center;
  }
  .communication-history {
    overflow-x: auto;
  }
  .communication-history > div {
    min-width: 520px;
  }
  .reconciliation-layout > section > button {
    grid-template-columns: 1fr auto;
  }
  .reconciliation-layout > section i {
    grid-column: 1 / -1;
    width: max-content;
  }
  .finance-modal-backdrop {
    padding: 8px;
    align-items: end;
  }
  .finance-modal-backdrop > div {
    max-height: calc(100svh - 16px);
    padding: 27px 18px max(18px, env(safe-area-inset-bottom));
  }
  .payment-main-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .finance-modal-backdrop input,
  .finance-modal-backdrop select,
  .finance-modal-backdrop textarea {
    font-size: 16px;
  }
  .payment-allocation > label {
    grid-template-columns: 1fr 105px;
  }
  .payment-balance {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 390px) {
  .receivables-metrics,
  .receivables-toolbar,
  .receivable-detail-metrics,
  .aging-grid,
  .reconciliation-summary,
  .receivables-page-head > div:last-child {
    grid-template-columns: minmax(0, 1fr);
  }
  .receivables-toolbar label,
  .receivables-toolbar > button {
    grid-column: auto;
  }
  .finance-confirm-dialog > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Briker owner wealth portal */
.owner-portal {
  --owner-sidebar: 252px;
  min-height: 100svh;
  display: grid;
  grid-template-columns: var(--owner-sidebar) minmax(0, 1fr);
  color: var(--midnight);
  background: var(--ivory);
}
.owner-portal svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}
.owner-portal-sidebar {
  min-height: 100svh;
  border-right: 1px solid var(--line);
  background: #f0eee8;
}
.owner-portal-sidebar-inner {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 18px 14px 15px;
  display: flex;
  flex-direction: column;
}
.owner-portal-brand {
  min-height: 38px;
  padding: 0 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.owner-portal-brand .logo {
  color: var(--midnight);
}
.owner-portal-brand > button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}
.owner-portal-brand svg {
  width: 17px;
}
.owner-portal-account {
  min-height: 69px;
  margin: 19px 0 18px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.owner-portal-account > span,
.owner-topbar-actions > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  background: var(--forest);
  font-family: 'DM Serif Display', serif;
  font-size: 12px;
}
.owner-portal-account strong,
.owner-portal-account small {
  display: block;
}
.owner-portal-account strong {
  font-size: 8px;
}
.owner-portal-account small {
  margin-top: 4px;
  color: #7a817c;
  font-size: 7px;
}
.owner-portal-sidebar nav {
  display: grid;
  gap: 2px;
}
.owner-portal-sidebar nav > span {
  margin: 0 9px 7px;
  color: #8b918d;
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.owner-portal-sidebar nav button {
  min-height: 39px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  color: #5f6862;
  background: transparent;
  font-size: 8px;
  text-align: left;
}
.owner-portal-sidebar nav button:hover,
.owner-portal-sidebar nav button.active {
  color: var(--midnight);
  background: #e2e5df;
}
.owner-portal-sidebar nav button.active {
  box-shadow: inset 2px 0 var(--forest);
  font-weight: 600;
}
.owner-portal-sidebar nav svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
}
.owner-portal-access {
  margin-top: auto;
  padding: 12px 9px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-top: 1px solid var(--line);
}
.owner-portal-access > svg {
  width: 16px;
  flex-shrink: 0;
  color: var(--forest);
  stroke-width: 1.5;
}
.owner-portal-access p {
  margin: 0;
}
.owner-portal-access strong,
.owner-portal-access small {
  display: block;
}
.owner-portal-access strong {
  font-size: 7px;
}
.owner-portal-access small {
  margin-top: 5px;
  color: #858b87;
  font-size: 6px;
  line-height: 1.45;
}
.owner-portal-marketplace {
  min-height: 37px;
  margin-top: 7px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  color: #667069;
  background: transparent;
  font-size: 7px;
}
.owner-portal-marketplace svg {
  width: 14px;
}
.owner-portal-main {
  min-width: 0;
}
.owner-portal-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 66px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 243, 238, 0.94);
  backdrop-filter: blur(14px);
}
.owner-portal-topbar > button {
  display: none;
}
.owner-portal-topbar > div:nth-child(2) span,
.owner-portal-topbar > div:nth-child(2) strong {
  display: block;
}
.owner-portal-topbar > div:nth-child(2) span {
  color: #8b918d;
  font-size: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.owner-portal-topbar > div:nth-child(2) strong {
  margin-top: 4px;
  font-size: 10px;
}
.owner-topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.owner-topbar-actions > button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
}
.owner-topbar-actions button svg {
  width: 15px;
  stroke-width: 1.5;
}
.owner-topbar-actions > span {
  width: 34px;
  height: 34px;
  font-size: 11px;
}
.owner-portal-content {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 22px 28px 45px;
}
.owner-portal-notice {
  min-height: 44px;
  margin: 14px 28px 0;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 17px 1fr 28px;
  align-items: center;
  gap: 8px;
  color: #27282a;
  border: 1px solid #cbd4cc;
  background: #e7ebe5;
  font-size: 8px;
}
.owner-portal-notice svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.5;
}
.owner-portal-notice > button {
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}
.owner-portal-welcome {
  min-height: 174px;
  padding: 27px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  background: var(--midnight);
}
.owner-portal-welcome > div:first-child > span,
.owner-page-heading > div > span,
.owner-section-head > div > span,
.owner-agency-card > div:nth-child(2) > span,
.owner-self-card > span {
  color: #9ca49f;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.owner-portal-welcome h2 {
  margin: 9px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(31px, 3.2vw, 49px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}
.owner-portal-welcome p {
  margin: 10px 0 0;
  color: #abb2ad;
  font-size: 9px;
}
.owner-portfolio-value {
  min-width: 270px;
  padding: 18px 0 18px 25px;
  border-left: 1px solid #3b4248;
}
.owner-portfolio-value span,
.owner-portfolio-value strong,
.owner-portfolio-value small {
  display: block;
}
.owner-portfolio-value span {
  color: #9da59f;
  font-size: 7px;
}
.owner-portfolio-value strong {
  margin-top: 10px;
  font-family: 'DM Serif Display', serif;
  font-size: 31px;
  font-weight: 400;
}
.owner-portfolio-value small {
  margin-top: 8px;
  color: #8f9792;
  font-size: 7px;
}
.owner-wealth-metrics {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, 1fr);
  border-left: 1px solid var(--line);
}
.owner-wealth-metrics article {
  min-height: 138px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8f7f3;
}
.owner-wealth-metrics article.primary {
  background: #e4e9e2;
}
.owner-wealth-metrics article > span {
  color: #747c77;
  font-size: 7px;
}
.owner-wealth-metrics article > strong {
  margin-top: auto;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(18px, 1.75vw, 27px);
  font-weight: 400;
  white-space: nowrap;
}
.owner-wealth-metrics article > em {
  margin-top: 5px;
  color: #5f6962;
  font-size: 8px;
  font-style: normal;
  font-weight: 600;
}
.owner-wealth-metrics article > small,
.owner-wealth-metrics footer {
  margin-top: 7px;
  color: #858b87;
  font-size: 7px;
}
.owner-wealth-metrics footer {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #2b2c2e;
}
.owner-wealth-metrics footer i,
.owner-forecast-strip > span i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--forest);
}
.owner-forecast-strip {
  min-height: 54px;
  padding: 9px 15px;
  display: grid;
  grid-template-columns: 190px auto auto 1fr;
  align-items: center;
  gap: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #eee6dc;
}
.owner-forecast-strip > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #66594e;
  font-size: 7px;
  font-weight: 600;
}
.owner-forecast-strip > span i {
  background: var(--sand);
}
.owner-forecast-strip strong,
.owner-forecast-strip em {
  font-size: 8px;
  font-style: normal;
}
.owner-forecast-strip small {
  color: #84796e;
  font-size: 7px;
  line-height: 1.4;
  text-align: right;
}
.owner-overview-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: 10px;
}
.owner-cash-chart,
.owner-decisions,
.owner-property-snapshot,
.owner-property-detail-grid > section,
.owner-self-managed,
.owner-data-list,
.owner-method-note {
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.owner-section-head {
  min-height: 67px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.owner-section-head > div > span,
.owner-page-heading > div > span {
  color: #7f8681;
}
.owner-section-head h3 {
  margin: 5px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: 21px;
  font-weight: 400;
}
.owner-section-head > b {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--forest);
  font-size: 7px;
  border-radius: 50%;
}
.owner-section-head > button {
  padding: 0;
  border: 0;
  color: var(--forest);
  background: transparent;
  font-size: 7px;
}
.owner-currency-switch {
  padding: 2px;
  display: flex;
  border: 1px solid var(--line);
}
.owner-currency-switch button {
  min-width: 42px;
  height: 28px;
  border: 0;
  color: #7e8580;
  background: transparent;
  font-size: 7px;
}
.owner-currency-switch button.active {
  color: #fff;
  background: var(--forest);
}
.owner-chart-legend {
  padding: 12px 15px 2px;
  display: flex;
  gap: 17px;
}
.owner-chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #747c77;
  font-size: 7px;
}
.owner-chart-legend i {
  width: 8px;
  height: 8px;
  background: var(--forest);
}
.owner-chart-legend span:last-child i {
  background: #d3b08e;
}
.owner-bar-chart {
  height: 235px;
  padding: 22px 22px 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 12px;
  background-image: linear-gradient(to top, rgba(39, 48, 43, 0.07) 1px, transparent 1px);
  background-size: 100% 25%;
}
.owner-bar-chart > div {
  height: 100%;
  flex: 1;
  display: grid;
  grid-template-rows: 1fr 20px;
  gap: 5px;
}
.owner-bar-chart > div > div {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}
.owner-bar-chart i,
.owner-bar-chart b {
  width: min(13px, 37%);
  display: block;
  background: #d3b08e;
}
.owner-bar-chart b {
  background: var(--forest);
}
.owner-bar-chart > div > span {
  align-self: end;
  color: #858b87;
  font-size: 7px;
  text-align: center;
}
.owner-decisions > button {
  width: 100%;
  min-height: 82px;
  padding: 11px 13px;
  display: grid;
  grid-template-columns: 34px 1fr 16px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
  background: transparent;
  text-align: left;
}
.owner-decisions > button:hover {
  background: #edf0eb;
}
.owner-decision-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: #e2e8e1;
}
.owner-decision-icon svg {
  width: 16px;
  stroke-width: 1.5;
}
.owner-decisions button strong,
.owner-decisions button small {
  display: block;
}
.owner-decisions button strong {
  font-size: 8px;
}
.owner-decisions button small {
  margin-top: 5px;
  color: #858b87;
  font-size: 7px;
  line-height: 1.35;
}
.owner-decisions button > svg {
  width: 14px;
  color: #8f9591;
}
.owner-property-snapshot {
  margin-top: 10px;
}
.owner-property-snapshot > div:last-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.owner-property-snapshot > div:last-child > button {
  min-width: 0;
  padding: 0;
  display: grid;
  grid-template-rows: 150px auto auto;
  border: 0;
  border-right: 1px solid var(--line);
  color: inherit;
  background: transparent;
  text-align: left;
}
.owner-property-snapshot > div:last-child > button:last-child {
  border-right: 0;
}
.owner-property-snapshot button > img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.owner-property-snapshot button > span {
  padding: 12px;
}
.owner-property-snapshot button > span:last-child {
  padding-top: 0;
}
.owner-property-snapshot button i,
.owner-property-snapshot button strong,
.owner-property-snapshot button small {
  display: block;
}
.owner-property-snapshot button i {
  width: max-content;
  min-height: 21px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  color: #7a624c;
  background: #efe4d6;
  font-size: 6px;
  font-style: normal;
}
.owner-property-snapshot button i.occupied {
  color: #27282a;
  background: #dfe7de;
}
.owner-property-snapshot button strong {
  margin-top: 9px;
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  font-weight: 400;
}
.owner-property-snapshot button small {
  margin-top: 5px;
  color: #858b87;
  font-size: 7px;
  line-height: 1.4;
}
.owner-property-snapshot button > span:last-child strong {
  margin-top: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 600;
}
.owner-page-heading {
  min-height: 124px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.owner-page-heading h2 {
  margin: 7px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.owner-page-heading p {
  margin: 7px 0 0;
  color: #747c77;
  font-size: 8px;
}
.owner-page-heading > label {
  color: #747c77;
  font-size: 7px;
  text-transform: uppercase;
}
.owner-page-heading select {
  min-width: 250px;
  min-height: 42px;
  margin-top: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 8px;
  text-transform: none;
}
.owner-property-hero {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr);
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.owner-property-gallery {
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(140px, 0.6fr);
  gap: 3px;
  background: var(--line);
  overflow: hidden;
}
.owner-property-gallery > img {
  width: 100%;
  height: 410px;
  object-fit: cover;
}
.owner-property-gallery > div {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
}
.owner-property-gallery > div img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.owner-property-intro {
  padding: 27px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}
.owner-occupancy {
  min-height: 25px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  color: #735b45;
  background: #efe4d6;
  font-size: 6px;
  text-transform: uppercase;
}
.owner-occupancy.ocupada {
  color: #27282a;
  background: #dfe7de;
}
.owner-property-intro h2 {
  margin: 15px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(27px, 2.6vw, 39px);
  font-weight: 400;
  line-height: 1.05;
}
.owner-property-intro > p {
  margin: 7px 0 0;
  color: #747c77;
  font-size: 8px;
}
.owner-property-intro > div {
  width: 100%;
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.owner-property-intro > div > span {
  min-height: 68px;
  padding: 12px 0;
}
.owner-property-intro > div > span:last-child {
  padding-left: 13px;
  border-left: 1px solid var(--line);
}
.owner-property-intro small,
.owner-property-intro strong {
  display: block;
}
.owner-property-intro small {
  color: #858b87;
  font-size: 7px;
}
.owner-property-intro strong {
  margin-top: 7px;
  font-size: 8px;
}
.owner-property-intro > button {
  width: 100%;
  min-height: 43px;
  margin-top: auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--forest);
  color: #fff;
  background: var(--forest);
  font-size: 8px;
}
.owner-property-intro button svg {
  width: 16px;
  stroke-width: 1.5;
}
.owner-property-financials {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}
.owner-property-financials article {
  min-height: 117px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8f7f3;
}
.owner-property-financials span {
  color: #7b827d;
  font-size: 7px;
}
.owner-property-financials strong {
  margin-top: auto;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(17px, 1.55vw, 24px);
  font-weight: 400;
  white-space: nowrap;
}
.owner-property-financials small {
  margin-top: 6px;
  color: #858b87;
  font-size: 7px;
  line-height: 1.4;
}
.owner-property-detail-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.owner-contract-summary {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.owner-contract-summary > div {
  min-height: 73px;
  padding: 13px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.owner-contract-summary dt {
  color: #858b87;
  font-size: 7px;
}
.owner-contract-summary dd {
  margin: 8px 0 0;
  font-size: 8px;
  font-weight: 600;
}
.owner-mini-history {
  height: 146px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  gap: 13px;
  background-image: linear-gradient(to top, rgba(39, 48, 43, 0.07) 1px, transparent 1px);
  background-size: 100% 33.33%;
}
.owner-mini-history > span {
  height: 100%;
  flex: 1;
  display: grid;
  grid-template-rows: 1fr 18px;
  align-items: end;
}
.owner-mini-history i {
  width: min(28px, 70%);
  margin: 0 auto;
  display: block;
  background: var(--forest);
}
.owner-mini-history small {
  color: #858b87;
  font-size: 7px;
  text-align: center;
}
.owner-self-managed {
  margin-top: 10px;
}
.owner-self-managed > div:last-child {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.owner-self-managed > div:last-child button {
  min-height: 66px;
  padding: 0 13px;
  display: grid;
  grid-template-columns: 20px 1fr 15px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-right: 1px solid var(--line);
  color: inherit;
  background: transparent;
  font-size: 8px;
  text-align: left;
}
.owner-self-managed button svg {
  width: 15px;
  color: var(--forest);
}
.owner-agency-boundary {
  min-height: 78px;
  margin-top: 10px;
  padding: 15px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid #cbd4cc;
  background: #e7ebe5;
}
.owner-agency-boundary.compact {
  margin-top: 0;
}
.owner-agency-boundary > svg,
.owner-method-note > svg {
  width: 18px;
  flex-shrink: 0;
  color: var(--forest);
  stroke-width: 1.5;
}
.owner-agency-boundary p,
.owner-method-note p {
  margin: 0;
}
.owner-agency-boundary strong,
.owner-agency-boundary span,
.owner-method-note strong,
.owner-method-note span {
  display: block;
}
.owner-agency-boundary strong,
.owner-method-note strong {
  font-size: 8px;
}
.owner-agency-boundary span,
.owner-method-note span {
  max-width: 780px;
  margin-top: 6px;
  color: #667069;
  font-size: 7px;
  line-height: 1.55;
}
.owner-standard-page {
  display: grid;
  gap: 10px;
}
.owner-data-list article {
  min-height: 70px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 38px minmax(200px, 1.2fr) minmax(140px, 0.7fr) 160px 38px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.owner-data-list.transactions article {
  grid-template-columns: 38px minmax(200px, 1.2fr) minmax(140px, 0.7fr) 140px;
}
.owner-list-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: #e2e8e1;
}
.owner-list-icon.expense {
  color: #7e6149;
  background: #eee2d4;
}
.owner-list-icon svg {
  width: 16px;
  stroke-width: 1.5;
}
.owner-data-list article > span strong,
.owner-data-list article > span small {
  display: block;
}
.owner-data-list article > span strong {
  font-size: 8px;
}
.owner-data-list article > span small {
  margin-top: 5px;
  color: #858b87;
  font-size: 7px;
}
.owner-data-list article > i {
  width: max-content;
  min-height: 24px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  color: #745d48;
  background: #f1e5d7;
  font-size: 6px;
  font-style: normal;
}
.owner-data-list article > i.complete {
  color: #27282a;
  background: #dfe7de;
}
.owner-data-list article > button {
  min-height: 34px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--forest);
  background: #fff;
  font-size: 7px;
}
.owner-data-list article > button:disabled {
  opacity: 0.35;
}
.owner-data-list article > button svg {
  width: 15px;
  stroke-width: 1.5;
}
.owner-data-list.maintenance article > button {
  width: max-content;
  white-space: nowrap;
}
.owner-data-list .positive {
  color: #28292b;
}
.owner-data-list .negative {
  color: #82504b;
}
.owner-cash-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
}
.owner-cash-summary article {
  min-height: 105px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8f7f3;
}
.owner-cash-summary span {
  color: #7b827d;
  font-size: 7px;
}
.owner-cash-summary strong {
  margin-top: auto;
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  font-weight: 400;
}
.owner-cash-summary small {
  margin-top: 5px;
  color: #858b87;
  font-size: 7px;
}
.owner-yield-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.owner-yield-grid article {
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.owner-yield-grid article > img {
  width: 100%;
  height: 145px;
  object-fit: cover;
}
.owner-yield-grid article > div {
  padding: 16px;
}
.owner-yield-grid article > div > span {
  color: #747c77;
  font-size: 8px;
}
.owner-yield-grid article > div > strong {
  margin-top: 15px;
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  font-weight: 400;
}
.owner-yield-grid article > div > small {
  color: #858b87;
  font-size: 7px;
}
.owner-yield-grid dl {
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
}
.owner-yield-grid dl > div {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.owner-yield-grid dt {
  color: #858b87;
  font-size: 7px;
}
.owner-yield-grid dd {
  margin: 0;
  font-size: 8px;
  font-weight: 600;
}
.owner-yield-grid p {
  margin: 13px 0 0;
  color: #8a8178;
  font-size: 7px;
  line-height: 1.45;
}
.owner-method-note {
  min-height: 76px;
  padding: 15px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: #e7ebe5;
}
.owner-document-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.owner-document-grid article {
  min-height: 230px;
  padding: 17px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.owner-document-grid article > svg {
  width: 27px;
  height: 27px;
  margin-top: 24px;
  color: var(--forest);
  stroke-width: 1.3;
}
.owner-doc-type {
  position: absolute;
  top: 14px;
  right: 14px;
  color: #7f8681;
  font-size: 6px;
  text-transform: uppercase;
}
.owner-document-grid article > strong {
  margin-top: 18px;
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  font-weight: 400;
}
.owner-document-grid article > small {
  margin-top: 6px;
  color: #858b87;
  font-size: 7px;
}
.owner-document-grid footer {
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
}
.owner-document-grid footer > span {
  color: #858b87;
  font-size: 7px;
}
.owner-document-grid footer button {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--forest);
  background: #fff;
}
.owner-document-grid footer svg {
  width: 14px;
}
.owner-agency-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 10px;
}
.owner-agency-card,
.owner-self-card {
  padding: 22px;
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.owner-agency-card {
  display: grid;
  grid-template-columns: 55px 1fr auto;
  align-items: center;
  gap: 15px;
}
.owner-agency-mark {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--forest);
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
}
.owner-agency-card h3,
.owner-self-card h3 {
  margin: 6px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: 25px;
  font-weight: 400;
}
.owner-agency-card p,
.owner-self-card p {
  margin: 7px 0 0;
  color: #747c77;
  font-size: 8px;
  line-height: 1.5;
}
.owner-agency-card > button,
.owner-self-card > button {
  min-height: 39px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--forest);
  color: #fff;
  background: var(--forest);
  font-size: 8px;
}
.owner-agency-card button svg,
.owner-self-card button svg {
  width: 15px;
  stroke-width: 1.5;
}
.owner-agency-card dl {
  margin: 18px 0 0;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.owner-agency-card dl > div {
  min-height: 61px;
  padding: 12px 0;
}
.owner-agency-card dt {
  color: #858b87;
  font-size: 7px;
}
.owner-agency-card dd {
  margin: 7px 0 0;
  font-size: 8px;
  font-weight: 600;
}
.owner-self-card {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}
.owner-self-card > button {
  width: 100%;
  margin-top: auto;
  justify-content: space-between;
  color: var(--forest);
  background: #fff;
}
.owner-mobile-nav,
.owner-more-backdrop,
.owner-portal-drawer {
  display: none;
}

@media (max-width: 1150px) {
  .owner-portal {
    --owner-sidebar: 218px;
  }
  .owner-wealth-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .owner-overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .owner-property-financials {
    grid-template-columns: repeat(3, 1fr);
  }
  .owner-yield-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 850px) {
  .owner-portal {
    --owner-sidebar: 74px;
  }
  .owner-portal-sidebar-inner {
    padding-inline: 8px;
  }
  .owner-portal-brand .logo span,
  .owner-portal-account > div,
  .owner-portal-sidebar nav > span,
  .owner-portal-sidebar nav button > span,
  .owner-portal-access p,
  .owner-portal-marketplace {
    display: none;
  }
  .owner-portal-brand .logo,
  .owner-portal-account,
  .owner-portal-sidebar nav button {
    justify-content: center;
  }
  .owner-portal-account {
    border: 0;
    background: transparent;
  }
  .owner-portal-sidebar nav button {
    padding: 0;
  }
  .owner-portal-access {
    justify-content: center;
  }
  .owner-property-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .owner-property-intro {
    min-height: 310px;
  }
  .owner-data-list article {
    grid-template-columns: 38px minmax(180px, 1fr) minmax(130px, 0.7fr) 140px 38px;
  }
}

@media (max-width: 700px) {
  .owner-portal {
    min-height: 100svh;
    display: block;
    padding-bottom: calc(69px + env(safe-area-inset-bottom));
  }
  .owner-portal-sidebar {
    display: none;
  }
  .owner-portal-topbar {
    min-height: 60px;
    padding: 0 14px;
  }
  .owner-portal-topbar > button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
  }
  .owner-portal-topbar > button svg {
    width: 18px;
  }
  .owner-topbar-actions > button {
    display: none;
  }
  .owner-portal-content {
    padding: 10px 10px 24px;
  }
  .owner-portal-notice {
    margin: 9px 10px 0;
  }
  .owner-portal-welcome {
    min-height: 245px;
    padding: 22px 19px;
    align-items: flex-start;
    flex-direction: column;
  }
  .owner-portal-welcome h2 {
    font-size: 37px;
  }
  .owner-portfolio-value {
    width: 100%;
    min-width: 0;
    padding: 16px 0 0;
    border-top: 1px solid #3b4248;
    border-left: 0;
  }
  .owner-portfolio-value strong {
    font-size: 27px;
  }
  .owner-wealth-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .owner-wealth-metrics article {
    min-height: 117px;
    padding: 12px;
  }
  .owner-wealth-metrics article.primary {
    grid-column: 1 / -1;
    min-height: 135px;
  }
  .owner-wealth-metrics article > strong {
    font-size: 21px;
  }
  .owner-forecast-strip {
    padding: 13px;
    grid-template-columns: 1fr auto;
    gap: 7px 12px;
  }
  .owner-forecast-strip small {
    grid-column: 1 / -1;
    text-align: left;
  }
  .owner-cash-chart,
  .owner-decisions,
  .owner-property-snapshot {
    min-width: 0;
  }
  .owner-bar-chart {
    height: 220px;
    padding-inline: 12px;
  }
  .owner-property-snapshot > div:last-child {
    grid-template-columns: minmax(0, 1fr);
  }
  .owner-property-snapshot > div:last-child > button {
    min-height: 118px;
    grid-template-columns: 108px 1fr;
    grid-template-rows: auto auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .owner-property-snapshot button > img {
    width: 108px;
    height: 100%;
    grid-row: 1 / 3;
  }
  .owner-property-snapshot button > span:last-child {
    padding-top: 0;
  }
  .owner-page-heading {
    min-height: 0;
    padding: 19px 16px;
    align-items: stretch;
    flex-direction: column;
  }
  .owner-page-heading h2 {
    font-size: 34px;
  }
  .owner-page-heading > label {
    display: grid;
    gap: 5px;
  }
  .owner-page-heading select {
    min-width: 0;
    min-height: 44px;
    margin: 0;
    font-size: 16px;
  }
  .owner-property-gallery {
    min-height: 260px;
    display: block;
  }
  .owner-property-gallery > img {
    height: 260px;
  }
  .owner-property-gallery > div {
    display: none;
  }
  .owner-property-intro {
    min-height: 305px;
    padding: 19px;
  }
  .owner-property-financials {
    grid-template-columns: 1fr 1fr;
  }
  .owner-property-financials article {
    min-height: 102px;
    padding: 12px;
  }
  .owner-property-financials article:last-child {
    grid-column: 1 / -1;
  }
  .owner-property-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .owner-contract-summary {
    grid-template-columns: minmax(0, 1fr);
  }
  .owner-self-managed > div:last-child {
    grid-template-columns: 1fr 1fr;
  }
  .owner-data-list {
    padding: 8px;
  }
  .owner-data-list article,
  .owner-data-list.transactions article {
    min-height: 0;
    margin-bottom: 8px;
    padding: 13px;
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 10px;
    border: 1px solid var(--line);
    background: #fff;
  }
  .owner-data-list article > span:nth-child(3) {
    grid-column: 2 / -1;
  }
  .owner-data-list article > i {
    grid-column: 2;
  }
  .owner-data-list article > button {
    grid-column: 3;
    grid-row: 2 / 4;
  }
  .owner-data-list.maintenance article > button {
    grid-column: 2 / -1;
    grid-row: auto;
    width: 100%;
  }
  .owner-cash-summary {
    grid-template-columns: minmax(0, 1fr);
  }
  .owner-yield-grid,
  .owner-document-grid,
  .owner-agency-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .owner-yield-grid article {
    display: grid;
    grid-template-columns: 115px 1fr;
  }
  .owner-yield-grid article > img {
    height: 100%;
    min-height: 260px;
  }
  .owner-document-grid {
    gap: 8px;
  }
  .owner-document-grid article {
    min-height: 205px;
  }
  .owner-agency-card {
    grid-template-columns: 50px 1fr;
  }
  .owner-agency-card > button {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .owner-agency-card dl {
    grid-template-columns: minmax(0, 1fr);
  }
  .owner-mobile-nav {
    position: fixed;
    z-index: 70;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: calc(65px + env(safe-area-inset-bottom));
    padding: 5px 5px max(5px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    background: rgba(248, 247, 243, 0.96);
    backdrop-filter: blur(16px);
  }
  .owner-mobile-nav button {
    min-width: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    border: 0;
    color: #7d847f;
    background: transparent;
    font-size: 6px;
  }
  .owner-mobile-nav button.active {
    color: var(--forest);
  }
  .owner-mobile-nav svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.5;
  }
  .owner-portal-drawer {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: block;
    background: rgba(12, 17, 21, 0.48);
  }
  .owner-portal-drawer > aside {
    width: min(86vw, 310px);
    height: 100%;
    background: #f0eee8;
  }
  .owner-portal-drawer .owner-portal-sidebar-inner {
    position: static;
    height: 100%;
    padding: 18px 14px;
  }
  .owner-portal-drawer .owner-portal-brand .logo span,
  .owner-portal-drawer .owner-portal-account > div,
  .owner-portal-drawer nav > span,
  .owner-portal-drawer nav button > span,
  .owner-portal-drawer .owner-portal-access p,
  .owner-portal-drawer .owner-portal-marketplace {
    display: initial;
  }
  .owner-portal-drawer .owner-portal-account,
  .owner-portal-drawer nav button {
    justify-content: flex-start;
  }
  .owner-portal-drawer .owner-portal-account {
    border: 1px solid var(--line);
    background: #f8f7f3;
  }
  .owner-portal-drawer nav button {
    padding: 0 10px;
  }
  .owner-portal-drawer .owner-portal-access {
    justify-content: flex-start;
  }
  .owner-portal-drawer .owner-portal-marketplace {
    display: flex;
  }
  .owner-more-backdrop {
    position: fixed;
    z-index: 95;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: rgba(12, 17, 21, 0.48);
  }
  .owner-more-backdrop > section {
    width: 100%;
    max-height: 80svh;
    padding: 12px 12px max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--ivory);
    overflow-y: auto;
  }
  .owner-more-backdrop header {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #747c77;
    font-size: 7px;
    font-weight: 600;
    text-transform: uppercase;
  }
  .owner-more-backdrop header button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
  }
  .owner-more-backdrop > section > button {
    width: 100%;
    min-height: 53px;
    padding: 0 10px;
    display: grid;
    grid-template-columns: 22px 1fr 16px;
    align-items: center;
    gap: 10px;
    border: 0;
    border-top: 1px solid var(--line-soft);
    color: inherit;
    background: transparent;
    font-size: 8px;
    text-align: left;
  }
  .owner-more-backdrop svg {
    width: 17px;
    color: var(--forest);
    stroke-width: 1.5;
  }
}

@media (max-width: 390px) {
  .owner-wealth-metrics,
  .owner-property-financials,
  .owner-self-managed > div:last-child {
    grid-template-columns: minmax(0, 1fr);
  }
  .owner-wealth-metrics article.primary,
  .owner-property-financials article:last-child {
    grid-column: 1;
  }
  .owner-wealth-metrics article {
    min-height: 104px;
  }
  .owner-forecast-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .owner-forecast-strip small {
    grid-column: 1;
  }
  .owner-property-snapshot > div:last-child > button {
    min-height: 130px;
    grid-template-columns: 94px 1fr;
  }
  .owner-property-snapshot button > img {
    width: 94px;
  }
  .owner-yield-grid article {
    grid-template-columns: minmax(0, 1fr);
  }
  .owner-yield-grid article > img {
    min-height: 0;
    height: 150px;
  }
  .owner-mobile-nav button span {
    font-size: 5px;
  }
}

/* Briker Collect · owner settlements */
.settlements-page,
.settlement-detail-page,
.owner-account-page {
  display: grid;
  gap: 10px;
  color: var(--midnight);
}
.settlements-hero {
  min-height: 146px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.settlements-hero > div:first-child > span,
.settlement-section-head > div > span,
.settlement-detail-head > div > span,
.settlement-modal header span,
.owner-identity p {
  color: #7d847f;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.settlements-hero h2 {
  max-width: 720px;
  margin: 8px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 2.6vw, 42px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
.settlements-hero p {
  max-width: 670px;
  margin: 10px 0 0;
  color: #69716c;
  font-size: 9px;
  line-height: 1.55;
}
.settlements-hero > div:last-child {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.simulated-funds-label {
  min-height: 30px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #725b48;
  border: 1px solid #d0c1ae;
  background: #f1e8dc;
  font-size: 7px;
  white-space: nowrap;
}
.simulated-funds-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sand);
}
.settlements-hero > div:last-child > button,
.settlement-primary-button,
.settlement-outline-button,
.settlement-danger-button {
  min-height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--forest);
  color: #fff;
  background: var(--forest);
  font-size: 8px;
  font-weight: 500;
}
.settlements-hero button svg,
.settlement-primary-button svg,
.settlement-outline-button svg,
.settlement-danger-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.6;
}
.settlement-outline-button {
  color: var(--forest);
  border-color: var(--line);
  background: #fff;
}
.settlement-danger-button {
  color: #814e49;
  border-color: #d1b7b2;
  background: #f4e7e4;
}
.settlement-primary-button:disabled {
  opacity: 0.45;
}
.settlement-notice {
  min-height: 46px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 18px 1fr 28px;
  align-items: center;
  gap: 8px;
  color: #27282a;
  border: 1px solid #cbd4cc;
  background: #e7ebe5;
  font-size: 8px;
}
.settlement-notice svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
}
.settlement-notice > button {
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}
.settlement-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.settlement-metrics article {
  min-height: 124px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8f7f3;
}
.settlement-metrics article > span,
.settlement-counts article > span,
.settlement-detail-metrics article > span {
  color: #7b827d;
  font-size: 7px;
}
.settlement-metrics strong {
  margin-top: auto;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(17px, 1.55vw, 23px);
  font-weight: 400;
  white-space: nowrap;
}
.settlement-metrics em {
  margin-top: 5px;
  color: #5f6862;
  font-size: 8px;
  font-style: normal;
  font-weight: 600;
}
.settlement-metrics small,
.settlement-counts small,
.settlement-detail-metrics small {
  margin-top: 6px;
  color: #898f8b;
  font-size: 7px;
  line-height: 1.4;
}
.settlement-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.settlement-counts article {
  min-height: 90px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.settlement-counts strong {
  grid-row: 1 / 3;
  grid-column: 2;
  font-family: 'DM Serif Display', serif;
  font-size: 31px;
  font-weight: 400;
}
.settlement-counts small {
  margin: 0;
}
.settlement-directory,
.settlement-ledger,
.settlement-breakdown,
.settlement-workflow,
.ownership-distribution,
.settlement-movements,
.settlement-audit-grid > section,
.owner-settlement-history {
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.settlement-section-head {
  min-height: 66px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.settlement-section-head h3 {
  margin: 5px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: 21px;
  font-weight: 400;
}
.settlement-section-head > b {
  color: var(--forest);
  font-size: 7px;
  font-weight: 600;
}
.settlement-section-head > label {
  color: #737a75;
  font-size: 7px;
  text-transform: uppercase;
}
.settlement-section-head select {
  min-width: 190px;
  min-height: 36px;
  margin-left: 8px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 8px;
  text-transform: none;
}
.settlement-table-head,
.settlement-directory > button {
  min-width: 1010px;
  display: grid;
  grid-template-columns: 1.25fr 1.1fr 0.85fr 0.9fr 0.85fr 0.85fr;
  align-items: center;
  gap: 12px;
}
.settlement-directory {
  overflow-x: auto;
}
.settlement-table-head {
  min-height: 34px;
  padding: 0 14px;
  color: #8a908c;
  border-bottom: 1px solid var(--line-soft);
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.settlement-directory > button {
  width: 100%;
  min-height: 72px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
  background: transparent;
  text-align: left;
}
.settlement-directory > button:hover {
  background: #edf0eb;
}
.settlement-directory > button > span {
  min-width: 0;
}
.settlement-directory strong,
.settlement-directory small {
  display: block;
}
.settlement-directory strong {
  font-size: 8px;
  font-weight: 600;
  line-height: 1.35;
}
.settlement-directory small {
  margin-top: 5px;
  color: #858b87;
  font-size: 7px;
  line-height: 1.35;
}
.settlement-status {
  min-height: 25px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5f6862;
  border: 1px solid #cdd2ce;
  background: #f0f1ee;
  font-size: 6px;
  font-style: normal;
  white-space: nowrap;
}
.settlement-status.liquidada,
.settlement-status.aprobada {
  color: #28292b;
  border-color: #c4c5c7;
  background: #e1e8e0;
}
.settlement-status.pendiente-de-aprobacion,
.settlement-status.pendiente-de-transferencia,
.settlement-status.transferencia-parcial {
  color: #765d44;
  border-color: #d7c3aa;
  background: #f3e7d8;
}
.settlement-status.anulada {
  color: #7a4f4b;
  border-color: #d9c2bd;
  background: #f1e2df;
}
.ledger-head,
.settlement-ledger article {
  min-width: 900px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1.2fr 0.9fr 0.75fr;
  align-items: center;
  gap: 12px;
}
.settlement-ledger {
  overflow-x: auto;
}
.ledger-head {
  min-height: 34px;
  padding: 0 14px;
  color: #8a908c;
  border-bottom: 1px solid var(--line-soft);
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.settlement-ledger article {
  min-height: 62px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 8px;
}
.settlement-ledger article span {
  min-width: 0;
  line-height: 1.45;
}
.settlement-ledger article strong,
.settlement-ledger article small {
  display: block;
}
.settlement-ledger article small {
  margin-top: 4px;
  color: #858b87;
  font-size: 7px;
}
.settlement-ledger article b {
  text-align: right;
  font-size: 8px;
}
.ledger-empty {
  min-height: 90px;
  margin: 0;
  padding: 30px 14px;
  color: #858b87;
  font-size: 8px;
}
.settlement-detail-head {
  min-height: 134px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 145px 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.settlement-detail-head > button {
  align-self: start;
  justify-self: start;
  padding: 0;
  border: 0;
  color: #727a75;
  background: transparent;
  font-size: 8px;
}
.settlement-detail-head h2,
.owner-identity h2 {
  margin: 6px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  font-weight: 400;
}
.settlement-detail-head p {
  margin: 6px 0 0;
  color: #737b76;
  font-size: 8px;
}
.settlement-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.settlement-detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.settlement-detail-metrics article {
  min-height: 108px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8f7f3;
}
.settlement-detail-metrics article.attention {
  background: #f1e8dc;
}
.settlement-detail-metrics strong {
  margin-top: auto;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
}
.settlement-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.6fr);
  gap: 10px;
}
.settlement-breakdown > div:not(.settlement-section-head),
.settlement-breakdown > footer {
  min-height: 48px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 8px;
}
.settlement-breakdown > div strong {
  font-size: 8px;
}
.settlement-breakdown .negative,
.settlement-movements .negative {
  color: #85524e;
}
.settlement-breakdown > footer {
  min-height: 67px;
  border-bottom: 0;
  background: #e6ebe5;
}
.settlement-breakdown > footer span {
  font-weight: 600;
}
.settlement-breakdown > footer strong {
  font-family: 'DM Serif Display', serif;
  font-size: 25px;
  font-weight: 400;
}
.settlement-workflow {
  padding-bottom: 14px;
}
.workflow-steps {
  padding: 14px;
}
.workflow-steps > div {
  min-height: 36px;
  display: grid;
  grid-template-columns: 13px 1fr;
  align-items: center;
  gap: 9px;
  color: #8a908c;
  font-size: 7px;
}
.workflow-steps > div i {
  width: 8px;
  height: 8px;
  border: 1px solid #aeb4af;
  border-radius: 50%;
}
.workflow-steps > div.active {
  color: var(--forest);
  font-weight: 600;
}
.workflow-steps > div.active i {
  border-color: var(--forest);
  background: var(--forest);
  box-shadow: 0 0 0 4px #e0e7df;
}
.settlement-workflow > button {
  width: calc(100% - 28px);
  margin: 0 14px 8px;
}
.settlement-workflow > p {
  margin: 8px 14px 0;
  color: #858b87;
  font-size: 7px;
  line-height: 1.55;
}
.ownership-distribution > button {
  width: 100%;
  min-height: 62px;
  padding: 10px 15px;
  display: grid;
  grid-template-columns: 1fr 70px 160px 20px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
  background: transparent;
  text-align: left;
}
.ownership-distribution > button:hover {
  background: #edf0eb;
}
.ownership-distribution button strong,
.ownership-distribution button small {
  display: block;
}
.ownership-distribution button strong {
  font-size: 8px;
}
.ownership-distribution button small {
  margin-top: 4px;
  color: #858b87;
  font-size: 7px;
}
.ownership-distribution button em {
  font-size: 8px;
  font-style: normal;
}
.ownership-distribution button b {
  text-align: right;
  font-size: 9px;
}
.ownership-distribution button svg {
  width: 15px;
  stroke-width: 1.5;
}
.settlement-movement-head,
.settlement-movements > div:not(.settlement-section-head) {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr 0.7fr;
  align-items: center;
  gap: 12px;
}
.settlement-movement-head {
  min-height: 34px;
  padding: 0 14px;
  color: #8a908c;
  border-bottom: 1px solid var(--line-soft);
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.settlement-movements > div:not(.settlement-section-head) {
  min-height: 56px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 8px;
}
.settlement-movements > div > span {
  color: #737b76;
}
.settlement-movements > div > b {
  text-align: right;
}
.settlement-audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.settlement-audit-grid article {
  min-height: 52px;
  padding: 9px 14px;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 8px;
}
.settlement-audit-grid article small {
  color: #858b87;
  font-size: 7px;
}
.settlement-audit-grid > section:last-child article {
  grid-template-columns: 7px 1fr;
}
.settlement-audit-grid > section:last-child article i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--forest);
}
.settlement-audit-grid > section > p {
  min-height: 74px;
  margin: 0;
  padding: 22px 14px;
  color: #858b87;
  font-size: 8px;
}
.settlement-modal-backdrop {
  position: fixed;
  z-index: 96;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(12, 17, 21, 0.52);
}
.settlement-modal {
  width: min(100%, 620px);
  max-height: calc(100svh - 40px);
  padding: 25px;
  background: var(--ivory);
  box-shadow: 0 28px 90px rgba(12, 17, 21, 0.25);
  overflow-y: auto;
}
.settlement-modal.settlement-generator {
  width: min(100%, 760px);
}
.settlement-modal header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.settlement-modal header h3 {
  margin: 6px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: 29px;
  font-weight: 400;
}
.settlement-modal header > button {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
}
.settlement-modal header svg {
  width: 15px;
  stroke-width: 1.5;
}
.settlement-modal > p {
  margin: 12px 0 18px;
  color: #747b76;
  font-size: 8px;
  line-height: 1.55;
}
.settlement-modal > label,
.generator-fields label,
.ownership-config label {
  margin-top: 12px;
  display: block;
  color: #6d756f;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.settlement-modal label input:not([type='checkbox']),
.settlement-modal label select,
.settlement-modal label textarea {
  width: 100%;
  min-height: 43px;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  text-transform: none;
}
.settlement-modal label textarea {
  min-height: 94px;
  resize: vertical;
}
.settlement-modal label small {
  margin-top: 5px;
  display: block;
  color: #929793;
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}
.settlement-modal > .settlement-primary-button,
.settlement-modal > .settlement-danger-button {
  width: 100%;
  margin-top: 18px;
}
.payment-context {
  min-height: 76px;
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e6ebe5;
}
.payment-context span {
  color: #69716c;
  font-size: 8px;
}
.payment-context strong {
  font-family: 'DM Serif Display', serif;
  font-size: 25px;
  font-weight: 400;
}
.payment-confirm-check {
  min-height: 54px;
  padding: 10px;
  display: grid !important;
  grid-template-columns: 17px 1fr;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: #fff;
  letter-spacing: 0 !important;
  line-height: 1.45;
  text-transform: none !important;
}
.payment-confirm-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--forest);
}
.generator-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 9px;
}
.ownership-config {
  margin-top: 17px;
  padding: 13px;
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.ownership-config > span {
  color: #747b76;
  font-size: 7px;
  font-weight: 600;
  text-transform: uppercase;
}
.ownership-config > div {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 9px;
}
.ownership-config > p {
  margin: 10px 0 0;
  color: #5f6862;
  font-size: 8px;
}
.generator-preview {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.generator-preview > div {
  min-height: 69px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.generator-preview span,
.generator-preview strong {
  display: block;
}
.generator-preview span {
  color: #858b87;
  font-size: 7px;
}
.generator-preview strong {
  margin-top: 8px;
  font-size: 9px;
}
.owner-account-head {
  min-height: 154px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.owner-account-head > button {
  align-self: start;
  justify-self: start;
  padding: 0;
  border: 0;
  color: #727a75;
  background: transparent;
  font-size: 8px;
}
.owner-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}
.owner-identity > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--forest);
  font-family: 'DM Serif Display', serif;
  font-size: 19px;
}
.owner-identity p {
  margin: 0;
}
.owner-identity small {
  margin-top: 5px;
  display: block;
  color: #747b76;
  font-size: 8px;
}
.owner-bank-note {
  min-width: 220px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.owner-bank-note svg {
  width: 20px;
  color: var(--forest);
  stroke-width: 1.5;
}
.owner-bank-note span,
.owner-bank-note strong {
  display: block;
}
.owner-bank-note span {
  color: #858b87;
  font-size: 7px;
}
.owner-bank-note strong {
  margin-top: 5px;
  color: var(--midnight);
  font-size: 8px;
}
.owner-balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.owner-balance-grid article {
  min-height: 116px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8f7f3;
}
.owner-balance-grid span {
  color: #7b827d;
  font-size: 7px;
}
.owner-balance-grid strong {
  margin-top: auto;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 400;
}
.owner-balance-grid small {
  margin-top: 6px;
  color: #858b87;
  font-size: 7px;
  line-height: 1.4;
}
.owner-settlement-history > button {
  width: 100%;
  min-height: 66px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 1fr 180px 170px 20px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
  background: transparent;
  text-align: left;
}
.owner-settlement-history > button:hover {
  background: #edf0eb;
}
.owner-settlement-history button strong,
.owner-settlement-history button small {
  display: block;
}
.owner-settlement-history button strong {
  font-size: 8px;
}
.owner-settlement-history button small {
  margin-top: 4px;
  color: #858b87;
  font-size: 7px;
}
.owner-settlement-history button svg {
  width: 15px;
  stroke-width: 1.5;
}
.statement-preview-backdrop {
  position: fixed;
  z-index: 110;
  inset: 0;
  padding: 18px;
  display: grid;
  place-items: center;
  background: rgba(12, 17, 21, 0.72);
}
.statement-preview-shell {
  width: min(100%, 860px);
  max-height: calc(100svh - 36px);
  background: #e8e7e3;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.28);
  overflow-y: auto;
}
.statement-preview-toolbar {
  min-height: 54px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
  background: var(--midnight);
  font-size: 8px;
}
.statement-preview-toolbar > div {
  display: flex;
  gap: 7px;
}
.statement-preview-toolbar button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #4f565c;
  color: #fff;
  background: transparent;
  font-size: 7px;
}
.statement-preview-toolbar button:last-child {
  width: 34px;
  padding: 0;
  display: grid;
  place-items: center;
}
.statement-preview-toolbar svg {
  width: 14px;
  stroke-width: 1.5;
}
.owner-statement {
  width: min(100% - 36px, 720px);
  min-height: 900px;
  margin: 18px auto;
  padding: 45px;
  color: #171d24;
  background: #fff;
}
.owner-statement > header {
  padding-bottom: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #d9d9d5;
}
.statement-logo strong,
.statement-logo span {
  display: block;
}
.statement-logo strong {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  letter-spacing: 0.08em;
}
.statement-logo span {
  margin-top: 2px;
  color: #6c746f;
  font-size: 7px;
  letter-spacing: 0.2em;
}
.owner-statement > header > div:last-child {
  text-align: right;
}
.owner-statement > header > div:last-child span,
.owner-statement > header > div:last-child strong {
  display: block;
}
.owner-statement > header > div:last-child span {
  color: #7d847f;
  font-size: 7px;
  text-transform: uppercase;
}
.owner-statement > header > div:last-child strong {
  margin-top: 7px;
  font-size: 10px;
}
.statement-parties {
  padding: 25px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.7fr;
  gap: 20px;
  border-bottom: 1px solid #d9d9d5;
}
.statement-parties span,
.statement-parties strong,
.statement-parties small {
  display: block;
}
.statement-parties span {
  color: #7d847f;
  font-size: 7px;
  text-transform: uppercase;
}
.statement-parties strong {
  margin-top: 8px;
  font-size: 9px;
}
.statement-parties small {
  margin-top: 5px;
  color: #7d847f;
  font-size: 7px;
}
.statement-lines {
  margin-top: 24px;
}
.statement-lines-head,
.statement-lines > div:not(.statement-lines-head) {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr;
  align-items: center;
  gap: 12px;
}
.statement-lines-head {
  min-height: 32px;
  color: #7d847f;
  border-bottom: 1px solid #cfcfcb;
  font-size: 6px;
  font-weight: 600;
  text-transform: uppercase;
}
.statement-lines > div:not(.statement-lines-head) {
  min-height: 55px;
  border-bottom: 1px solid #e5e5e1;
  font-size: 8px;
}
.statement-lines > div > span:first-child strong,
.statement-lines > div > span:first-child small {
  display: block;
}
.statement-lines > div > span:first-child small {
  margin-top: 4px;
  color: #7d847f;
  font-size: 7px;
}
.statement-lines > div > b {
  text-align: right;
}
.statement-total {
  margin-top: 26px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 7px 20px;
  background: #eef0ec;
}
.statement-total > span {
  color: #6c746f;
  font-size: 8px;
}
.statement-total > strong {
  grid-row: 1 / 3;
  grid-column: 2;
  font-family: 'DM Serif Display', serif;
  font-size: 27px;
  font-weight: 400;
}
.statement-total > i {
  justify-self: start;
}
.owner-statement > footer {
  margin-top: 160px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #d9d9d5;
  color: #7d847f;
  font-size: 7px;
}
.owner-statement > footer small {
  max-width: 360px;
  text-align: right;
  line-height: 1.45;
}

@media (max-width: 1200px) {
  .settlement-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .settlement-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 800px) {
  .settlements-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .settlement-detail-head,
  .owner-account-head {
    grid-template-columns: 1fr;
  }
  .settlement-detail-actions {
    justify-content: space-between;
  }
  .settlement-detail-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .settlement-audit-grid {
    grid-template-columns: 1fr;
  }
  .owner-bank-note {
    min-width: 0;
  }
  .owner-balance-grid {
    grid-template-columns: 1fr 1fr;
  }
  .owner-balance-grid article:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .settlements-page,
  .settlement-detail-page,
  .owner-account-page {
    gap: 8px;
  }
  .settlements-hero {
    min-height: 0;
    padding: 19px 16px;
  }
  .settlements-hero h2 {
    font-size: 30px;
  }
  .settlements-hero > div:last-child {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }
  .simulated-funds-label {
    justify-content: center;
  }
  .settlement-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .settlement-metrics article {
    min-height: 108px;
    padding: 12px;
  }
  .settlement-counts {
    grid-template-columns: minmax(0, 1fr);
  }
  .settlement-section-head {
    align-items: stretch;
    flex-direction: column;
  }
  .settlement-section-head > label {
    display: grid;
    gap: 5px;
  }
  .settlement-section-head select {
    min-height: 42px;
    margin: 0;
    font-size: 16px;
  }
  .settlement-directory {
    padding: 8px;
    overflow: visible;
  }
  .settlement-table-head,
  .ledger-head {
    display: none;
  }
  .settlement-directory > button {
    min-width: 0;
    min-height: 0;
    margin-bottom: 8px;
    padding: 13px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 14px 10px;
    border: 1px solid var(--line);
    background: #fff;
  }
  .settlement-directory > button > span {
    padding-top: 13px;
    position: relative;
  }
  .settlement-directory > button > span::before,
  .settlement-ledger article > *::before {
    content: attr(data-label);
    position: absolute;
    top: 0;
    left: 0;
    color: #959a97;
    font-size: 6px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .settlement-directory > button > span:first-child,
  .settlement-directory > button > span:nth-child(2) {
    grid-column: 1 / -1;
  }
  .settlement-ledger {
    padding: 0 8px 8px;
    overflow: visible;
  }
  .settlement-ledger .settlement-section-head {
    margin: 0 -8px 8px;
  }
  .settlement-ledger article {
    min-width: 0;
    min-height: 0;
    margin-bottom: 8px;
    padding: 13px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 14px 10px;
    border: 1px solid var(--line);
    background: #fff;
  }
  .settlement-ledger article > * {
    padding-top: 13px;
    position: relative;
  }
  .settlement-ledger article > span:nth-child(2),
  .settlement-ledger article > span:nth-child(3) {
    grid-column: 1 / -1;
  }
  .settlement-ledger article b {
    text-align: left;
  }
  .settlement-detail-head,
  .owner-account-head {
    padding: 17px;
  }
  .settlement-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .settlement-detail-metrics article {
    min-height: 98px;
    padding: 12px;
  }
  .ownership-distribution > button {
    grid-template-columns: 1fr auto;
  }
  .ownership-distribution button em {
    text-align: right;
  }
  .ownership-distribution button b {
    text-align: left;
  }
  .settlement-movement-head {
    display: none;
  }
  .settlement-movements {
    padding: 0 8px 8px;
  }
  .settlement-movements .settlement-section-head {
    margin: 0 -8px 8px;
  }
  .settlement-movements > div:not(.settlement-section-head) {
    min-height: 0;
    margin-bottom: 8px;
    padding: 13px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
    border: 1px solid var(--line);
    background: #fff;
  }
  .settlement-movements > div > span:nth-child(3) {
    grid-column: 1 / -1;
  }
  .settlement-audit-grid article {
    grid-template-columns: 80px 1fr;
  }
  .settlement-audit-grid article small {
    grid-column: 2;
  }
  .settlement-modal-backdrop {
    padding: 8px;
    align-items: end;
  }
  .settlement-modal {
    width: 100%;
    max-height: calc(100svh - 16px);
    padding: 22px 16px max(20px, env(safe-area-inset-bottom));
  }
  .settlement-modal header h3 {
    font-size: 25px;
  }
  .settlement-modal label input:not([type='checkbox']),
  .settlement-modal label select,
  .settlement-modal label textarea {
    font-size: 16px;
  }
  .generator-fields,
  .ownership-config > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .generator-preview {
    grid-template-columns: minmax(0, 1fr);
  }
  .owner-identity {
    align-items: flex-start;
  }
  .owner-settlement-history > button {
    grid-template-columns: 1fr auto;
  }
  .owner-settlement-history button > span:nth-child(2) {
    text-align: right;
  }
  .statement-preview-backdrop {
    padding: 0;
  }
  .statement-preview-shell {
    max-height: 100svh;
  }
  .statement-preview-toolbar {
    position: sticky;
    z-index: 2;
    top: 0;
  }
  .statement-preview-toolbar > span {
    display: none;
  }
  .statement-preview-toolbar > div {
    width: 100%;
    justify-content: space-between;
  }
  .owner-statement {
    width: calc(100% - 16px);
    min-height: 0;
    margin: 8px;
    padding: 23px 16px;
  }
  .statement-parties {
    grid-template-columns: minmax(0, 1fr);
  }
  .statement-lines-head {
    display: none;
  }
  .statement-lines > div:not(.statement-lines-head) {
    padding: 10px 0;
    grid-template-columns: 1fr auto;
  }
  .statement-lines > div > span:nth-child(2) {
    grid-column: 1 / -1;
    color: #7d847f;
    font-size: 7px;
  }
  .statement-total {
    grid-template-columns: minmax(0, 1fr);
  }
  .statement-total > strong {
    grid-row: auto;
    grid-column: auto;
  }
  .owner-statement > footer {
    margin-top: 70px;
    align-items: flex-start;
    flex-direction: column;
  }
  .owner-statement > footer small {
    text-align: left;
  }
}

@media (max-width: 390px) {
  .settlement-metrics,
  .settlement-detail-metrics,
  .owner-balance-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .owner-balance-grid article:last-child {
    grid-column: 1;
  }
  .settlement-directory > button,
  .settlement-ledger article {
    grid-template-columns: minmax(0, 1fr);
  }
  .settlement-directory > button > span,
  .settlement-directory > button > span:first-child,
  .settlement-directory > button > span:nth-child(2),
  .settlement-ledger article > span:nth-child(2),
  .settlement-ledger article > span:nth-child(3) {
    grid-column: 1;
  }
  .settlement-detail-head h2,
  .owner-identity h2 {
    font-size: 26px;
  }
  .owner-identity {
    flex-direction: column;
  }
}

/* Briker Collect · rental adjustments */
.adjustments-page {
  display: grid;
  gap: 10px;
  color: var(--midnight);
}
.adjustments-hero {
  min-height: 142px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.financial-kicker,
.financial-section-heading > div > span,
.adjustment-detail-header > div > span,
.provider-card > span,
.workflow-card > span,
.financial-modal header span,
.simulator-result > span {
  color: #7d847f;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.adjustments-hero h2 {
  max-width: 720px;
  margin: 8px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(27px, 2.6vw, 42px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.adjustments-hero p {
  max-width: 660px;
  margin: 9px 0 0;
  color: #69716c;
  font-size: 9px;
  line-height: 1.55;
}
.adjustments-hero-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.simulation-badge {
  min-height: 29px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d0c1ae;
  color: #725b48;
  background: #f1e8dc;
  font-size: 7px;
  font-style: normal;
  white-space: nowrap;
}
.simulation-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sand);
}
.financial-button {
  min-height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 8px;
  font-weight: 500;
}
.financial-button svg,
.adjustment-notice svg,
.workflow-card button svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.6;
}
.financial-button.primary {
  border-color: var(--forest);
  color: #fff;
  background: var(--forest);
}
.financial-button.secondary {
  color: var(--forest);
  background: #fff;
}
.financial-button.text {
  border-color: transparent;
  color: #626b65;
}
.financial-button:hover {
  border-color: var(--forest);
}
.adjustment-notice {
  min-height: 46px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 18px 1fr 28px;
  align-items: center;
  gap: 8px;
  color: #27282a;
  border: 1px solid #cbd4cc;
  background: #e7ebe5;
  font-size: 8px;
}
.adjustment-notice > button {
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}
.adjustment-notice > button svg {
  width: 14px;
}
.adjustment-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.adjustment-metrics article {
  min-height: 115px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8f7f3;
}
.adjustment-metrics article.attention {
  background: #f2e8dc;
}
.adjustment-metrics span {
  color: #7b827d;
  font-size: 7px;
}
.adjustment-metrics strong {
  margin-top: auto;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 400;
}
.adjustment-metrics small {
  margin-top: 6px;
  color: #858b87;
  font-size: 7px;
}
.adjustment-register,
.adjustment-detail,
.adjustment-side > section,
.adjustment-history-grid > section {
  border: 1px solid var(--line);
  background: #f8f7f3;
}
.financial-section-heading {
  min-height: 66px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.financial-section-heading h3 {
  margin: 5px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: 21px;
  font-weight: 400;
}
.financial-section-heading > label {
  color: #737a75;
  font-size: 7px;
  text-transform: uppercase;
}
.financial-section-heading select {
  min-width: 160px;
  min-height: 36px;
  margin-left: 9px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 8px;
}
.adjustment-table {
  overflow-x: auto;
}
.adjustment-table-head,
.adjustment-table > button {
  min-width: 1040px;
  display: grid;
  grid-template-columns: 1.3fr 0.86fr 1fr 0.88fr 0.54fr 1.35fr 0.8fr;
  align-items: center;
  gap: 12px;
}
.adjustment-table-head {
  min-height: 34px;
  padding: 0 14px;
  color: #898f8b;
  border-bottom: 1px solid var(--line-soft);
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.adjustment-table > button {
  width: 100%;
  min-height: 70px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
  background: transparent;
  text-align: left;
}
.adjustment-table > button:hover,
.adjustment-table > button.active {
  background: #edf0eb;
}
.adjustment-table > button.active {
  box-shadow: inset 2px 0 var(--forest);
}
.adjustment-table > button > span {
  min-width: 0;
}
.adjustment-table strong,
.adjustment-table small {
  display: block;
}
.adjustment-table strong {
  font-size: 8px;
  font-weight: 600;
  line-height: 1.35;
}
.adjustment-table small {
  margin-top: 5px;
  color: #858b87;
  font-size: 7px;
  line-height: 1.35;
}
.adjustment-variation {
  color: var(--forest);
  font-size: 9px;
  font-weight: 600;
}
.adjustment-status {
  min-height: 24px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5f6862;
  border: 1px solid #cdd2ce;
  background: #f0f1ee;
  font-size: 6px;
  font-style: normal;
  white-space: nowrap;
}
.adjustment-status.aprobado {
  color: #28292b;
  border-color: #c4c5c7;
  background: #e1e8e0;
}
.adjustment-status.requiere-revisión {
  color: #775d43;
  border-color: #d7c3aa;
  background: #f3e7d8;
}
.adjustment-status.rechazado {
  color: #7a4f4b;
  border-color: #d9c2bd;
  background: #f1e2df;
}
.adjustment-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 0.65fr);
  gap: 10px;
}
.adjustment-detail {
  padding: 20px;
}
.adjustment-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.adjustment-detail-header h3 {
  margin: 6px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-weight: 400;
}
.adjustment-detail-header p {
  margin: 6px 0 0;
  color: #747c77;
  font-size: 8px;
}
.calculation-flow {
  margin-top: 21px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 22px 1fr 22px 1fr;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
.calculation-flow > svg {
  width: 16px;
  color: #a5aaa6;
  stroke-width: 1.4;
}
.calculation-flow article {
  min-width: 0;
}
.calculation-flow article span,
.calculation-flow article strong {
  display: block;
}
.calculation-flow article span {
  color: #848a86;
  font-size: 7px;
}
.calculation-flow article strong {
  margin-top: 8px;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(17px, 1.6vw, 24px);
  font-weight: 400;
  white-space: nowrap;
}
.calculation-flow article.result strong {
  color: var(--forest);
}
.calculation-card {
  margin-top: 10px;
  padding: 17px;
  border: 1px solid var(--line);
  background: #fff;
}
.calculation-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.calculation-card-head > div > span {
  color: #858b87;
  font-size: 7px;
}
.calculation-card-head h4,
.provider-card h4,
.workflow-card h4 {
  margin: 5px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-weight: 400;
}
.calculation-card > dl {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.calculation-card > dl > div {
  min-height: 62px;
  padding: 10px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.calculation-card dt,
.provider-card dt {
  color: #868c88;
  font-size: 6px;
}
.calculation-card dd,
.provider-card dd {
  margin: 6px 0 0;
  font-size: 8px;
  font-weight: 600;
}
.formula-line {
  margin-top: 12px;
  padding: 12px;
  display: grid;
  gap: 7px;
  background: #edf0eb;
}
.formula-line span {
  color: #707872;
  font-size: 7px;
}
.formula-line code {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  line-height: 1.5;
}
.override-note {
  margin-top: 10px;
  padding: 11px;
  border-left: 2px solid var(--sand);
  background: #f3ebe1;
}
.override-note strong {
  font-size: 8px;
}
.override-note p {
  margin: 5px 0 0;
  color: #6e655b;
  font-size: 8px;
  line-height: 1.5;
}
.adjustment-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.adjustment-side {
  display: grid;
  align-content: start;
  gap: 10px;
}
.provider-card,
.workflow-card {
  padding: 17px;
}
.provider-card > p,
.workflow-card > p {
  margin: 8px 0 0;
  color: #737b76;
  font-size: 8px;
  line-height: 1.55;
}
.provider-card > dl {
  margin: 15px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.provider-card > dl > div {
  min-height: 58px;
  padding: 10px 0;
}
.provider-card > small {
  margin-top: 12px;
  display: block;
  color: #858b87;
  font-size: 7px;
  line-height: 1.55;
}
.workflow-card > button {
  width: 100%;
  min-height: 42px;
  margin-top: 9px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  color: var(--forest);
  background: #fff;
  font-size: 8px;
}
.workflow-card > button:disabled {
  opacity: 0.42;
}
.workflow-complete {
  margin-top: 11px;
  padding: 9px;
  display: block;
  color: #28292b;
  background: #e1e8e0;
  font-size: 7px;
}
.adjustment-history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.adjustment-history-grid > section > article {
  min-height: 58px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.adjustment-history-grid article span,
.adjustment-history-grid article small {
  color: #7e8580;
  font-size: 7px;
}
.adjustment-history-grid article strong {
  font-size: 8px;
}
.adjustment-history-grid > section:last-child > article {
  grid-template-columns: 8px 1fr;
}
.adjustment-history-grid > section:last-child article i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--forest);
}
.adjustment-history-grid > section:last-child article p {
  margin: 0;
  font-size: 8px;
  line-height: 1.45;
}
.empty-financial-state {
  min-height: 88px;
  margin: 0;
  padding: 22px 14px;
  color: #858b87;
  font-size: 8px;
}
.financial-modal-backdrop {
  position: fixed;
  z-index: 95;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(12, 17, 21, 0.52);
}
.financial-modal {
  width: min(100%, 680px);
  max-height: calc(100svh - 40px);
  padding: 25px;
  background: var(--ivory);
  box-shadow: 0 28px 90px rgba(12, 17, 21, 0.24);
  overflow-y: auto;
}
.financial-modal.adjustment-simulator {
  width: min(100%, 920px);
}
.financial-modal header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.financial-modal header h3 {
  margin: 6px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: 29px;
  font-weight: 400;
}
.financial-modal header > button {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
}
.financial-modal header svg {
  width: 15px;
  stroke-width: 1.5;
}
.financial-modal > p {
  margin: 12px 0 18px;
  color: #747b76;
  font-size: 8px;
  line-height: 1.55;
}
.financial-modal > label,
.simulator-form label {
  margin-top: 13px;
  display: block;
  color: #6d756f;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.financial-modal label input,
.financial-modal label select,
.financial-modal label textarea {
  width: 100%;
  min-height: 43px;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  text-transform: none;
}
.financial-modal label textarea {
  min-height: 90px;
  resize: vertical;
}
.financial-modal label small {
  margin-top: 5px;
  display: block;
  color: #929793;
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}
.financial-modal footer {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.simulator-layout {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, 0.7fr);
  gap: 20px;
}
.simulator-fields {
  display: grid;
  gap: 9px;
}
.simulator-fields.two {
  grid-template-columns: 1fr 1fr;
}
.simulator-result {
  min-height: 390px;
  padding: 21px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: var(--midnight);
}
.simulator-result > small {
  margin-top: 6px;
  color: #9da59f;
  font-size: 7px;
}
.simulator-result > strong {
  margin: 25px 0;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 400;
}
.simulator-result > div {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #353c42;
  font-size: 8px;
}
.simulator-result > div span {
  color: #9da59f;
}
.simulator-result > div b {
  text-align: right;
}
.simulator-result > p {
  margin: auto 0 0;
  padding-top: 18px;
  color: #abb2ad;
  border-top: 1px solid #353c42;
  font-size: 7px;
  line-height: 1.55;
}

@media (max-width: 1150px) {
  .adjustment-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .adjustment-side {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .adjustments-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .adjustment-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .adjustment-history-grid {
    grid-template-columns: 1fr;
  }
  .simulator-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .simulator-result {
    min-height: 310px;
  }
}

@media (max-width: 700px) {
  .adjustments-page {
    gap: 8px;
  }
  .adjustments-hero {
    min-height: 0;
    padding: 19px 16px;
  }
  .adjustments-hero h2 {
    font-size: 30px;
  }
  .adjustments-hero-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }
  .adjustments-hero-actions .financial-button {
    width: 100%;
  }
  .simulation-badge {
    justify-content: center;
  }
  .adjustment-metrics article {
    min-height: 104px;
    padding: 12px;
  }
  .financial-section-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .financial-section-heading > label {
    display: grid;
    gap: 5px;
  }
  .financial-section-heading select {
    min-height: 42px;
    margin: 0;
    font-size: 16px;
  }
  .adjustment-table {
    padding: 8px;
    overflow: visible;
  }
  .adjustment-table-head {
    display: none;
  }
  .adjustment-table > button {
    min-width: 0;
    min-height: 0;
    margin-bottom: 8px;
    padding: 13px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 14px 10px;
    border: 1px solid var(--line);
    background: #fff;
  }
  .adjustment-table > button > span {
    padding-top: 13px;
    position: relative;
  }
  .adjustment-table > button > span::before {
    content: attr(data-label);
    position: absolute;
    top: 0;
    left: 0;
    color: #959a97;
    font-size: 6px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .adjustment-table > button > span:first-child,
  .adjustment-table > button > span:nth-child(6) {
    grid-column: 1 / -1;
  }
  .adjustment-detail {
    padding: 15px;
  }
  .calculation-flow {
    grid-template-columns: minmax(0, 1fr);
  }
  .calculation-flow > svg {
    margin: -2px 0;
    transform: rotate(90deg);
  }
  .calculation-card > dl {
    grid-template-columns: 1fr 1fr;
  }
  .adjustment-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .adjustment-actions .financial-button:first-child {
    grid-column: 1 / -1;
  }
  .adjustment-side {
    grid-template-columns: minmax(0, 1fr);
  }
  .adjustment-history-grid > section > article {
    grid-template-columns: 80px 1fr;
  }
  .adjustment-history-grid article small {
    grid-column: 2;
  }
  .financial-modal-backdrop {
    padding: 8px;
    align-items: end;
  }
  .financial-modal {
    width: 100%;
    max-height: calc(100svh - 16px);
    padding: 22px 16px max(20px, env(safe-area-inset-bottom));
  }
  .financial-modal header h3 {
    font-size: 25px;
  }
  .financial-modal label input,
  .financial-modal label select,
  .financial-modal label textarea {
    font-size: 16px;
  }
  .simulator-fields.two {
    grid-template-columns: minmax(0, 1fr);
  }
  .simulator-result {
    min-height: 280px;
  }
}

@media (max-width: 390px) {
  .adjustment-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
  .adjustment-metrics article {
    min-height: 90px;
  }
  .adjustment-table > button {
    grid-template-columns: minmax(0, 1fr);
  }
  .adjustment-table > button > span,
  .adjustment-table > button > span:first-child,
  .adjustment-table > button > span:nth-child(6) {
    grid-column: 1;
  }
  .adjustment-detail-header {
    flex-direction: column;
  }
  .calculation-card > dl,
  .adjustment-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .adjustment-actions .financial-button:first-child {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .motion-ready .properties > .section-head,
  .motion-ready .properties > .listing-grid,
  .motion-ready .product-section > .wrap,
  .motion-ready .ai-section > .ai-heading,
  .motion-ready .ai-section > .ai-grid,
  .motion-ready .ecosystem > .wrap,
  .motion-ready .agencies > .agency-grid,
  .motion-ready .steps > .section-head,
  .motion-ready .steps > .steps-grid,
  .motion-ready .faq > div,
  .motion-ready .final-cta > .wrap {
    opacity: 1 !important;
    transform: none !important;
  }
  .motion-ready .listing-card,
  .motion-ready .ai-feature,
  .motion-ready .steps-grid article {
    opacity: 1 !important;
    transform: none !important;
  }
}
