:root {
  color-scheme: light;
  --pine: #16332b;
  --pine-2: #1f4438;
  --moss: #3d6b52;
  --copper: #c4622d;
  --copper-2: #a34e22;
  --cream: #f4efe6;
  --paper: #fffcf7;
  --ink: #1a1814;
  --muted: #6a645a;
  --line: #e4dccf;
  --free: #e7f3ea;
  --occ: #f4ead8;
  --hold: #eee6f6;
  --debt: #f8e4dc;
  --ok: #2f6b45;
  --shadow: 0 18px 44px rgba(22, 51, 43, 0.09);
  --lift: 0 28px 50px rgba(22, 51, 43, 0.16);
  --radius: 22px;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; overflow-wrap: break-word; }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(1100px 480px at 8% -8%, rgba(196, 98, 45, 0.11), transparent 52%),
    radial-gradient(900px 420px at 100% 0%, rgba(61, 107, 82, 0.12), transparent 48%),
    repeating-linear-gradient(90deg, transparent 0 56px, rgba(22, 51, 43, 0.025) 56px 57px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
.pilot-bar {
  background: var(--pine);
  color: #f3ebe1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 9px 18px;
  border-bottom: 1px solid rgba(196, 98, 45, 0.5);
  position: relative;
  z-index: 25;
}
.pilot-bar p {
  margin: 0 auto;
  max-width: 920px;
  line-height: 1.45;
}
.pilot-bar a {
  color: #f0c9a8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pilot-bar a:hover { color: #fff; }
a { color: var(--moss); text-decoration: none; }
a:hover { color: var(--copper); }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  background: rgba(22, 51, 43, 0.94);
  color: #f6f1e8;
  box-shadow: 0 10px 36px rgba(22, 51, 43, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}
.top > div { min-width: 0; }
.top a { color: #efe8d8; }
.top a:hover { color: #fff; }
.top nav { margin-left: auto; min-width: 0; max-width: 72%; justify-content: flex-end; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--copper), var(--copper-2));
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  flex-shrink: 0;
}
.mark svg { width: 22px; height: 22px; display: block; }
.brand-meta { font-family: var(--font); font-weight: 500; font-size: 12px; color: #c9c0b0; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr { font-size: 12px; color: #c9c0b0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 36ch; }
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
nav a.current, nav a:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
nav a.nav-partner {
  background: var(--copper);
  color: #fff !important;
  font-weight: 700;
  padding: 8px 14px;
}
nav a.nav-partner:hover {
  background: var(--copper-2);
  color: #fff !important;
}
.userchip {
  margin-left: 8px;
  padding: 6px 10px 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: 13px;
  color: #d9d1c4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 220px;
}
.userchip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.userchip a { color: #fff; font-weight: 650; flex-shrink: 0; }

main { padding: 28px 28px 48px; max-width: 1180px; margin: 0 auto; width: 100%; flex: 1; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 10px; overflow-wrap: break-word; }
h1 { font-size: clamp(26px, 4vw, 44px); line-height: 1.15; font-weight: 700; }
h2 { font-size: 20px; margin-top: 28px; }
.page-head { margin-bottom: 18px; max-width: 46rem; }
.page-head.spread {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.page-head h1 { margin-bottom: 6px; }
.muted { color: var(--muted); }
.lead { font-size: 17px; color: var(--muted); margin: 0 0 20px; line-height: 1.55; max-width: 42rem; }
.ok-note {
  background: var(--free);
  color: var(--ok);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 0 0 16px;
}
.debt-note {
  background: var(--debt);
  color: #7a2e1d;
  border-radius: 14px;
  padding: 12px 16px;
  margin: 0 0 16px;
}
.debt-note a { color: #7a2e1d; font-weight: 700; text-decoration: underline; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin: 16px 0 8px;
}
.cell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 88px;
  box-shadow: var(--shadow);
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.cell:hover {
  transform: translateY(-4px);
  box-shadow: var(--lift);
  color: inherit;
}
.cell-body { padding: 14px 16px 16px; }
.cell-photo, .cell-photo-ph {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
  background: #d7cfc2;
}
.cell-photo-ph {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 28px;
  color: #8a8174;
  background: linear-gradient(135deg, #e8dfd2, #d2c8b8);
}
.cell .num { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; min-width: 0; overflow-wrap: anywhere; }
.cell .who { font-size: 13px; margin-top: 10px; overflow-wrap: anywhere; }
.cell-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
  min-width: 0;
}
.price {
  font-weight: 800;
  font-size: 16px;
  margin-top: 6px;
  color: var(--copper);
}
.price small { font-weight: 600; color: var(--muted); font-size: 12px; }

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.metric {
  background: var(--cream);
  border-radius: 12px;
  padding: 8px 10px;
}
.metric span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.metric strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-top: 2px;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ece6dc;
  color: #5c564c;
}
.badge-free { background: #d7ecd9; color: #215c34; }
.badge-occupied { background: #efe0c4; color: #6b4e16; }
.badge-hold { background: #e4d8f3; color: #5a3d86; }
.badge-overdue { background: #f3cfc6; color: #8a2e1c; }
.badge-paid { background: #d7ecd9; color: #215c34; }
.badge-open { background: #efe0c4; color: #6b4e16; }
.badge-blocked { background: #ece6dc; color: #5c564c; }
.cell.free { border-color: #cfe5d4; }
.cell.occupied { border-color: #e6d5b0; }
.cell.hold { border-color: #d9ccec; }
.cell.overdue { border-color: #eccfc4; }

.pill { font-size: 12px; color: var(--muted); }
.cell-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; padding: 0 16px 16px; }
.cell-actions button { font-size: 13px; padding: 8px 12px; flex: 1 1 auto; min-width: 0; }

.spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}

.unit-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 28px;
  box-shadow: var(--lift);
}
.unit-photo-edit {
  width: 100%;
  max-width: 280px;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #d7cfc2;
}
.edit-side-actions {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.edit-side-actions p { margin: 0 0 10px; }
.edit-side-actions .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.edit-side-actions form { margin: 0; }
.photo-frame { position: relative; }
.photo-ph-lg {
  height: 420px;
  border-radius: 24px;
}

.product {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}
.product-info {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--lift);
}
.product-price {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.04em;
  margin: 10px 0 4px;
  color: var(--copper);
  overflow-wrap: anywhere;
}
.product-price small {
  font-size: 14px;
  color: var(--muted);
  font-family: var(--font);
  font-weight: 600;
}
.back { font-weight: 650; display: inline-block; margin-bottom: 16px; }

form.row, .row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 12px 0;
}
form.row label { min-width: 128px; flex: 1; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 650; color: var(--muted); }
input, select, button, textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(196, 98, 45, 0.35);
  border-color: var(--copper);
}
input[type="file"] { padding: 8px; background: var(--cream); }
button, a.btn {
  background: var(--copper);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 14px;
  padding: 12px 20px;
  display: inline-block;
  max-width: 100%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 22px rgba(196, 98, 45, 0.22);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
button:hover, a.btn:hover {
  background: var(--copper-2);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 14px 26px rgba(196, 98, 45, 0.28);
}
button.ghost, a.btn.ghost {
  background: var(--paper);
  color: var(--pine);
  border: 1px solid var(--line);
  box-shadow: none;
}
button.ghost:hover, a.btn.ghost:hover {
  background: #fff;
  color: var(--pine);
  border-color: #cfc6b6;
  transform: translateY(-1px);
}
button:disabled { opacity: .45; cursor: not-allowed; }
.btn-wide { width: 100%; text-align: center; margin-top: 8px; }
.phone-reveal { margin: 14px 0 8px; }
.phone-reveal .btn-wide { margin-top: 0; }
.phone-mask {
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-top: 20px;
}
.panel h2 { margin-top: 0; }
.panel > .table-wrap,
.panel > table {
  margin-top: 4px;
}
.panel table,
.panel .books,
.panel .books-table {
  box-shadow: none;
  border: 1px solid var(--line);
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 8px 0 0;
  border-radius: var(--radius);
}
.forms-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; overflow-wrap: anywhere; }
th { color: var(--muted); font-weight: 700; background: #f7f2ea; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
td form { margin: 0; }

.hero-wide {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 18px 0 10px;
}
.hero-visual {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--lift);
  background: var(--pine);
  transform: rotate(-0.4deg);
}
.hero-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.04);
}
.hero-visual-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 28px 26px;
  background: linear-gradient(transparent, rgba(22, 51, 43, 0.94) 58%);
  color: #f6f1e8;
}
.hero-visual-cap h2 { color: #fff; margin: 0 0 8px; font-size: clamp(20px, 2.4vw, 26px); font-family: var(--display); }
.hero-visual-cap p { margin: 0; color: #d7cec0; overflow-wrap: break-word; }
.hero-visual-cap a { color: #f0c9a8; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.cta .findbar-form { flex: 1 1 100%; margin: 0; min-width: 0; width: 100%; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--copper);
}
.feature strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.04em;
  color: var(--pine);
  overflow-wrap: break-word;
}
.feature.feature-text strong {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.feature span { color: var(--muted); font-size: 14px; display: block; margin-top: 6px; }
.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.how article {
  background: var(--pine);
  color: #efe8d8;
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.how b {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--copper);
  color: #fff;
  font-family: var(--display);
  font-size: 18px;
  margin-bottom: 12px;
}
.how h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 22px;
}
.how p { margin: 0; color: #c9c0b0; font-size: 14px; overflow-wrap: break-word; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}
a.card-link {
  color: inherit;
  display: block;
}
a.card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--lift);
  color: inherit;
}
a.card-link .more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 800;
  color: var(--copper);
}
.card h2 { margin-top: 0; font-size: 18px; }
.tenant-card { margin: 0 0 18px; }
.tenant-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.bal { text-align: right; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.bal .muted { font-family: var(--font); font-weight: 600; font-size: 12px; }
.bal.debt { color: #8a2e1c; }
.bal.ok { color: var(--ok); }
.unit-block {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.login-wrap {
  max-width: min(440px, 100%);
  margin: 28px auto 8px;
}
.login-wrap .card {
  padding: 28px 26px 24px;
  border-radius: 24px;
  box-shadow: var(--lift);
}
.login-wrap h1 { font-size: clamp(26px, 4vw, 34px); }
.login-wrap .lead { font-size: 15px; margin-bottom: 14px; }
.stack-form label { margin-top: 0; display: flex; }
.stack-form { display: flex; flex-direction: column; gap: 12px; }
.stack-form.narrow { max-width: 420px; }
.stack-form input { width: 100%; }
.stack-form .row { margin-top: 6px; }
.stack-form button { width: 100%; }
.stack-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  align-items: center;
}
.stack-form .form-actions button,
.stack-form .form-actions .btn { width: auto; }
.login-wrap .card .muted { margin-top: 16px; }
.login-wrap .card .foot { margin-top: 16px; }
.foot { margin-top: 22px; }
.demo {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--cream);
  border-radius: 14px;
}
.demo b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
code {
  font-size: 13px;
  background: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.site-kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); margin-bottom: 8px; }

.venue {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.venue h2 { margin: 0; }
.map-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 650;
  font-size: 13px;
  color: var(--pine);
}
.map-chip:hover { color: var(--copper); border-color: #d2c6b4; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 22px;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.04em;
}
.stat span { font-size: 13px; color: var(--muted); }

.mine-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 0;
  box-shadow: var(--lift);
}
.mine-card img, .mine-card .cell-photo-ph {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  border-radius: 0;
}
.mine-card .card-pad { padding: 20px 20px 20px 0; }
.mine-card h2 { margin-top: 0; }

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.channel {
  text-align: left;
}
.channel h2 { margin: 8px 0 6px; }
.channel p { margin: 0 0 14px; }

.site-foot {
  margin-top: auto;
  width: 100%;
  background: #0f221c;
  color: #b9c4be;
  padding: 48px 28px 36px;
  box-sizing: border-box;
}
.site-foot-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.site-foot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-foot-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}
.site-foot-col strong {
  display: block;
  width: 100%;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 14px;
  padding: 0;
  letter-spacing: 0;
  text-transform: none;
}
.site-foot-col > a,
.site-foot-col > span {
  display: block;
  width: 100%;
  margin: 0;
  padding: 5px 0;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
}
.site-foot a {
  color: #b9c4be;
  text-decoration: none;
}
.site-foot a:hover { color: #fff; }
.site-foot-muted {
  color: #7f8c85;
  font-size: 13px !important;
}
.site-foot-age {
  display: inline-flex !important;
  width: auto !important;
  align-items: center;
  margin-top: 10px !important;
  padding: 2px 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #efe8d8;
  line-height: 1.4;
}
.site-foot-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px 40px;
  align-items: start;
  padding-top: 28px;
}
.site-foot-bottom-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.site-foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1;
}
.site-foot-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--copper), var(--copper-2));
  flex-shrink: 0;
}
.site-foot-mark svg { width: 18px; height: 18px; display: block; }
.site-foot-tagline {
  margin: 0;
  max-width: 36ch;
  font-size: 13px;
  line-height: 1.45;
  color: #7f8c85;
}
.site-foot-bottom-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  font-size: 12px;
  line-height: 1.45;
  color: #7f8c85;
  min-width: 0;
}
.site-foot-bottom-legal p { margin: 0; }
.site-foot-bottom-legal a { color: #a7b3ac; }
.site-foot-bottom-legal a:hover { color: #fff; }
.app-ver {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #7f8c85;
}
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 50;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: #fff;
  border-top: 1px solid rgba(22, 51, 43, 0.12);
  box-shadow: 0 -8px 28px rgba(22, 51, 43, 0.12);
  font-size: 14px;
}
.cookie-bar[hidden] { display: none !important; }
.cookie-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: none;
  padding: 16px 24px;
  box-sizing: border-box;
}
.cookie-bar-text {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.cookie-bar-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.cookie-bar-text a {
  color: var(--copper);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-bar-text a:hover { color: var(--copper-2); }
.cookie-bar button {
  flex-shrink: 0;
  background: var(--copper);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 700;
  cursor: pointer;
}
.cookie-bar button:hover { background: var(--copper-2); }
.balance-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  align-items: start;
}
.balance-sum {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--pine);
  line-height: 1.1;
  margin: 4px 0 10px;
}
.balance-sum.sm { font-size: 1.5rem; margin: 0; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 14px;
  margin: 0 0 8px;
}
.admin-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 18px;
}
.alert-card {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--paper);
}
.alert-card.warn { background: var(--debt); border-color: #e8c4b4; color: #7a2e1d; }
.alert-card.info { background: var(--free); border-color: #c9dccf; color: var(--pine); }
.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.admin-action-grid h3 { margin: 0 0 8px; font-size: 1rem; }
.admin-action-grid .stack-form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
button.danger { background: #9b3b2e; color: #fff; border-color: #9b3b2e; }
.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
  box-shadow: var(--shadow);
}
.stat-card strong {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--pine);
}
.stat-card a { font-size: 13px; color: var(--muted); }
.admin-landlord-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.inline-credit {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.filter-row a {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}
.filter-row a.current {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}
.filter-row a:hover { color: var(--copper); }
.filter-row a.current:hover { color: #fff; }
@media (max-width: 900px) {
  .inline-credit { grid-template-columns: 1fr; }
}
.balance-topup h2 { margin-top: 0; }
.books .pos { color: #2f6b3a; }
.books .neg { color: #9b3b2e; }
@media (max-width: 900px) {
  .balance-hero { grid-template-columns: 1fr; }
}

.legal-text ul {
  margin: 8px 0 16px;
  padding-left: 1.2em;
  max-width: 62ch;
}
.legal-text li { margin: 6px 0; }
.legal-text h2 { margin-top: 8px; }
.pending-card .badge { margin-bottom: 8px; }
.pending-card h2 { margin-top: 0; }

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 8px 0 20px;
}
.docs-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  min-width: 0;
}
.docs-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(22, 51, 43, 0.14);
  color: inherit;
}
.docs-card strong {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--pine);
}
.docs-card span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.docs-grid-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.docs-card-role { min-height: 140px; }
@media (max-width: 700px) {
  .docs-grid-roles { grid-template-columns: 1fr; }
}

.empty {
  text-align: center;
  padding: 48px 24px;
  border-radius: 28px;
}
.empty p { margin: 0 auto 12px; max-width: 42ch; }
.empty .btn { margin-top: 8px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.catalog-search, .hero-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  align-items: stretch;
}
.hero-search { margin: 0; flex: 1 1 280px; max-width: 520px; }
.catalog-search input, .hero-search input {
  flex: 1 1 220px;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
}
.catalog-search button, .hero-search button {
  border: 0;
  background: var(--pine);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 14px;
  cursor: pointer;
}
.catalog-search button:hover, .hero-search button:hover { background: var(--pine-2); }
body.public main { max-width: 1320px; }

.findbar {
  display: block;
  margin: 0 0 18px;
}
.findbar-form .findbar { margin: 0; }
.findbar-core {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
  min-height: 54px;
  background: var(--paper);
  border: 2px solid var(--pine);
  border-radius: 14px;
  overflow: visible;
  box-shadow: 4px 4px 0 rgba(22, 51, 43, 0.12);
}
.findbar-type,
.findbar-go {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
}
.findbar-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: var(--pine);
  color: #f6f1e8;
  border-radius: 12px 0 0 12px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 9.5rem;
}
.findbar-type [data-type-label] {
  overflow: hidden;
  text-overflow: ellipsis;
}
.findbar-type:hover,
.findbar-type[aria-expanded="true"] { background: var(--pine-2); }
.findbar-field {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0 10px;
  border-right: 1px solid var(--line);
}
.findbar-field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 4px;
  font: inherit;
  color: var(--ink);
}
.findbar-field input:focus { outline: none; }
.findbar-go {
  padding: 0 22px;
  background: var(--copper);
  color: #fff;
  border-radius: 0 12px 12px 0;
  letter-spacing: 0.01em;
  box-shadow: none;
  transform: none;
  flex-shrink: 0;
}
.findbar-go:hover { background: var(--copper-2); transform: none; box-shadow: none; }
.findbar-ico { width: 20px; height: 20px; flex-shrink: 0; }
.findbar-ico.muted { color: var(--muted); }
.findbar-chev { width: 16px; height: 16px; opacity: 0.8; flex-shrink: 0; }
.findbar-geo {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 12rem;
  border-right: 1px solid var(--line);
}
.findbar-place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--pine);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0 12px;
  white-space: nowrap;
  min-width: 0;
  width: 100%;
  box-shadow: none;
  transform: none;
  border-radius: 0;
}
.findbar-place:hover,
.findbar-place[aria-expanded="true"] {
  color: var(--copper);
  background: var(--cream);
  transform: none;
  box-shadow: none;
}
.findbar-place [data-city-label] {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.findbar-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  min-width: 220px;
  max-height: min(60vh, 360px);
  overflow: auto;
  background: var(--paper);
  border: 2px solid var(--pine);
  border-radius: 12px;
  box-shadow: 6px 8px 0 rgba(22, 51, 43, 0.12);
  padding: 8px;
}
.findbar-menu-geo { left: auto; right: 0; min-width: 220px; }
.findbar-menu-title {
  margin: 4px 8px 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--copper);
}
.findbar-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 650;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
}
.findbar-menu button:hover { background: var(--cream); }
.findbar-menu button.is-on {
  background: rgba(196, 98, 45, 0.12);
  box-shadow: inset 3px 0 0 var(--copper);
}
.findbar-empty { margin: 4px 10px 8px; }

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  flex-wrap: wrap;
  position: sticky;
  top: 64px;
  z-index: 8;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.catalog-count {
  margin: 0;
  font-weight: 750;
  font-size: 16px;
  min-width: 0;
}
.catalog-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}
.view-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.view-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--pine);
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: none;
  transform: none;
}
.view-switch-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.view-switch-btn:hover {
  background: var(--cream);
  color: var(--pine);
  transform: none;
  box-shadow: none;
}
.view-switch-btn.is-on {
  background: var(--pine);
  color: #fff;
}
.view-switch-btn.is-on:hover {
  background: var(--pine-2);
  color: #fff;
}
.catalog-sort select {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 8px 12px;
  font: inherit;
  max-width: 100%;
}

html:not([data-cat-view="map"]) .catalog-map-wrap { display: none; }
html[data-cat-view="map"] .offers,
html[data-cat-view="map"] .catalog-empty-tiles { display: none !important; }
html[data-cat-view="map"] .catalog-sort { display: none; }
html[data-cat-view="map"] #catalog-map { height: min(58vh, 520px); }

.page-head-tight { margin-bottom: 14px; }
.page-head-tight h1 { margin-bottom: 4px; }
.page-head-note { margin: 0; font-size: 14px; max-width: 48rem; }

.map-loc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.map-loc-card {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  box-shadow: var(--shadow);
  min-width: 0;
}
.map-loc-card:hover {
  border-color: var(--copper);
  color: inherit;
}
.map-loc-card strong {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-loc-card span {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-loc-card em {
  font-style: normal;
  font-size: 12px;
  font-weight: 750;
  color: var(--copper);
}
.map-loc-card.is-on {
  border-color: var(--pine);
  box-shadow: inset 3px 0 0 var(--copper);
}

.offers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.offer {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}
a.offer:hover {
  transform: translateY(-5px);
  box-shadow: var(--lift);
  color: inherit;
}
.offer-photo {
  position: relative;
  height: 208px;
  background: #d7cfc2;
}
.offer-photo img,
.offer-photo .cell-photo-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.offer-photo .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  box-shadow: 0 6px 16px rgba(22, 51, 43, 0.18);
}
.offer-body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.offer-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--copper);
  margin: 0 0 2px;
}
.offer-price small {
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font);
}
.offer-title {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.offer-place, .offer-dims {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.offer-hold {
  margin: 0;
  font-size: 13px;
  color: #5a3d86;
  line-height: 1.35;
}
.offer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.offer-tags span {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--pine);
}
.check-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 16px 0 8px;
}
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}
.check-grid .filter-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  margin: 0;
}
.check-grid .filter-check input { width: auto; }
.stack-form select { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; font: inherit; }
.object-list { display: grid; gap: 14px; margin-bottom: 22px; }
.object-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.object-card h2 { margin-top: 0; }
.object-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
#catalog-map {
  height: 400px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #d9e4dc;
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--shadow);
}
#catalog-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-hint { margin: 8px 0 0; }

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.catalog-side {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  position: sticky;
  top: 72px;
  max-height: calc(100dvh - 88px);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: block;
}
.catalog-side[open] {
  height: auto;
}
.catalog-side > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  display: block;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.catalog-side > summary::-webkit-details-marker { display: none; }
.catalog-side > summary::after {
  content: "▾";
  float: right;
  color: var(--copper);
}
.catalog-side[open] > summary::after { content: "▴"; }
.catalog-side-head {
  padding: 14px 16px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--copper);
}
.catalog-side-body {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 88px - 50px);
  max-height: calc(100dvh - 88px - 50px);
  overflow: hidden;
}
.catalog-side-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 16px 14px;
  scroll-padding-top: 12px;
  scrollbar-width: thin;
  scrollbar-color: #c9bfb0 transparent;
}
.catalog-side-scroll::-webkit-scrollbar { width: 8px; }
.catalog-side-scroll::-webkit-scrollbar-thumb {
  background: #c9bfb0;
  border-radius: 999px;
}
.object-setup-fold { margin: 0; }
.object-setup-sum {
  list-style: none;
  cursor: pointer;
  display: grid;
  gap: 2px;
  padding: 2px 0 10px;
}
.object-setup-sum::-webkit-details-marker { display: none; }
.object-setup-sum strong { color: var(--ink); font-size: 16px; }
.object-setup-h { margin-top: 4px; }
.books-fold {
  margin: 0 0 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 14px 12px;
}
.books-fold > summary {
  cursor: pointer;
  font-weight: 750;
  padding: 8px 0;
  list-style: none;
}
.books-fold > summary::-webkit-details-marker { display: none; }
.books-fold .books-toolbar { margin: 0; }
.catalog-side .filter-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 14px 0 8px;
}
.catalog-side .filter-kicker:first-child { margin-top: 0; }
.catalog-side .filter-block { margin-bottom: 10px; }
.catalog-side .filter-dims {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 6px;
}
.catalog-side .filter-dims .filter-block { margin-bottom: 0; }
.catalog-side .filter-dims select {
  padding: 8px 10px;
  font-size: 14px;
}
.catalog-side label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 5px; }
.catalog-side input, .catalog-side select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}
.catalog-side .filter-amenities {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 10px;
}
.catalog-side .filter-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  padding: 6px 0;
  cursor: pointer;
  color: var(--ink);
  white-space: normal;
}
.catalog-side .filter-check input {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--pine);
}
.catalog-side .filter-check-busy {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.catalog-side-actions {
  flex: 0 0 auto;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  z-index: 2;
}
.catalog-side button {
  width: 100%;
  border: 0;
  background: var(--pine);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
}
.catalog-side button:hover { background: var(--pine-2); }
.catalog-side .filter-reset {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 650;
}
.loc-switch label { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.loc-switch select { min-width: 180px; }
.page-head h2 { margin-top: 0; }
.object-setup { margin-top: 0; }
.object-setup .stack-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  align-items: start;
}
.object-setup .span-2,
.object-setup .row { grid-column: 1 / -1; }
.object-setup .add-object {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.object-setup .add-object summary {
  cursor: pointer;
  font-weight: 750;
  padding: 6px 0 10px;
}
.object-setup > form .ghost { width: auto; margin-top: 10px; }
.cell-edit { font-size: 13px; margin: 8px 0 0; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.gallery-thumbs img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; }
.gallery-edit { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 16px; }
.gallery-item { display: grid; gap: 6px; font-size: 13px; }
.gallery-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.legal-text h2 { font-size: 18px; margin: 24px 0 8px; }
.legal-text p { max-width: 62ch; }

.partner-hero { align-items: start; }
.partner-hero h2 { margin-top: 0; }
.partner-hero .lead { max-width: 36rem; }
.partner-form-card {
  padding: 28px 24px 24px;
  box-shadow: var(--lift);
  border-radius: 24px;
  min-width: 0;
}
.partner-form-card h2 { font-size: 22px; }
.partner-wizard .row { gap: 10px; }
.partner-wizard .row button { flex: 1; min-width: 0; }
.wizard-dots {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.wizard-dots li {
  flex: 1;
  text-align: center;
  padding: 0 2px 8px;
  border-bottom: 2px solid var(--line);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.wizard-dots li.is-on { color: var(--pine); border-bottom-color: var(--pine); }
.wizard-dots li.is-done { color: var(--ink); border-bottom-color: var(--pine); }
.wizard-title {
  margin: 0;
  font-weight: 800;
  font-size: 15px;
}
.partner-wizard.is-js .wizard-pane { display: none; }
.partner-wizard.is-js .wizard-pane.is-on {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.org-pick { display: grid; gap: 10px; }
.org-pick.is-bad .org-pick-card { outline: 2px solid #c45c48; }
.org-pick-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.org-pick-card:hover { border-color: #cfc6b6; }
.org-pick-card:has(input:checked) {
  border-color: var(--pine);
  background: #f4f7f2;
  box-shadow: inset 3px 0 0 var(--copper);
}
.org-pick-card strong { font-size: 16px; }
.org-pick-card span { font-size: 13px; color: var(--muted); font-weight: 500; }
.org-pick-card input { position: absolute; opacity: 0; pointer-events: none; }
.field-hint {
  margin: -6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 500;
}
.partner-wizard.is-js:not(.is-legal) .lbl-legal,
.partner-wizard.is-js:not(.is-legal) .only-legal { display: none !important; }
.partner-wizard.is-js.is-legal .lbl-ip { display: none !important; }
.wizard-nav {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.wizard-nav button { flex: 1; width: auto; }
.partner-agree {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.partner-agree input {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.offer-accept {
  margin: 14px 0 4px;
  display: grid;
  gap: 8px;
}
.offer-accept-open {
  width: 100%;
  justify-content: center;
}
.offer-accept-ok {
  margin: 0;
  color: var(--pine);
  font-size: 13px;
  font-weight: 600;
}
.offer-accept-need {
  margin: 0;
  font-size: 13px;
}
.offer-accept-need.is-bad {
  color: var(--debt, #7a2e1d);
  font-weight: 600;
}
.offer-dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(720px, calc(100vw - 24px));
  max-height: min(88vh, 820px);
  background: var(--cream, #f7f1e6);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(20, 40, 30, 0.28);
}
.offer-dialog::backdrop {
  background: rgba(20, 36, 28, 0.55);
}
.offer-dialog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
  border-bottom: 1px solid rgba(40, 70, 55, 0.12);
}
.offer-dialog-body {
  padding: 8px 18px 16px;
  overflow: auto;
  max-height: min(58vh, 520px);
  overscroll-behavior: contain;
}
.offer-dialog-foot {
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(40, 70, 55, 0.12);
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.45);
}
.offer-dialog-actions {
  display: flex;
  gap: 10px;
}
.offer-dialog-actions button {
  flex: 1;
}
.altcha-wrap {
  margin: 4px 0 2px;
}
.altcha-wrap altcha-widget {
  display: block;
  max-width: 100%;
}
.partner-points { margin: 28px 0 8px; }
.partner-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.partner-steps article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 22px;
  box-shadow: var(--shadow);
}
.partner-steps span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--pine);
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}
.partner-steps h3 { margin: 0 0 8px; font-size: 18px; }
.partner-steps p { margin: 0; color: var(--muted); font-size: 14px; }

.ok-note {
  background: var(--free);
  color: #215c34;
  border-radius: 14px;
  padding: 12px 16px;
  margin: 0 0 16px;
}
.books-head .lead { max-width: 46rem; }
.books-help-link { margin: 0; font-weight: 650; }
.books-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}
.books-stats article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px 16px;
  box-shadow: var(--shadow);
}
.books-stats span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.books-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.04em;
  margin: 6px 0 4px;
  color: var(--pine);
}
.books-stats small { color: var(--muted); font-size: 12px; }
.books-stats .is-overdue strong { color: #8a2e1c; }
.books-stats .is-paid strong { color: var(--ok); }
.books-notice { margin: 0 0 8px; font-weight: 650; }
.books-count { margin: 0 0 16px; }
.books-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.books-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: flex-end;
  flex: 1 1 520px;
}
.books-filters label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
.books-filters select,
.books-filters input {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  color: var(--ink);
  min-width: 140px;
}
.books-filters button {
  width: auto;
  padding: 9px 16px;
}
.books-filters .filter-reset {
  font-size: 13px;
  font-weight: 650;
  padding: 8px 0;
}
.books-export { display: flex; gap: 8px; flex-wrap: wrap; }
.books-charge {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 0 0 16px;
}
.books-charge form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}
.books-charge p { margin: 0; flex: 1 1 280px; font-size: 14px; }
.books-charge select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}
.books-charge button { width: auto; }
.prepay-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0 4px;
}
.prepay-box p { margin: 0 0 10px; font-size: 14px; }
.prepay-plans {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prepay-plans form { margin: 0; }
.prepay-plans button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: auto;
  max-width: 100%;
  text-align: left;
  white-space: normal;
}
.prepay-plans button small {
  font-weight: 500;
  opacity: 0.8;
}
.hint-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 16px 12px;
  margin: 0 0 18px;
}
.hint-box summary {
  cursor: pointer;
  font-weight: 750;
  padding: 8px 0;
}
.hint-box ol { margin: 8px 0 10px; padding-left: 20px; }
.hint-box li { margin: 4px 0; }
.books-table-wrap { overflow-x: auto; }
.books-table { width: 100%; }
.books-row-overdue { background: #fdf6f3; }
.books-row-paid { background: #f4faf5; }
.books-row-open.has-notice { background: #f7f1e6; }
.books-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.books-actions form { margin: 0; }
.books-actions button { width: auto; padding: 8px 12px; font-size: 13px; }
.help-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.help-toc a {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 650;
  font-size: 14px;
  color: var(--pine);
}
.help-toc a:hover {
  border-color: var(--copper);
  color: var(--copper);
  background: #fff;
}
.help-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 22px;
  box-shadow: var(--shadow);
  margin: 0 0 16px;
}
.help-block h2 { margin-top: 0; }
.help-block p { max-width: 62ch; }
.help-dict { margin: 0; }
.help-dict dt { font-weight: 750; margin-top: 12px; }
.help-dict dd { margin: 4px 0 0; color: var(--muted); }

@media (min-width: 901px) {
  .books-fold {
    background: none;
    border: 0;
    padding: 0;
    border-radius: 0;
    margin: 0 0 16px;
  }
  .books-fold > summary { display: none; }
}
@media (max-width: 1100px) {
  .hero-wide, .product { grid-template-columns: 1fr; }
  .hero-visual { transform: none; }
  .how, .features { grid-template-columns: 1fr; }
  .site-foot-grid { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .site-foot-bottom { grid-template-columns: 1fr; }
  .top nav { max-width: none; }
}
@media (max-width: 900px) {
  .stats, .channel-grid { grid-template-columns: 1fr 1fr; }
  .mine-card { grid-template-columns: 1fr; }
  .mine-card .card-pad { padding: 16px 16px 18px; }
  .mine-card img { height: 200px; min-height: 0; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-side {
    position: static;
    top: auto;
    height: auto !important;
    max-height: none;
    overflow: visible;
    display: block;
  }
  .catalog-side-body {
    height: auto;
    max-height: none;
    overflow: visible;
    display: block;
  }
  .catalog-side-scroll { max-height: min(55vh, 420px); overflow-y: auto; }
  .catalog-toolbar { position: static; }
  .findbar { margin-bottom: 14px; }
  .findbar-core { flex-wrap: wrap; box-shadow: 3px 3px 0 rgba(22, 51, 43, 0.12); }
  .findbar-type { flex: 1 1 42%; max-width: none; border-radius: 12px 0 0 0; min-height: 44px; }
  .findbar-geo { flex: 1 1 58%; max-width: none; border-right: 0; border-bottom: 1px solid var(--line); min-height: 44px; }
  .findbar-field { flex: 1 1 calc(100% - 110px); border-right: 0; border-top: 1px solid var(--line); }
  .findbar-go { flex: 0 0 auto; border-radius: 0 0 12px 0; min-height: 48px; }
  .findbar-place { padding: 0 12px; }
  .findbar-menu, .findbar-menu-geo { left: 0; right: 0; min-width: 0; }
  .partner-steps { grid-template-columns: 1fr; }
  .books-stats { grid-template-columns: 1fr 1fr; }
  #catalog-map { height: 220px; }
  html[data-cat-view="map"] #catalog-map { height: min(62vh, 520px); }
}
@media (max-width: 800px) {
  .top { flex-direction: column; align-items: stretch; padding: 10px 12px; gap: 8px; }
  .top nav { margin-left: 0; max-width: none; }
  .top.has-user {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .top.has-user > div { grid-column: 1; grid-row: 1; }
  .top.has-user .userchip {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    margin: 0;
    max-width: 46%;
  }
  .top.has-user nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .brand-meta, .addr { display: none; }
  nav { gap: 4px; }
  nav a { padding: 8px 10px; font-size: 13px; text-align: center; }
  nav a.nav-partner { padding: 8px 10px; }
  body.lk nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  body.lk nav a { width: 100%; }
  .userchip { margin-left: 0; }
  main { padding: 16px 14px 36px; }
  h1 { font-size: 26px; }
  .hero-wide, .product, .split, .forms-2 { grid-template-columns: 1fr; }
  .object-setup .stack-form { grid-template-columns: 1fr; }
  .hero-visual img, .unit-photo, .photo-ph-lg { height: 240px; }
  .hero-visual { min-height: 240px; }
  .stats, .features, .channel-grid { grid-template-columns: 1fr; }
  .cta { width: 100%; }
  .cta .btn { text-align: center; flex: 1 1 calc(50% - 10px); min-width: 0; }
  .view-switch { width: 100%; }
  .view-switch-btn { flex: 1; justify-content: center; }
  .page-head.spread { align-items: stretch; }
  form.row label { min-width: 0; flex: 1 1 100%; }
  .books-filters { flex-direction: column; align-items: stretch; }
  .books-filters label, .books-filters select, .books-filters input { min-width: 0; width: 100%; }
  .books-toolbar { flex-direction: column; align-items: stretch; }
  .books-export { width: 100%; }
  .books-export .btn, .books-export button { flex: 1; text-align: center; }
  .books-charge form { flex-direction: column; align-items: stretch; }
  .books-charge button, .books-charge select { width: 100%; }
  .loc-switch select { min-width: 0; width: 100%; }
  .login-wrap { margin: 8px auto 0; }
  .login-wrap .card, .panel, .card { padding: 16px; }
  .site-foot { padding: 36px 16px 96px; }
  .site-foot-grid { grid-template-columns: 1fr; row-gap: 24px; padding-bottom: 24px; }
  .site-foot-bottom { padding-top: 22px; gap: 18px; }
  .cookie-bar-inner { flex-direction: column; align-items: stretch; padding: 14px 16px 16px; }
  .cookie-bar button { width: 100%; }
  .grid, .offers { grid-template-columns: 1fr; }
  .tenant-head { flex-direction: column; }
  .bal { text-align: left; }
  .filter-dims { grid-template-columns: 1fr; }
}
@media print {
  .top, .site-foot, .cookie-bar, .no-print { display: none !important; }
  body { background: #fff; }
  main { max-width: none; padding: 0; }
  .books-stats, .books-table { box-shadow: none; }
}
