:root {
  color-scheme: light;
  --bg: #fbfdfb;
  --surface: #ffffff;
  --surface-soft: #dff3ee;
  --line: #dce5e1;
  --line-strong: #b8cac4;
  --text: #173332;
  --muted: #5d6c6a;
  --brand: #0e6b63;
  --brand-strong: #0a4e49;
  --brand-soft: #dff3ee;
  --accent-strong: #9abbb4;
  --accent-clay: #b66f4f;
  --accent-blue: #27536b;
  --sidebar: #ffffff;
  --sidebar-text: #173332;
  --sidebar-muted: #5d6c6a;
  --sidebar-active-bg: #dff3ee;
  --sidebar-mark-bg: transparent;
  --danger: #b42318;
  --warning: #8a6b37;
  --shadow: 0 18px 42px rgba(23, 51, 50, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 16px;
  background:
    linear-gradient(110deg, rgba(23, 51, 50, 0.76), rgba(23, 51, 50, 0.38) 52%, rgba(23, 51, 50, 0.18)),
    linear-gradient(0deg, rgba(251, 253, 251, 0.22), rgba(251, 253, 251, 0.10)),
    url("/hoidur-login-bg-modern.jpg") center / cover no-repeat;
}

.login-panel {
  width: min(440px, 100%);
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(23, 51, 50, 0.28);
  backdrop-filter: blur(8px);
}

.brand-lockup {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.brand-title {
  margin: 0;
  font-size: 23px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.login-actions {
  display: grid;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.button:hover {
  border-color: var(--brand);
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
}

.button:disabled:hover,
.button[aria-disabled="true"]:hover {
  border-color: var(--line-strong);
}

.button.primary {
  color: #f7fffa;
  background: var(--brand);
  border-color: var(--brand);
}

.button.primary:hover {
  background: var(--brand-strong);
}

.button.danger {
  color: var(--danger);
  border-color: #e6bbb5;
}

.button.icon {
  width: 36px;
  min-height: 36px;
  padding: 0;
}

.button.small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}

.link-button,
.text-button,
.link-like {
  padding: 0;
  color: var(--brand);
  font: inherit;
  font-weight: 700;
  text-align: left;
  background: transparent;
  border: 0;
}

.link-button:hover,
.text-button:hover,
.relation-open-button:hover,
.clickable-row:hover .link-like {
  color: var(--brand-strong);
  text-decoration: underline;
}

.table-wrap a,
.detail-grid a {
  color: var(--brand-strong);
  font-weight: 700;
  text-decoration: none;
}

.table-wrap a:hover,
.detail-grid a:hover {
  text-decoration: underline;
}

.permissions-panel {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.permissions-panel-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.permissions-panel-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.permissions-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.permissions-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 560px;
}

.access-role-list {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 12px;
  background: var(--surface-soft);
  border-right: 1px solid var(--line);
}

.access-role-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 9px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.access-role-tab {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 10px 11px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
}

.access-role-tab:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
}

.access-role-tab.active {
  color: var(--brand-strong);
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: 0 4px 12px rgba(47, 48, 43, 0.06);
}

.access-role-tab span {
  font-size: 13px;
  font-weight: 800;
}

.access-role-tab small {
  color: var(--muted);
  font-size: 11px;
}

.access-role-panes {
  min-width: 0;
}

.access-role-pane {
  padding: 18px;
}

.access-role-pane[hidden] {
  display: none;
}

.access-role-pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.access-role-eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.access-role-pane-head h3 {
  margin: 3px 0 4px;
  color: var(--brand-strong);
  font-size: 22px;
}

.access-role-pane-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.access-role-presets {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.access-permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
  padding-top: 16px;
}

.access-permission-card {
  min-width: 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.access-permission-card-wide {
  grid-column: 1 / -1;
}

.property-access-scopes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.property-access-scope {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.property-access-scope > div {
  min-width: 0;
}

.property-access-scope strong,
.property-access-scope small {
  display: block;
}

.property-access-scope strong {
  color: var(--text);
  font-size: 12px;
}

.property-access-scope small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.property-access-scope .permission-toggle {
  flex: 0 0 auto;
}

.property-access-edit {
  background: var(--surface);
  border-style: dashed;
}

.access-permission-card-head {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
}

.access-permission-card-head .nav-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: var(--brand-strong);
}

.access-permission-card-head .nav-icon svg {
  width: 18px;
  height: 18px;
}

.access-permission-card-head strong {
  display: block;
  min-width: 0;
  font-size: 13px;
  line-height: 1.25;
}

.access-permission-card-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
}

.access-permission-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.permission-toggle {
  display: flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.permission-toggle:has(input:checked) {
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-color: var(--line-strong);
}

.permission-toggle input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  accent-color: var(--brand);
}

.text-button {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.notice {
  margin-top: 16px;
  padding: 12px;
  color: var(--warning);
  background: #fff8e8;
  border: 1px solid #ecd7a7;
  border-radius: 6px;
  font-size: 14px;
}

.notice.subtle {
  color: var(--muted);
  background: var(--surface-soft);
  border-color: var(--line);
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--sidebar);
  color: var(--sidebar-text);
  border-right: 1px solid var(--line);
}

.mobile-menu-bar {
  display: none;
}

.sidebar .brand-lockup {
  padding: 22px 20px 18px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.sidebar .brand-mark {
  background: var(--sidebar-mark-bg);
}

.sidebar .brand-subtitle {
  color: var(--sidebar-muted);
}

.nav {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 2px;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}

.nav-group {
  display: grid;
  gap: 2px;
}

.nav-group + .nav-group {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.nav-group-title {
  padding: 0 10px 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.nav button {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: var(--sidebar-muted);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.nav button:hover,
.nav button.active {
  color: var(--brand-strong);
  background: var(--sidebar-active-bg);
}

.nav-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--sidebar-muted);
}

.nav-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.nav button:hover .nav-icon,
.nav button.active .nav-icon {
  color: var(--brand-strong);
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
}

.user-mini {
  min-width: 0;
  color: var(--sidebar-text);
  font-size: 13px;
}

.profile-link {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  color: var(--sidebar-muted);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.profile-link:hover,
.profile-link.active {
  color: var(--brand-strong);
}

.profile-link .nav-icon {
  flex: 0 0 24px;
}

.profile-link-text {
  display: block;
  min-width: 0;
}

.profile-link-text strong,
.profile-link-text small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-link-text strong {
  color: currentColor;
}

.profile-link-text small {
  color: var(--sidebar-muted);
}

.profile-link:hover .profile-link-text small,
.profile-link.active .profile-link-text small {
  color: var(--muted);
}

.user-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.profile-role-list {
  margin-top: 5px;
}

.role-switch-button {
  margin: 3px 0 0 34px;
  padding: 2px 0;
  color: var(--brand);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 750;
}

.role-switch-button:hover {
  color: var(--brand-strong);
  text-decoration: underline;
}

.user-role-list span {
  display: inline-flex;
  max-width: 100%;
  min-height: 22px;
  align-items: center;
  padding: 3px 7px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.logout-link {
  display: inline-flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 8px 0;
  color: var(--sidebar-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.logout-link:hover {
  color: var(--brand-strong);
}

.button-icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.content {
  min-width: 0;
}

.topbar {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.topbar p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.view-toggle-mini {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.view-toggle-mini button {
  min-width: 30px;
  min-height: 30px;
  padding: 4px 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.view-toggle-mini button:hover,
.view-toggle-mini button.active {
  color: var(--brand-strong);
  background: var(--surface);
}

.main {
  padding: 24px 28px 32px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat {
  min-width: 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
}

.dashboard-section {
  display: grid;
  gap: 12px;
}

.dashboard-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-module-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  color: var(--text);
  font: inherit;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.dashboard-module-card:hover,
.dashboard-module-card:focus {
  border-color: var(--line-strong);
  box-shadow: 0 8px 18px rgba(47, 48, 43, 0.08);
  outline: 0;
}

.dashboard-module-icon {
  width: 34px;
  height: 34px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 8px;
}

.dashboard-module-card strong,
.dashboard-module-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-module-card strong {
  font-size: 14px;
}

.dashboard-module-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.section-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.section-bar h2 {
  margin: 0;
  font-size: 18px;
}

.section-bar p {
  justify-self: start;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section-bar-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  justify-content: flex-end;
  gap: 10px;
}

.section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.mobile-listing {
  display: none;
}

.section-filters {
  display: grid;
  width: min(240px, 100%);
  gap: 5px;
  justify-self: center;
  min-width: min(240px, 100%);
}

.section-filters label {
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-filters select {
  min-height: 38px;
  padding: 7px 10px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.section-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 3px;
}

.section-meta p {
  margin: 0;
}

.manuals-toolbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
}

.manuals-filter-group {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 14px;
  margin-left: auto;
  flex-wrap: wrap;
}

.manuals-filter-group .section-filters {
  justify-self: auto;
}

.manual-search {
  width: min(360px, 100%);
}

.manuals-results {
  display: grid;
  gap: 10px;
}

.tab-metric {
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
  min-height: 28px;
  padding: 4px 9px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
}

.tab-metric span {
  color: var(--muted);
  font-weight: 700;
}

.tab-metric strong {
  color: var(--text);
  font-size: 14px;
}

.property-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
  margin-bottom: 18px;
}

.property-detail-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
}

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

.property-info-mobile-accordion {
  display: none;
}

.property-info-card {
  min-width: 0;
  padding: 12px 14px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.property-info-card h2 {
  margin: 0;
  color: var(--brand-strong);
  font-size: 15px;
  line-height: 1.25;
}

.property-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
  margin: 8px 0 0;
}

.property-info-list div {
  min-width: 0;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.property-info-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.property-info-list dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.32;
}

.property-address-line {
  margin: 6px 0 10px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.property-location-card {
  padding: 0;
  overflow: hidden;
}

.property-map-compact {
  height: 100%;
  min-height: 220px;
  overflow: hidden;
  border-radius: 8px;
}

.property-map-compact .map-frame {
  height: 100%;
  min-height: 220px;
}

.property-map-compact iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
}

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

.property-overview > div,
.profile-group,
.tabs-section {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-group {
  padding-top: 0;
}

.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 0;
}

.detail-head h2 {
  margin: 0;
  font-size: 18px;
}

.detail-head-actions {
  display: flex;
  gap: 8px;
}

.detail-group {
  padding: 0 16px 12px;
}

.detail-group h3 {
  margin: 16px 0 0;
  color: var(--brand-strong);
  font-size: 14px;
}

.detail-group .detail-grid {
  padding: 0;
}

.detail-group + .detail-group {
  border-top: 1px solid var(--line);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 12px 0 0;
  padding: 0 16px 16px;
}

.detail-grid div {
  min-width: 0;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.detail-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-grid dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.detail-grid .detail-wide {
  grid-column: 1 / -1;
}

.detail-grid-wide {
  padding: 0;
}

.detail-field-section + .detail-field-section {
  margin-top: 14px;
  padding-top: 2px;
  border-top: 1px solid var(--line);
}

.detail-field-section h3 {
  margin: 8px 0 2px;
  color: var(--brand-strong);
  font-size: 14px;
}

.detail-field-section .detail-grid {
  margin-top: 8px;
}

.detail-note {
  margin: 0 16px 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.detail-note strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.detail-note p {
  margin: 6px 0 0;
}

.map-panel {
  min-height: 280px;
  overflow: hidden;
}

.map-frame {
  position: relative;
  min-height: 280px;
}

.map-panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

.map-link {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 32px;
  padding: 7px 10px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.map-notice {
  padding: 10px 12px;
  color: var(--muted);
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.4;
}

.map-empty {
  display: grid;
  min-height: 280px;
  place-items: center;
  color: var(--muted);
}

.tabs-section {
  padding: 12px;
}

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
}

.tabs button:hover,
.tabs button.active {
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-color: var(--accent-strong, var(--line-strong));
}

.property-related-section {
  display: grid;
  gap: 14px;
}

.related-view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.related-view-head h2 {
  margin: 0;
  font-size: 18px;
}

.related-view-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.related-accordion-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  color: var(--text);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.related-accordion-item:hover,
.related-accordion-item.active {
  border-color: var(--accent-strong, var(--line-strong));
  box-shadow: 0 8px 18px rgba(47, 48, 43, 0.08);
}

.related-accordion-item.active {
  background: var(--brand-soft);
}

.related-nav-icon {
  color: var(--brand-strong);
}

.related-module-main {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.related-module-main strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-module-main span {
  color: var(--muted);
  font-size: 12px;
}

.related-accordion-list {
  display: grid;
  gap: 7px;
}

.related-accordion-entry {
  display: grid;
}

.related-accordion-item {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.related-accordion-caret {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.related-accordion-entry.active .related-accordion-item {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.related-accordion-panel {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.property-related-content {
  display: grid;
  gap: 12px;
}

.property-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.property-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 100px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.property-card.public-property {
  background: #fff4f8;
  border-color: #e8b9c9;
}

.property-card.public-property .property-card-photo {
  background: #f8dce8;
}

.property-card.inactive-lease {
  color: var(--muted);
  background: #f3f2ee;
  border-color: #d7d3c8;
}

.property-card.inactive-lease .related-record-icon {
  background: #e7e4dc;
}

.property-card.inactive-lease .property-card-body h3,
.property-card.inactive-lease .property-card-body p {
  color: var(--muted);
}

.property-card.inactive-lease .badge {
  color: var(--muted);
  background: #e3dfd6;
}

.property-card:hover,
.property-card:focus {
  border-color: var(--line-strong);
  box-shadow: 0 10px 24px rgba(47, 48, 43, 0.10);
  outline: 0;
}

.add-card {
  align-items: center;
  min-height: 82px;
  padding: 0;
  color: var(--brand-strong);
  font: inherit;
  text-align: left;
  background: var(--surface-soft);
  border-style: dashed;
}

.add-card:hover,
.add-card:focus {
  background: var(--brand-soft);
}

.add-card-icon {
  display: grid;
  width: 150px;
  height: 82px;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
}

.add-card-body {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 10px;
}

.add-card-body strong,
.add-card-body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.add-card-body strong {
  font-size: 15px;
}

.add-card-body small {
  color: var(--muted);
  font-size: 12px;
}

.property-card-photo {
  min-width: 0;
  width: 150px;
  height: 100px;
  overflow: hidden;
  background: var(--surface-soft);
}

.related-record-icon {
  display: grid;
  width: 150px;
  height: 100px;
  place-items: center;
  background: var(--surface-soft);
  border-right: 1px solid var(--line);
}

.related-record-icon .nav-icon {
  width: 42px;
  height: 42px;
  color: var(--brand-strong);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
}

.related-record-icon .nav-icon svg {
  width: 23px;
  height: 23px;
}

.property-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-photo-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 100px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(66, 82, 69, 0.16), rgba(206, 195, 176, 0.42)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.20) 0 18px, rgba(255, 255, 255, 0.04) 18px 36px);
}

.property-photo-placeholder.variant-1 {
  background:
    linear-gradient(135deg, rgba(63, 91, 124, 0.16), rgba(214, 208, 196, 0.48)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 18px, rgba(255, 255, 255, 0.04) 18px 36px);
}

.property-photo-placeholder.variant-2 {
  background:
    linear-gradient(135deg, rgba(128, 88, 58, 0.16), rgba(207, 202, 190, 0.48)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 18px, rgba(255, 255, 255, 0.04) 18px 36px);
}

.property-photo-placeholder span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: rgba(47, 62, 52, 0.72);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
}

.property-photo-placeholder svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.property-card-body {
  min-width: 0;
  padding: 9px 10px;
}

.property-card-body h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.property-card-body p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.property-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.property-card-meta span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.property-card-meta svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.property-card-meta .warning-badge {
  color: #7a3a12;
  background: #f7e4ca;
  border-color: #e7c59f;
}

.property-card-meta .public-status-badge {
  color: #7c2744;
  background: #f8dce8;
  border-color: #e8b9c9;
}

.table-warning {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  color: #7a3a12;
  background: #f7e4ca;
  border: 1px solid #e7c59f;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.inline-warning-icon {
  display: block;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.table-wrap {
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--surface-soft);
}

td {
  font-size: 13px;
  line-height: 1.35;
}

tr:last-child td {
  border-bottom: 0;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover td,
.clickable-row:focus td {
  background: var(--surface-soft);
}

.clickable-row.public-property td {
  background: #fff7fa;
}

.clickable-row.public-property:hover td,
.clickable-row.public-property:focus td {
  background: #fcedf3;
}

.clickable-row.inactive-lease td {
  color: var(--muted);
  background: #f3f2ee;
}

.clickable-row.inactive-lease:hover td,
.clickable-row.inactive-lease:focus td {
  background: #ece9e1;
}

.clickable-row.inactive-lease .badge {
  color: var(--muted);
  background: #e3dfd6;
}

.clickable-row:focus {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.empty {
  padding: 32px;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(47, 48, 43, 0.34);
  z-index: 20;
}

.drawer {
  width: min(560px, 100%);
  min-height: 100%;
  overflow: auto;
  background: var(--surface);
  box-shadow: -18px 0 36px rgba(47, 48, 43, 0.18);
}

.cost-review-drawer {
  width: min(1080px, 100%);
}

.cost-review-drawer .form {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  align-items: start;
}

.cost-review-drawer .field,
.cost-review-drawer .form-actions {
  grid-column: 2;
}

.cost-invoice-review {
  position: sticky;
  top: 0;
  display: grid;
  grid-column: 1;
  grid-row: 1 / span 40;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cost-invoice-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cost-invoice-review-head div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.cost-invoice-review-head strong {
  font-size: 15px;
}

.cost-invoice-review-head span {
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 12px;
}

.cost-invoice-review-body {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.cost-invoice-frame {
  display: block;
  width: 100%;
  height: min(72vh, 720px);
  border: 0;
  background: #ffffff;
}

.cost-invoice-image {
  display: block;
  width: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
  background: #ffffff;
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2 {
  margin: 0;
  font-size: 20px;
}

.drawer-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.drawer-kicker {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-drawer-body {
  padding: 6px 22px 20px;
}

.detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--line);
}

.related-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.related-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.related-section-head h3 {
  margin: 0;
  font-size: 17px;
}

.related-section-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.related-section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-section-actions strong {
  white-space: nowrap;
}

.cost-analytics-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.cost-analytics-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.2;
}

.cost-analytics-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.cost-analytics-total {
  display: grid;
  gap: 2px;
  justify-items: end;
  white-space: nowrap;
}

.cost-analytics-total span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.cost-analytics-total strong {
  font-size: 20px;
  line-height: 1.1;
}

.cost-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(56px, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 178px;
  overflow-x: auto;
  padding-top: 4px;
}

.cost-chart-month {
  display: grid;
  grid-template-rows: 24px 120px auto;
  gap: 6px;
  min-width: 56px;
  align-items: end;
  text-align: center;
}

.cost-chart-value {
  min-height: 24px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cost-chart-track {
  display: flex;
  height: 120px;
  align-items: flex-end;
  padding: 3px;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.cost-chart-stack {
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
}

.cost-chart-segment {
  display: block;
  width: 100%;
  min-height: 2px;
}

.cost-chart-segment.muted {
  opacity: 0.82;
}

.cost-chart-segment.selected {
  box-shadow: inset 0 0 0 1px rgba(0, 48, 48, 0.18);
}

.cost-chart-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
}

.cost-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.cost-chart-legend-item {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  color: var(--muted);
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
}

.cost-chart-legend-item:hover {
  border-color: var(--brand);
}

.cost-chart-legend-item.active {
  color: var(--brand);
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(0, 112, 102, 0.16);
}

.cost-chart-legend-item.dimmed {
  opacity: 0.64;
}

.cost-chart-legend-item:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.cost-chart-legend-color {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.cost-chart-legend-item strong {
  color: var(--text);
}

.cost-invoice-import {
  display: flex;
  justify-content: flex-start;
  margin: 12px 0;
}

.cost-invoice-import-form {
  margin: 12px 0;
}

.cost-line-items-field {
  min-width: 0;
}

.cost-line-items-wrap table {
  min-width: 620px;
}

.cost-line-items-table th,
.cost-line-items-table td {
  padding: 8px;
}

.cost-line-items-table input {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font: inherit;
}

.cost-line-items-table td:nth-child(2),
.cost-line-items-table td:nth-child(4),
.cost-line-items-table td:nth-child(5) {
  width: 96px;
}

.cost-line-items-table td:nth-child(3) {
  width: 72px;
}

.utility-connections-field {
  min-width: 0;
  padding: 0;
  border: 0;
}

.utility-connections-field legend {
  margin-bottom: 8px;
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.utility-connections-list {
  display: grid;
  gap: 8px;
}

.utility-connection-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(120px, 0.65fr) minmax(130px, 0.75fr);
  gap: 8px;
  align-items: end;
  padding: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.utility-connection-row label:not(.checkbox-field) {
  display: grid;
  gap: 4px;
}

.utility-connection-row label:not(.checkbox-field) span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.utility-connection-row select {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font: inherit;
}

.utility-connection-summary {
  display: grid;
  gap: 5px;
}

.utility-connection-summary span {
  display: block;
}

.compact-table table {
  min-width: 520px;
}

.related-empty {
  padding: 18px;
}

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

.activity-item {
  min-width: 0;
  padding: 10px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.activity-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.activity-item strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.admin-panel {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-panel-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.admin-panel-head p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.invite-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.8fr) minmax(240px, 1.2fr) auto;
  gap: 10px;
  align-items: end;
}

.invited-users-table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.row-actions {
  display: inline-flex;
  gap: 6px;
  justify-content: flex-end;
}

.status-pill {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 3px 8px;
  color: var(--text);
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.disabled {
  color: var(--muted);
  background: #f3f1ec;
}

.muted {
  color: var(--muted);
}

.attachments-section {
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 16px;
}

.main > .attachments-section {
  margin-top: 18px;
  padding-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-drawer .attachments-section {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.attachments-accordion-head {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.attachments-accordion-head:hover,
.attachments-accordion-head.active {
  background: var(--brand-soft);
  border-color: var(--accent-strong, var(--line-strong));
}

.attachments-accordion-head.active {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.attachments-accordion-head strong,
.attachments-accordion-head small {
  display: block;
}

.attachments-accordion-title {
  min-width: 0;
}

.attachments-accordion-head strong {
  font-size: 17px;
}

.attachments-accordion-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.attachments-accordion-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.attachments-toolbar {
  display: flex;
  justify-content: flex-end;
}

.attachments-toolbar .button {
  width: auto;
}

.attachment-form {
  margin-bottom: 0;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.attachment-notes-field {
  grid-column: 1 / -1;
}

.attachment-list {
  display: grid;
  gap: 8px;
}

.attachment-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.attachment-file-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.attachment-file-mark.has-thumbnail {
  overflow: hidden;
  padding: 0;
  background: var(--surface-soft);
}

.attachment-file-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-row-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.attachment-row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.attachment-row h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.attachment-row p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 13px;
}

.attachment-row small {
  color: var(--muted);
  font-size: 10px;
}

.attachment-notes {
  margin-top: 4px;
}

.attachment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.preview-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(47, 48, 43, 0.52);
  z-index: 40;
}

.preview-modal {
  display: grid;
  width: min(980px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  overflow: hidden;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.preview-body {
  display: grid;
  min-height: 360px;
  overflow: auto;
  background: #2f332f;
}

.preview-image {
  display: block;
  max-width: 100%;
  max-height: 68vh;
  margin: auto;
  object-fit: contain;
}

.preview-frame {
  width: 100%;
  height: 68vh;
  border: 0;
  background: #ffffff;
}

.preview-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 320px;
  padding: 24px;
  color: #ffffff;
  text-align: center;
}

.preview-empty p {
  margin: 0;
  color: var(--sidebar-muted);
}

.form {
  display: grid;
  gap: 14px;
  padding: 20px 22px 24px;
}

.field {
  position: relative;
  display: grid;
  gap: 6px;
}

.form-section {
  display: grid;
  gap: 14px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form-section h3 {
  margin: 0;
  color: var(--brand-strong);
  font-size: 14px;
}

.field label {
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.readonly-field {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.address-suggestions {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  z-index: 30;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.address-suggestions[hidden] {
  display: none;
}

.address-suggestions button {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 10px;
  color: var(--text);
  text-align: left;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.address-suggestions button:last-child {
  border-bottom: 0;
}

.address-suggestions button:hover {
  background: var(--surface-soft);
}

.address-suggestions small {
  color: var(--muted);
  font-size: 12px;
}

.readonly-field {
  display: flex;
  align-items: center;
  color: var(--muted);
  background: var(--surface-soft);
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
}

.role-checklist {
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.role-checklist legend {
  padding: 0 4px;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
}

.role-checklist .checkbox-field + .checkbox-field {
  margin-top: 8px;
}

.multi-picker {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
}

.multi-picker summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
}

.multi-picker summary::-webkit-details-marker {
  display: none;
}

.multi-picker summary span {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-picker summary strong {
  color: var(--brand-strong);
  font-size: 12px;
}

.multi-picker[open] summary {
  border-bottom: 1px solid var(--line);
}

.multi-picker-options {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding: 10px;
  background: var(--surface-soft);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}

.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge.muted {
  color: var(--muted);
  background: var(--surface-soft);
}

.public-shell {
  min-height: 100vh;
  background: var(--page);
}

.public-page {
  display: grid;
  gap: 14px;
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 28px;
}

.public-header {
  padding: 13px 18px;
  color: #f7fbf8;
  background: #173832;
  border-radius: 8px;
}

.public-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.public-header-brand:hover,
.public-header-brand:focus-visible {
  color: inherit;
  text-decoration: none;
}

.public-header-brand .brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.public-header-brand strong,
.public-header-brand span {
  display: block;
}

.public-header-brand strong {
  font-size: 24px;
  font-weight: 760;
  line-height: 1.05;
}

.public-header-brand span {
  margin-top: 3px;
  color: rgba(247, 251, 248, 0.78);
  font-size: 11px;
  line-height: 1.35;
}

.public-title-block {
  display: grid;
  gap: 2px;
  padding: 2px 0;
}

.public-title-block h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 760;
  line-height: 1.1;
}

.public-title-block p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.public-pair-grid,
.public-info-map-grid,
.public-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.public-hero {
  min-height: 0;
  align-items: start;
}

.public-window {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.public-hero-image {
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: var(--surface-soft);
}

.public-image-button {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: inherit;
  background: var(--surface-soft);
  border: 0;
  cursor: zoom-in;
}

.public-window.public-image-button {
  border: 1px solid var(--line);
}

.public-hero-image img,
.public-room-photo img {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 160ms ease;
}

.public-image-button:hover img {
  transform: scale(1.015);
}

.public-hero-image img {
  object-fit: cover;
}

.public-room-photo img {
  object-fit: contain;
}

.public-photo-placeholder,
.public-room-placeholder {
  display: grid;
  height: 100%;
  min-height: 220px;
  place-items: center;
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.public-photo-placeholder .brand-mark {
  width: 72px;
  height: 72px;
}

.public-hero-facts,
.public-marketing-section {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}

.public-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--brand-strong);
  font-weight: 800;
}

.public-brand .brand-mark {
  width: 34px;
  height: 34px;
}

.public-rent {
  color: var(--brand-strong);
  font-size: 19px;
  font-weight: 720;
  line-height: 1.1;
}

.public-rent-block {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  padding-bottom: 4px;
}

.public-rent-block span {
  color: var(--muted);
  font-size: 13px;
}

.public-marketing-copy {
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.public-marketing-copy :first-child {
  margin-top: 0;
}

.public-marketing-copy :last-child {
  margin-bottom: 0;
}

.public-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.public-section h2,
.public-section h3 {
  margin: 0;
}

.public-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.public-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.public-fact {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.public-fact span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.public-fact strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.3;
}

.public-map-section {
  padding: 0;
  overflow: hidden;
}

.public-map {
  height: 100%;
  min-height: 226px;
  overflow: hidden;
}

.public-map .map-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.public-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

.public-room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.public-room-card {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.public-room-card.without-photo {
  background: var(--surface);
}

.public-room-card.without-photo .public-room-body {
  padding-top: 16px;
}

.public-room-photo {
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: var(--surface-soft);
}

.public-room-photo img {
  object-fit: cover;
}

.public-room-placeholder .nav-icon {
  width: 42px;
  height: 42px;
}

.public-room-body {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 13px;
}

.public-room-title {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: baseline;
  margin: 0;
}

.public-room-title small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.public-room-body p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.public-inventory-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-inventory-list li,
.public-cost-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.public-inventory-list span,
.public-cost-row span {
  color: var(--muted);
  font-size: 12px;
}

.public-inventory-list li span:last-child {
  flex: 0 0 auto;
  color: var(--text);
}

.public-cost-list {
  display: grid;
  gap: 0;
}

.public-cost-row div {
  display: grid;
  gap: 3px;
}

.public-cost-card {
  margin-bottom: 2px;
}

.public-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.public-contact-grid a {
  color: var(--brand-strong);
  text-decoration: none;
}

.public-contact-grid a:hover {
  text-decoration: underline;
}

.public-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(36px, 6vh, 72px) clamp(16px, 3vw, 32px);
  overflow: hidden;
  background: rgba(8, 24, 22, 0.86);
}

.public-lightbox-dialog {
  position: relative;
  display: grid;
  align-self: center;
  justify-self: center;
  width: fit-content;
  max-width: calc(100vw - clamp(32px, 6vw, 64px));
  max-height: calc(100vh - clamp(72px, 12vh, 144px));
  max-height: calc(100dvh - clamp(72px, 12dvh, 144px));
  margin: auto;
  place-items: center;
}

.public-lightbox-dialog img {
  display: block;
  align-self: center;
  justify-self: center;
  width: auto;
  height: auto;
  max-width: calc(100vw - clamp(32px, 6vw, 64px));
  max-height: calc(100vh - clamp(72px, 12vh, 144px));
  max-height: calc(100dvh - clamp(72px, 12dvh, 144px));
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.public-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #f7fbf8;
  font-size: 24px;
  line-height: 1;
  background: rgba(8, 24, 22, 0.62);
  border: 1px solid rgba(247, 251, 248, 0.42);
  border-radius: 999px;
  cursor: pointer;
}

.public-empty-page {
  min-height: 100vh;
  place-items: center;
}

.public-empty-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(420px, 100%);
  padding: 28px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.public-empty-card .brand-mark {
  width: 54px;
  height: 54px;
}

.role-selector-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 51, 50, 0.52);
  backdrop-filter: blur(3px);
}

.role-selector-panel {
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 26px 80px rgba(23, 51, 50, 0.24);
}

.role-selector-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.role-selector-head .eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-selector-head h1 {
  margin: 0;
  font-size: 26px;
}

.role-selector-head p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
}

.role-selector-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.role-context-list {
  display: grid;
  gap: 10px;
}

.role-context-option {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 82px;
  padding: 14px;
  color: var(--text);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
}

.role-context-option:hover,
.role-context-option:focus,
.role-context-option.active {
  background: var(--brand-soft);
  border-color: var(--accent-strong);
  outline: 0;
}

.role-context-option:disabled {
  cursor: wait;
  opacity: 0.68;
}

.role-context-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--brand-strong);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.role-context-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.role-context-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.role-context-copy strong {
  font-size: 16px;
}

.role-context-copy small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.role-context-caret {
  color: var(--brand);
  font-size: 28px;
  line-height: 1;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 920px) {
  .permissions-workspace {
    grid-template-columns: 1fr;
  }

  .access-role-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .access-role-list-head {
    grid-column: 1 / -1;
  }

  .access-permission-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

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

  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    height: auto;
    overflow: visible;
  }

  .mobile-menu-bar {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    background: var(--sidebar);
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu-bar .brand-lockup {
    min-width: 0;
    padding: 0;
    border-bottom: 0;
  }

  .mobile-menu-bar .brand-mark {
    width: 36px;
    height: 36px;
  }

  .mobile-menu-toggle {
    width: auto;
    color: var(--brand-strong);
    background: var(--brand-soft);
    border-color: var(--line-strong);
  }

  .sidebar > .brand-lockup,
  .sidebar > .nav,
  .sidebar > .sidebar-footer {
    display: none;
  }

  .sidebar.menu-open > .nav {
    display: grid;
    flex: none;
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    padding: 8px 12px 10px;
    background: var(--sidebar);
  }

  .sidebar.menu-open > .sidebar-footer {
    display: block;
    margin-top: 0;
    padding: 12px;
    background: var(--sidebar);
  }

  .nav button {
    width: 100%;
  }

  .topbar {
    align-items: flex-start;
    padding: 16px;
  }

  .main {
    padding: 16px;
  }

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

  .dashboard-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .profile-overview {
    grid-template-columns: 1fr;
  }

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

  .public-pair-grid,
  .public-hero,
  .public-info-map-grid {
    grid-template-columns: 1fr;
  }

  .public-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .public-room-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .access-role-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .access-permission-grid {
    grid-template-columns: 1fr;
  }

  .desktop-listing,
  .desktop-only {
    display: none !important;
  }

  .mobile-listing {
    display: block;
  }

  .dashboard-module-grid {
    grid-template-columns: 1fr;
  }

  .invite-form {
    grid-template-columns: 1fr;
  }

  .cost-chart {
    grid-template-columns: repeat(12, 58px);
  }

  .utility-connection-row {
    grid-template-columns: 1fr;
  }

  .public-page {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .public-hero {
    min-height: 0;
  }

  .public-hero-image {
    min-height: 0;
  }

  .public-hero-facts,
  .public-marketing-section {
    padding: 20px;
  }

  .public-header {
    padding: 14px 16px;
  }

  .public-header-brand {
    align-items: flex-start;
  }

  .public-header-brand strong {
    font-size: 25px;
  }

  .public-header-brand span {
    font-size: 12px;
  }

  .public-rent {
    font-size: 22px;
  }

  .public-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-section-head,
  .public-map-section {
    display: grid;
  }

  .public-room-card {
    grid-template-columns: 1fr;
  }

  .public-room-photo {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .public-lightbox {
    padding: 12px;
  }

  .public-lightbox-dialog,
  .public-lightbox-dialog img {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .public-contact-grid {
    grid-template-columns: 1fr;
  }

  .role-selector-backdrop {
    align-items: start;
    padding: 12px;
  }

  .role-selector-panel {
    max-height: calc(100vh - 24px);
    padding: 20px 16px;
  }

  .role-context-option {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 78px;
    padding: 12px;
  }

  .role-context-icon {
    width: 40px;
    height: 40px;
  }

  .role-context-copy strong {
    font-size: 14px;
  }

  .permissions-panel-head,
  .access-role-pane-head {
    align-items: stretch;
    flex-direction: column;
  }

  .access-role-presets {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topbar,
  .section-bar,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .section-bar {
    display: flex;
  }

  .section-bar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .manuals-filter-group {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    margin-left: 0;
  }

  .manuals-filter-group .section-filters,
  .manuals-filter-group .manual-search {
    width: 100%;
  }

  .topbar-actions {
    justify-content: stretch;
  }

  .cost-analytics-head {
    flex-direction: column;
  }

  .cost-analytics-total {
    justify-items: start;
  }

  .property-topbar-actions {
    flex-direction: row;
    justify-content: flex-start;
    gap: 6px;
  }

  .section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .property-topbar-actions .button {
    width: 36px;
    min-height: 36px;
    padding: 0;
  }

  .property-topbar-actions .button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .mobile-menu-toggle {
    width: auto;
  }

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

  .detail-head {
    align-items: stretch;
    flex-direction: column;
  }

  .property-detail-card-grid,
  .property-info-list {
    grid-template-columns: 1fr;
  }

  .property-detail-card-grid-desktop {
    display: none;
  }

  .property-info-mobile-accordion {
    display: grid;
    gap: 7px;
  }

  .property-info-accordion-entry {
    display: grid;
  }

  .property-info-accordion-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    color: var(--text);
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .property-info-accordion-head span:first-child {
    overflow: hidden;
    color: var(--brand-strong);
    font-size: 15px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .property-info-accordion-head.active {
    background: var(--brand-soft);
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  .property-info-accordion-panel {
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 8px 8px;
  }

  .property-info-accordion-panel .property-info-list {
    margin-top: 0;
  }

  .related-view-head {
    flex-direction: column;
  }

  .related-accordion-item {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  .property-map-compact .map-frame,
  .property-map-compact iframe {
    min-height: 190px;
  }

  .detail-head-actions,
  .detail-actions,
  .related-section-head,
  .related-section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cost-review-drawer .form {
    grid-template-columns: 1fr;
  }

  .cost-review-drawer .field,
  .cost-review-drawer .form-actions,
  .cost-invoice-review {
    grid-column: 1;
  }

  .cost-invoice-review {
    position: static;
    grid-row: auto;
  }

  .cost-invoice-frame,
  .cost-invoice-image {
    height: 360px;
    max-height: 360px;
  }

  .attachment-form-grid {
    grid-template-columns: 1fr;
  }

  .attachment-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
  }

  .attachment-file-mark {
    width: 42px;
    height: 42px;
  }

  .attachment-row .attachment-actions {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  .attachment-row .attachment-actions .button {
    width: auto;
    min-width: 62px;
    min-height: 30px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .property-card {
    grid-template-columns: 128px minmax(0, 1fr);
  }

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

  .property-card-photo,
  .related-record-icon,
  .property-photo-placeholder {
    width: 128px;
    height: 86px;
    min-height: 86px;
  }

  .property-card-body {
    padding: 8px 9px;
  }

  .property-card-body h3 {
    font-size: 14px;
  }

  .property-card-body p {
    font-size: 12px;
  }

  .property-card-meta {
    margin-top: 6px;
  }

  .property-card-meta span {
    min-height: 21px;
    padding: 3px 6px;
    font-size: 11px;
  }

  .add-card-icon {
    width: 128px;
    height: 70px;
  }

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

@media (max-width: 380px) {
  .property-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .property-card-photo,
  .property-photo-placeholder {
    width: 112px;
    height: 78px;
    min-height: 78px;
  }

  .add-card-icon {
    width: 112px;
  }
}
