:root {
  --bg: #f5f7f5;
  --surface: rgba(255, 255, 255, 0.9);
  --text: #041004;
  --muted: #5d675d;
  --line: #dce3dc;
  --blue: #02a902;
  --green: #02be02;
  --dark-green: #001800;
  --red: #c9342f;
  --shadow: 0 18px 55px rgba(0, 24, 0, 0.09);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 5%, #dff6df 0, transparent 25rem), var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 245, 247, 0.78);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.brand-logo {
  width: 76px;
  height: 50px;
  object-fit: contain;
  display: block;
}
.nav-register {
  background: var(--green);
  color: var(--dark-green);
  padding: 9px 14px;
  border-radius: 12px;
  font-weight: 750;
}
.brandmark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #111;
  color: white;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.inline {
  display: inline;
}
.link-button {
  border: 0;
  background: none;
  font: inherit;
  color: var(--blue);
  cursor: pointer;
  padding: 0;
}
.shell {
  max-width: 1180px;
  margin: auto;
  padding: 28px 24px 80px;
}
.hero {
  min-height: 500px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
  padding: 50px 0;
}
.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(48px, 7vw, 82px);
  letter-spacing: -0.065em;
  line-height: 0.95;
  margin: 18px 0 24px;
}
.hero h1 em {
  font-style: normal;
  color: #8a8a90;
}
.hero p {
  font-size: 20px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 650px;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: white;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.button.primary,
button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.button.danger {
  color: var(--red);
}
.hero-orb {
  width: min(380px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #c9dfff);
  box-shadow:
    inset -30px -30px 70px rgba(32, 83, 160, 0.15),
    var(--shadow);
  display: grid;
  place-items: center;
}
.mini-card {
  width: 80%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  padding: 20px;
  border-radius: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow);
}
.mini-card small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #222;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: 0 0 auto;
}
.icon.blue {
  background: #e5f1ff;
  color: var(--blue);
}
.icon.green {
  background: #e4f7ee;
  color: var(--green);
}
.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 20px 0 100px;
}
.entry-card {
  min-height: 235px;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 28px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  transition:
    0.2s transform,
    0.2s box-shadow;
}
.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.entry-card.dark {
  background: #1d1d1f;
  color: #fff;
}
.entry-card small {
  display: block;
  color: #929298;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  margin: 22px 0 5px;
}
.entry-card h2 {
  margin: 0;
  font-size: 24px;
}
.entry-card p {
  color: #8e8e93;
  line-height: 1.4;
}
.entry-card b {
  align-self: end;
  font-size: 22px;
}
.section-head,
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.section-head h2 {
  font-size: 44px;
  letter-spacing: -0.04em;
  margin: 10px 0 25px;
}
.section-head > a {
  color: var(--blue);
}
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.property-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}
.property-card img,
.photo-placeholder {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  background: linear-gradient(135deg, #d9e9ff, #eef3f9);
  display: grid;
  place-items: center;
}
.photo-placeholder span {
  font-size: 48px;
  color: #7aa8dd;
}
.property-body {
  padding: 20px;
}
.property-body h3 {
  margin: 0;
}
.property-body p {
  color: var(--muted);
  margin: 8px 0;
}
.meta {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin-top: 18px;
}
.notice {
  padding: 13px 16px;
  border-radius: 14px;
  margin: 8px 0 16px;
  background: #eaf4ff;
  color: #075baf;
}
.notice.error {
  background: #fff0ef;
  color: #a52a25;
}
.notice.success {
  background: #e9f8f1;
  color: #116d4b;
}
.panel {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}
.panel h2,
.panel h3 {
  margin-top: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.full {
  grid-column: 1/-1;
}
label {
  font-size: 13px;
  font-weight: 650;
  color: #4a4a4f;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #d3d3d8;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--text);
}
textarea {
  min-height: 100px;
  resize: vertical;
}
.auth-wrap {
  max-width: 460px;
  margin: 70px auto;
}
.auth-wrap h1 {
  font-size: 42px;
  letter-spacing: -0.045em;
}
.auth-wrap > .panel {
  padding: 32px;
}
.stack {
  display: grid;
  gap: 16px;
}
.muted {
  color: var(--muted);
}
.page-head {
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.page-head h1 {
  font-size: 48px;
  letter-spacing: -0.05em;
  margin: 8px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
}
.stat strong {
  font-size: 34px;
  display: block;
}
.stat span {
  color: var(--muted);
  font-size: 13px;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.wide {
  grid-column: 1/-1;
}
.list {
  display: grid;
  gap: 10px;
}
.list-item {
  padding: 15px;
  border-radius: 15px;
  background: #f5f5f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.list-item p,
.list-item small {
  margin: 3px 0;
  color: var(--muted);
}
.badge {
  padding: 5px 9px;
  background: #e9e9ed;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.badge.available,
.badge.approved,
.badge.resolved,
.badge.paid {
  background: #e3f7ec;
  color: #13704b;
}
.badge.urgent,
.badge.declined {
  background: #ffebe9;
  color: #a12923;
}
.tabs {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding: 2px 0 12px;
}
.tabs a {
  background: #fff;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 12px;
  color: var(--muted);
}
.scroll {
  overflow-x: auto;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 24px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gallery img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 1.4;
  object-fit: cover;
}
.gallery img:first-child {
  grid-column: 1/-1;
}
.policy {
  border-left: 3px solid var(--blue);
  padding-left: 14px;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.account-grid .panel {
  min-width: 0;
}
footer {
  max-width: 1180px;
  margin: auto;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 50px 0;
  }
  .hero-orb {
    display: none;
  }
  .entry-grid,
  .property-grid,
  .stats,
  .account-grid {
    grid-template-columns: 1fr 1fr;
  }
  .content-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 52px;
  }
  .wide {
    grid-column: auto;
  }
}
@media (max-width: 560px) {
  .shell {
    padding: 16px 16px 60px;
  }
  .topbar {
    padding: 0 16px;
  }
  .topbar nav a:not(:last-of-type) {
    display: none;
  }
  .hero {
    padding: 45px 0;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero p {
    font-size: 17px;
  }
  .actions {
    flex-direction: column;
  }
  .entry-grid,
  .property-grid,
  .stats,
  .account-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .entry-grid {
    margin-bottom: 65px;
  }
  .field.full {
    grid-column: auto;
  }
  .page-head {
    align-items: start;
    flex-direction: column;
  }
  .page-head h1 {
    font-size: 38px;
  }
  .section-head h2 {
    font-size: 34px;
  }
  .entry-card {
    min-height: 210px;
  }
  .list-item {
    align-items: flex-start;
    flex-direction: column;
  }
  footer {
    padding: 24px 16px;
  }
}
.stat {
  color: inherit;
}
.narrow {
  max-width: 620px;
  margin-inline: auto;
}
.permission-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px 18px;
  align-items: center;
}
.permission-editor label {
  font-size: 13px;
  color: var(--muted);
}
.permission-editor label:first-child {
  grid-column: 1/-1;
}
.user-access {
  align-items: flex-start;
}
.danger-zone {
  border-color: #efd3d1;
}
.section-head .button {
  font-size: 14px;
}
@media (max-width: 700px) {
  .permission-editor {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .permission-editor label:first-child {
    grid-column: auto;
  }
}
.record-row {
  gap: 24px;
}
.record-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}
.record-link,
.field-link {
  color: var(--blue);
  font-weight: 700;
}
.field-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
}
.summary-card {
  background: linear-gradient(
    135deg,
    rgba(2, 190, 2, 0.09),
    rgba(255, 255, 255, 0.96)
  );
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.detail-grid > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}
.detail-grid span,
.link-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.link-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}
.link-card small {
  color: var(--blue);
  margin-top: 8px;
}
.document-preview {
  display: block;
  max-width: 100%;
  max-height: 680px;
  margin: auto;
  border-radius: 16px;
}
.document-gallery a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.document-filters {
  flex-wrap: wrap;
}
.document-filters .active {
  background: var(--dark-green);
  color: white;
}
.badge.reported,
.badge.in_progress,
.badge.waiting {
  background: #fff3cc;
  color: #755700;
}
.badge.resolved,
.badge.closed,
.badge.paid {
  background: #dff6df;
  color: #075d07;
}
.badge.ended,
.badge.cancelled,
.badge.outstanding {
  background: #f2e8e7;
  color: #8c2925;
}
@media (max-width: 760px) {
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .record-meta {
    align-items: flex-start;
    text-align: left;
  }
  .topbar {
    height: auto;
    min-height: 64px;
  }
  .topbar nav {
    gap: 12px;
    overflow-x: auto;
    max-width: 72vw;
    padding: 12px 0;
  }
}
@media (max-width: 520px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
.property-register .page-head {
  padding-block: 17px;
}
.property-register .tabs {
  gap: 5px;
  padding-block: 1px 6px;
}
.property-register .panel {
  padding: 12px;
  border-radius: 18px;
}
.property-register .section-head {
  gap: 9px;
}
.property-register .section-head h2 {
  margin: 5px 0 12px;
}
.property-register .list {
  gap: 5px;
}
.property-register .list-item {
  padding: 8px 12px;
  border-radius: 12px;
}
.property-register .record-row {
  gap: 12px;
}
.property-register .record-meta {
  gap: 3px;
}
.lease-builder-panel {
  margin-top: 20px;
}
.signature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.signature-field {
  display: grid;
  gap: 7px;
}
.signature-pad {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 32/9;
  background: #fff;
  border: 1px solid #b9c3b9;
  border-radius: 12px;
  touch-action: none;
  cursor: crosshair;
}
.signature-pad:focus {
  outline: 3px solid rgba(2, 169, 2, 0.25);
  border-color: var(--blue);
}
.signature-clear {
  padding: 7px 11px;
  font-size: 13px;
}
.checkbox input {
  width: auto;
  margin-right: 8px;
}
@media (max-width: 700px) {
  .signature-grid {
    grid-template-columns: 1fr;
  }
}
.page-head > .actions {
  margin-top: 0;
}
.page-head > .actions > a:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 650;
}
code {
  overflow-wrap: anywhere;
}
.photo-tile {
  display: grid;
  gap: 6px;
}
.photo-frame {
  position: relative;
}
.photo-tile img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.photo-tile form {
  margin: 0;
}
.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.photo-actions button {
  padding: 7px 9px;
  font-size: 12px;
}
.cover-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--green);
  color: var(--dark-green);
  font-size: 12px;
  font-weight: 750;
}
.photo-delete {
  color: var(--red);
  background: #fff;
  border-color: #e7c4c2;
}
.cover-photo {
  max-width: 420px;
}
.cover-photo img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 14px;
}
.photo-manager {
  margin-top: 14px;
}
.photo-manager > summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 700;
}
.photo-manager[open] > summary {
  margin-bottom: 14px;
}
.property-profile h3 {
  margin: 12px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.option-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.option-group > label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}
.option-group input,
.amenity-option input {
  width: auto;
}
.property-map {
  height: 360px;
  margin: 18px 0 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.amenity-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 9px;
}
.amenity-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.amenity-option span,
.amenity-option small {
  display: block;
}
.amenity-option small {
  margin-top: 3px;
  color: var(--muted);
}
.geocode-result {
  width: 100%;
  text-align: left;
}
.accounting-history,
.property-about {
  margin-top: 20px;
}
.register-link {
  color: var(--blue);
}
.property-photo-placeholder {
  border-radius: 24px;
}
.property-rent {
  font-size: 28px;
}
.lease-rent {
  display: block;
  margin-top: 8px;
}
