:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #607084;
  --line: #d7dee8;
  --surface: #ffffff;
  --soft: #f5f7fb;
  /* Palette sampled directly from the Urban Prime Properties logo (deep green disc, gold wave, white mark). */
  --deep: #0f2617;
  --brand: #1e4423;
  --brand-2: #3d7a45;
  --gold: #fcb118;
  --gold-dark: #b8791a;
  --accent: #b8791a;
  --danger: #c81e28;
  --shadow: 0 18px 45px rgba(15, 38, 23, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(215, 222, 232, 0.8);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(18px, 5vw, 70px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.live-clock {
  background: #edf5f2;
  border: 1px solid #c7ded5;
  border-radius: 8px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px 10px;
  white-space: nowrap;
}

.live-clock-soft {
  background: #ffffff;
}

.brand {
  align-items: center;
  color: #f8fafc;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.brand-dark {
  color: var(--ink);
}

.brand-mark {
  align-items: center;
  display: inline-flex;
  flex-shrink: 0;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.brand-mark img {
  height: 100%;
  width: 100%;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: #8190a2;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-weight: 800;
}

.site-nav a:hover {
  color: var(--brand-2);
}

.hero {
  align-items: center;
  display: grid;
  min-height: 88vh;
  overflow: hidden;
  position: relative;
}

.hero img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(8, 19, 15, 0.94), rgba(8, 19, 15, 0.74) 42%, rgba(8, 19, 15, 0.22));
  inset: 0;
  position: absolute;
}

.hero-content {
  color: #ffffff;
  max-width: 900px;
  padding: 140px clamp(18px, 5vw, 70px) 54px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8ee2c6;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 22px;
  max-width: 920px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 12px;
}

h3 {
  font-size: 1rem;
}

.hero-copy {
  color: #dbe7df;
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 680px;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.secondary-button,
.ghost-button {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
}

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

.primary-button:hover {
  background: #0f3f23;
}

.secondary-button,
.ghost-button {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.landing-band,
.listings-band,
.security-band,
.signin-section,
.signup-section,
.contact-band {
  padding: 82px clamp(18px, 5vw, 70px);
}

.landing-band {
  background: #ffffff;
}

.section-heading {
  margin-bottom: 28px;
  max-width: 720px;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.65;
}

.listings-band {
  background: #f8fafc;
}

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

.property-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: 180px 1fr;
  overflow: hidden;
}

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

.property-card > div {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.property-card h3,
.property-card p,
.property-card dl {
  margin: 0;
}

.property-card h3 {
  font-size: 1.12rem;
}

.property-card p {
  color: var(--muted);
  line-height: 1.45;
}

.property-status {
  background: #dcfce7;
  border-radius: 999px;
  color: #166534;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  justify-self: start;
  padding: 5px 9px;
}

.property-card dl {
  display: grid;
  gap: 8px;
}

.property-card dl div {
  align-items: center;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  justify-content: space-between;
  padding-bottom: 6px;
}

.property-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.property-card dd {
  color: var(--ink);
  font-weight: 900;
  margin: 0;
}

.property-location,
.property-terms {
  font-size: 0.9rem;
}

.inquiry-panel {
  align-items: end;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  grid-template-columns: 1.2fr repeat(4, minmax(120px, 1fr)) auto;
  margin-top: 18px;
  padding: 16px;
}

.inquiry-panel h3,
.inquiry-panel p {
  margin-bottom: 0;
}

.inquiry-panel .form-message {
  grid-column: 1 / -1;
}

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

.feature-grid article,
.signin-card,
.metric-card,
.module-panel,
.record-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-grid article {
  min-height: 150px;
  padding: 20px;
}

.feature-grid strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature-grid span,
.security-band p,
.signin-section p,
.portal-section p {
  color: var(--muted);
  line-height: 1.65;
}

.security-band {
  align-items: center;
  background: #edf5f2;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
}

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

.security-list span {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  padding: 16px;
}

.signin-section,
.signup-section,
.portal-section {
  align-items: start;
  background: #ffffff;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) 390px;
}

.portal-section {
  background: #f8fafc;
}

.signup-section {
  background: #ffffff;
}

.signin-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

label,
.select-label {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 5px;
}

input,
select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  min-width: 180px;
  padding: 0 12px;
}

.file-input {
  background: #f8fafc;
  border-style: dashed;
  cursor: pointer;
  margin-top: 8px;
  padding: 10px;
}

.module-filters {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  grid-column: 1 / -1;
}

.module-filters label {
  min-width: 220px;
}

.form-message {
  color: var(--danger);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 272px 1fr;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  background: var(--deep);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  min-width: 0;
  overflow-y: auto;
  padding: 24px 18px;
}

.sidebar .brand small {
  color: #b9c9bf;
}

.nav-list {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.nav-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #dbe7df;
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.nav-button:hover,
.nav-button.active {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.nav-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.nav-button > span:not(.nav-icon) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nav-group {
  border-radius: 8px;
}

.nav-group summary {
  align-items: center;
  border-radius: 8px;
  color: #b9c9bf;
  cursor: pointer;
  display: flex;
  font-size: 0.72rem;
  font-weight: 800;
  justify-content: space-between;
  letter-spacing: 0.04em;
  list-style: none;
  padding: 10px 12px;
  text-transform: uppercase;
  user-select: none;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.nav-group-chevron {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  flex-shrink: 0;
  height: 6px;
  transform: rotate(45deg);
  transition: transform 160ms ease;
  width: 6px;
}

.nav-group[open] > summary .nav-group-chevron {
  transform: rotate(-135deg);
}

.nav-group[open] > summary {
  color: #ffffff;
}

.nav-group-items {
  display: grid;
  gap: 4px;
  padding: 4px 0 6px 8px;
}

.sidebar-footer {
  align-items: center;
  color: #b9c9bf;
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding: 0 10px 6px;
}

.status-dot {
  background: #22c55e;
  border-radius: 999px;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.workspace {
  align-content: start;
  display: grid;
  gap: 22px;
  height: 100vh;
  min-width: 0;
  overflow-y: auto;
  padding: 28px;
  scroll-behavior: auto;
}

.topbar,
.module-toolbar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.workspace h1 {
  color: var(--ink);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.05;
  margin-bottom: 0;
}

.topbar-actions,
.toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

#searchInput {
  width: min(320px, 100%);
}

.dashboard-grid,
.overview-dashboard,
.module-dashboard {
  align-items: start;
  display: grid;
  gap: 14px;
}

.overview-kpis,
.module-dashboard {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(145px, 1fr));
}

.metric-card {
  min-height: 88px;
  padding: 14px 16px;
}

.metric-card.clickable {
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.metric-card.clickable:hover {
  border-color: var(--brand-2);
  transform: translateY(-2px);
}

.metric-card span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  font-size: 1.28rem;
  margin: 6px 0;
  overflow-wrap: anywhere;
}

.bar-track {
  background: #e8edf3;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.bar-fill {
  background: var(--brand-2);
  height: 100%;
}

.overview-analysis {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analysis-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  min-height: 220px;
  padding: 16px;
}

.analysis-card header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.analysis-card header span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.analysis-card header strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.bar-list {
  display: grid;
  gap: 12px;
}

.bar-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(88px, 0.9fr) minmax(90px, 1.4fr) minmax(72px, auto);
}

.bar-row span,
.bar-row strong,
.empty-mini {
  color: var(--muted);
  font-size: 0.82rem;
}

.bar-row strong {
  color: var(--ink);
  text-align: right;
}

.mini-track {
  background: #e8edf3;
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.mini-fill {
  background: var(--brand-2);
  height: 100%;
}

.donut-card {
  min-height: 260px;
}

.donut-body {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(120px, 160px) 1fr;
}

.donut-svg {
  min-width: 0;
  width: 100%;
}

.donut-svg path {
  transition: opacity 120ms ease;
}

.donut-svg path:hover {
  opacity: 0.82;
}

.donut-center-label {
  fill: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.donut-center-value {
  fill: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.chart-legend {
  display: grid;
  gap: 8px;
  list-style: none;
}

.chart-legend li {
  align-items: flex-start;
  color: var(--muted);
  display: flex;
  font-size: 0.8rem;
  gap: 8px;
}

.chart-legend li strong {
  color: var(--ink);
}

.legend-text {
  min-width: 0;
}

.legend-dot {
  border-radius: 999px;
  flex-shrink: 0;
  height: 10px;
  margin-top: 3px;
  width: 10px;
}

.line-svg {
  min-width: 0;
  width: 100%;
}

.chart-axis-text {
  fill: var(--muted);
  font-size: 9px;
}

.chart-end-label {
  font-size: 10px;
  font-weight: 800;
}

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

.diverging-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(88px, 0.9fr) minmax(120px, 1.6fr) minmax(90px, auto);
}

.diverging-row span,
.diverging-row strong {
  font-size: 0.82rem;
}

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

.diverging-track {
  background: #e8edf3;
  border-radius: 4px;
  height: 9px;
  position: relative;
}

.diverging-baseline {
  background: var(--muted);
  bottom: 0;
  left: 50%;
  position: absolute;
  top: 0;
  width: 1px;
}

.diverging-fill {
  border-radius: 4px;
  bottom: 0;
  position: absolute;
  top: 0;
}

.diverging-fill.positive {
  background: #2a78d6;
}

.diverging-fill.negative {
  background: #e34948;
}

.diverging-positive-text {
  color: #1c5cab;
  text-align: right;
}

.diverging-negative-text {
  color: #b3302f;
  text-align: right;
}

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

.module-chip-grid button {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 42px;
  padding: 9px 10px;
}

.module-chip-grid button:hover {
  border-color: var(--brand-2);
}

.finance-cell {
  padding: 0;
}

.finance-report {
  display: grid;
  gap: 16px;
  padding: 6px;
}

.report-toolbar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.finance-filters {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.finance-filters label {
  display: grid;
  gap: 4px;
}

.finance-filters label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.finance-filters input,
.finance-filters select {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 38px;
  padding: 8px 10px;
}

.report-toolbar span {
  color: var(--muted);
  font-weight: 800;
}

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

.statement-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  border-spacing: 0;
  overflow: hidden;
  width: 100%;
}

.statement-table th,
.statement-table td {
  border-bottom: 1px solid var(--line);
  padding: 16px;
  text-align: left;
}

.statement-table td {
  font-weight: 900;
  text-align: right;
}

.statement-table .total-row th,
.statement-table .total-row td {
  background: #ecfdf5;
  color: var(--brand);
  font-size: 1.08rem;
}

.module-chip-grid span {
  color: var(--muted);
  font-size: 0.82rem;
}

.toggle-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.toggle-row {
  align-items: center;
  color: var(--ink);
  display: grid;
  font-size: 0.86rem;
  gap: 10px;
  grid-template-columns: auto 1fr;
}

label.toggle-row input {
  block-size: 1px;
  clip-path: inset(50%);
  inline-size: 1px;
  min-width: 0;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.toggle-ui {
  background: #cbd5e1;
  border-radius: 999px;
  display: inline-block;
  height: 22px;
  position: relative;
  transition: background 160ms ease;
  width: 40px;
}

.toggle-ui::after {
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  content: "";
  height: 18px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 160ms ease;
  width: 18px;
}

.toggle-row input:checked + .toggle-ui {
  background: var(--brand-2);
}

.toggle-row input:checked + .toggle-ui::after {
  transform: translateX(18px);
}

.toggle-row strong {
  font-size: 0.9rem;
}

.permission-groups {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding: 10px;
}

.permission-group {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

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

.permission-group header span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.permission-group header strong {
  color: var(--ink);
  font-size: 0.9rem;
}

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

.toggle-row.compact {
  font-size: 0.8rem;
  gap: 8px;
}

.toggle-row.compact .toggle-ui {
  height: 18px;
  width: 32px;
}

.toggle-row.compact .toggle-ui::after {
  height: 14px;
  width: 14px;
}

.toggle-row.compact input:checked + .toggle-ui::after {
  transform: translateX(14px);
}

.module-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.insight-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  min-height: 72px;
  padding: 12px;
}

.insight strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.insight span {
  color: var(--muted);
  font-size: 0.86rem;
}

.title-board {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.title-lane {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 150px;
  padding: 10px;
}

.title-lane header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.title-lane header span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.title-lane button {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
  display: block;
  margin-bottom: 8px;
  padding: 9px;
  text-align: left;
  width: 100%;
}

.title-lane button.overdue {
  border-left-color: #b91c1c;
}

.title-lane button strong,
.title-lane button span {
  display: block;
  overflow-wrap: anywhere;
}

.title-lane p {
  color: var(--muted);
  font-size: 0.82rem;
}

.content-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 330px;
}

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

table {
  background: #ffffff;
  border-collapse: collapse;
  min-width: 820px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef3f7;
  color: #334155;
  font-size: 0.78rem;
  text-transform: uppercase;
}

td {
  color: #263241;
}

.pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 5px 9px;
  white-space: nowrap;
}

.pill.green {
  background: #dcfce7;
  color: #166534;
}

.pill.amber {
  background: #fef3c7;
  color: #92400e;
}

.pill.blue {
  background: #dbeafe;
  color: #1e40af;
}

.pill.red {
  background: #fee2e2;
  color: #991b1b;
}

.row-actions {
  white-space: nowrap;
}

.text-button {
  background: transparent;
  border: 0;
  color: var(--brand-2);
  cursor: pointer;
  font-weight: 900;
  padding: 4px 7px;
}

.text-button.danger {
  color: var(--danger);
}

.record-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  position: sticky;
  top: 18px;
}

.field {
  display: grid;
  gap: 5px;
}

.field input {
  min-width: 100%;
  width: 100%;
}

.table-thumb {
  background: #eef2f7;
  border: 1px solid var(--line);
  border-radius: 6px;
  height: 52px;
  object-fit: cover;
  width: 74px;
}

.document-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.print-frame {
  border: 0;
  height: 0;
  position: fixed;
  right: 0;
  top: 0;
  width: 0;
}

.empty-state {
  color: var(--muted);
  padding: 22px;
  text-align: center;
}

.portal-view {
  min-height: 100vh;
  padding: 28px;
}

.portal-topbar {
  margin-bottom: 22px;
}

.portal-legal-links {
  display: flex;
  gap: 16px;
}

.portal-legal {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  max-width: 760px;
  padding: 24px 28px;
}

.portal-legal h2 {
  margin-bottom: 8px;
}

.portal-legal h3 {
  font-size: 0.95rem;
  margin: 18px 0 6px;
}

.portal-legal p {
  color: var(--muted);
  line-height: 1.65;
}

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

.portal-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 120px;
  padding: 18px;
}

.portal-card span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.portal-card strong {
  display: block;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.portal-card p {
  color: var(--ink);
  margin-bottom: 8px;
}

.portal-card.wide {
  grid-column: span 2;
}

.services-band {
  background: #f8fafc;
}

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 26px 22px;
}

.service-icon {
  align-items: center;
  background: var(--deep);
  border-radius: 8px;
  color: var(--gold);
  display: inline-flex;
  font-size: 1.4rem;
  height: 52px;
  justify-content: center;
  margin-bottom: 16px;
  width: 52px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--muted);
  line-height: 1.6;
}

.about-band {
  background: #ffffff;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
}

.about-copy p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

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

.value-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 16px;
}

.value-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}

.value-card span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.gallery-band {
  background: #f8fafc;
}

.gallery-grid {
  columns: 4;
  column-gap: 14px;
}

.gallery-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  break-inside: avoid;
  box-shadow: var(--shadow);
  display: grid;
  margin-bottom: 14px;
  overflow: hidden;
}

.gallery-item img {
  display: block;
  width: 100%;
}

.gallery-item span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  padding: 10px 12px;
}

.team-band {
  background: #ffffff;
}

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

.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px 18px;
  text-align: center;
}

.team-avatar {
  align-items: center;
  background: var(--brand);
  border-radius: 999px;
  color: #f2f8f4;
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 900;
  height: 64px;
  justify-content: center;
  margin-bottom: 14px;
  width: 64px;
}

.team-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.team-card span {
  color: var(--brand-2);
  font-size: 0.8rem;
  font-weight: 800;
}

.team-note {
  color: var(--muted);
  grid-column: 1 / -1;
  margin-top: 4px;
}

.team-photo {
  border-radius: 999px;
  height: 64px;
  margin-bottom: 14px;
  object-fit: cover;
  width: 64px;
}

.team-description {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 8px;
}

.metric-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.chart-row {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.contact-band {
  background: #f8fafc;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
}

.contact-details {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.contact-details a {
  color: inherit;
}

.contact-row {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
}

.contact-row > div {
  min-width: 0;
}

.contact-row strong {
  color: var(--brand-2);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.contact-row span,
.contact-row a {
  color: var(--ink);
  display: block;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.site-footer {
  background: var(--deep);
  color: #cfe0d5;
  display: grid;
  gap: 22px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  padding: 48px clamp(18px, 5vw, 70px) 26px;
}

.site-footer .brand {
  color: #f8fafc;
  margin-bottom: 12px;
}

.site-footer .brand small {
  color: #9fb6a7;
}

.site-footer p {
  color: #9fb6a7;
  line-height: 1.6;
}

.footer-col strong {
  color: #f8fafc;
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.footer-col a {
  color: #cfe0d5;
  display: block;
  line-height: 2.1;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #83998a;
  font-size: 0.82rem;
  grid-column: 1 / -1;
  margin-top: 12px;
  padding-top: 18px;
}

@media (max-width: 1120px) {
  .feature-grid,
  .dashboard-grid,
  .property-grid,
  .service-grid,
  .team-grid,
  .overview-kpis,
  .module-dashboard,
  .overview-analysis,
  .finance-chart-grid,
  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donut-body {
    grid-template-columns: 1fr;
  }

  .content-grid,
  .signin-section,
  .signup-section,
  .inquiry-panel,
  .portal-section,
  .security-band,
  .about-band,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    columns: 2;
  }

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

  .record-form {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    position: absolute;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(8, 19, 15, 0.9), rgba(8, 19, 15, 0.68));
  }

  .hero-content {
    padding-top: 178px;
  }

  .feature-grid,
  .property-grid,
  .dashboard-grid,
  .insight-strip,
  .portal-grid,
  .service-grid,
  .value-grid,
  .team-grid,
  .overview-kpis,
  .module-dashboard,
  .overview-analysis,
  .finance-chart-grid,
  .module-chip-grid,
  .permission-actions {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    columns: 1;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .portal-card.wide {
    grid-column: span 1;
  }

  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .sidebar,
  .workspace {
    height: auto;
    overflow: visible;
  }

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

  .workspace {
    padding: 18px;
  }

  .topbar,
  .module-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions,
  .toolbar-controls,
  .hero-actions {
    justify-content: stretch;
  }

  select,
  input,
  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }
}

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

.feed-item {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  text-align: left;
}

.feed-item:hover {
  border-color: var(--brand-2);
}

.feed-type {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feed-item strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.feed-detail {
  color: var(--muted);
  font-size: 0.78rem;
}

.report-menu-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 16px;
  text-align: left;
}

.report-card:hover {
  border-color: var(--brand-2);
}

.report-card strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.report-card span {
  color: var(--muted);
  font-size: 0.8rem;
}

.widget-prefs-toggle {
  display: flex;
  justify-content: flex-end;
}

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

.widget-prefs-panel header {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.widget-pref-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.widget-pref-row label {
  align-items: center;
  color: var(--ink);
  display: flex;
  gap: 8px;
}

.widget-pref-order {
  display: flex;
  gap: 4px;
}

@media (max-width: 900px) {
  .report-menu-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .sidebar,
  .topbar,
  .module-filters,
  .report-toolbar,
  .widget-prefs-toggle,
  .widget-prefs-panel,
  #searchInput,
  #newRecordButton,
  .row-actions,
  .site-header,
  .site-footer {
    display: none !important;
  }

  .app-shell,
  .workspace,
  .module-panel {
    height: auto !important;
    overflow: visible !important;
  }

  .printable-report {
    padding: 0;
  }
}
