:root {
  /* ── Colour ───────────────────────────────────────────────────────
     Neutrals are warm-biased toward the brand red, so the greys read as
     chosen rather than inherited. */
  --ground:       #F7F4F2;
  --card:         #FFFFFF;
  --sunk:         #F2EDEA;   /* inputs, table headers, chips */

  --ink:          #1A1614;   /* warm near-black */
  --ink-2:        #4A423E;
  --ink-3:        #7B706A;

  --rule:         #E4DCD7;
  --rule-soft:    #F0EAE6;

  /* The brand red is the logo, the active nav, links and attention — not the
     primary action. When the brand colour is red, a red Save and a red Delete
     cannot be told apart by hue, so the primary action is ink instead and red
     keeps its one meaning: look here. */
  --brand:        #B4231F;
  --brand-dark:   #8C1A17;
  --brand-wash:   #FBEDEC;

  /* Semantic, deliberately distinct from each other and from the brand. */
  --ok:           #1B7F4B;   --ok-wash:   #E7F3EC;
  --warn:         #96680B;   --warn-wash: #FBF2DE;
  --stop:         #A32A22;   --stop-wash: #FAEAE8;   --stop-line: #E4B7B2;

  /* Legacy names, kept so nothing in 1,900 lines of CSS silently loses its
     colour. They point at the new palette. */
  --bg:           var(--ground);
  --primary:      var(--brand);
  --primary-dark: var(--brand-dark);
  --success:      var(--ok);
  --warning:      var(--warn);
  --danger:       var(--stop);
  --black:        #201A17;
  --slate:        var(--ink-2);
  --muted:        var(--ink-3);
  --line:         var(--rule);

  /* ── Type ─────────────────────────────────────────────────────────
     One UI face, one for figures. Money and room numbers line up in columns,
     which needs tabular digits, and a mono face makes a ₹ column scannable. */
  --font-ui:   "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ── Shape ────────────────────────────────────────────────────────
     One radius per role. Everything at 20px with the same big shadow made
     each block shout equally, which flattens the hierarchy. */
  --r-sm: 8px;    /* controls, tags, inputs */
  --r-md: 12px;   /* cards, panels */
  --r-lg: 18px;   /* modals, the sign-in card */

  /* Shadow is spent on things that genuinely float. Cards use a border. */
  --shadow:      0 1px 2px rgba(26, 22, 20, 0.04);
  --shadow-pop:  0 18px 48px -12px rgba(26, 22, 20, 0.28);

  --space: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  /* One flat ground. The old two-stop gradient went warm-pink to cool-blue,
     which muddied every card sitting on it. */
  background: var(--ground);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Figures line up in columns all over this panel — rent, dues, collections —
   so digits are tabular everywhere by default. */
table, .stat-card strong, .money-row, .fact strong, .pager-count, .pager-page {
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4 {
  letter-spacing: -0.015em;
  text-wrap: balance;
}

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

button {
  cursor: pointer;
}

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

.sidebar {
  background: var(--black);
  color: #F4EFEC;
  /* No right padding on the nav side, so the active marker can sit flush. */
  padding: 26px 0 22px 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar > *:not(.nav-menu) { padding-inline: 20px; }
.nav-menu { padding-right: 14px; }

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 38px;
}

.brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: white;
  padding: 6px;
}

.brand-block h2,
.topbar h1,
.section-heading h2,
.section-header h3 {
  margin: 0;
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  color: #cbd5e1;
  margin: 0 0 4px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* No box around every item — seven outlined boxes read as seven equal buttons.
   The active one is marked with a red edge and a lighter ground instead. */
.nav-btn {
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  color: #CFC6C1;
  text-align: left;
  padding: 11px 14px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 11px;
}

.nav-btn i {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

/* Where you are, said once and clearly. */
.nav-btn.active {
  background: rgba(180, 35, 31, 0.16);
  border-left-color: var(--brand);
  color: #FFFFFF;
  font-weight: 600;
}

.nav-btn.active i { opacity: 1; color: #E4756F; }

.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.logout-btn {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logout-btn:hover {
  background: rgba(210, 31, 31, 0.22);
  border-color: rgba(210, 31, 31, 0.6);
}

.is-hidden {
  display: none !important;
}

.auth-loading {
  margin: 0;
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}

/* ── Sign-in ────────────────────────────────────────────────────────
   The one place imagery belongs. Behind a data table a photograph fights
   every figure on it, but here it sets the tone before anybody is working.
   It is an SVG facade — a lit apartment block at dusk — drawn inline rather
   than fetched: no third-party host in front of a panel holding residents'
   documents, nothing to break offline, and it scales to any screen. */
.login-overlay {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  isolation: isolate;
  background: #171210;
}

.login-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #141b2c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%221600%22 height=%22900%22 viewBox=%220 0 1600 900%22 preserveAspectRatio=%22xMidYMax slice%22%3E%3Cdefs%3E%0A%3ClinearGradient id=%22sky%22 x1=%220%22 y1=%220%22 x2=%220%22 y2=%221%22%3E%0A%3Cstop offset=%220%22 stop-color=%22%23141b2c%22/%3E%0A%3Cstop offset=%220.52%22 stop-color=%22%232d2436%22/%3E%0A%3Cstop offset=%220.78%22 stop-color=%22%235b3630%22/%3E%0A%3Cstop offset=%221%22 stop-color=%22%238a4a32%22/%3E%0A%3C/linearGradient%3E%0A%3CradialGradient id=%22glow%22 cx=%220.5%22 cy=%220.92%22 r=%220.62%22%3E%0A%3Cstop offset=%220%22 stop-color=%22%23e08a4a%22 stop-opacity=%220.5%22/%3E%0A%3Cstop offset=%221%22 stop-color=%22%23e08a4a%22 stop-opacity=%220%22/%3E%0A%3C/radialGradient%3E%0A%3C/defs%3E%3Crect width=%221600%22 height=%22900%22 fill=%22url(%23sky)%22/%3E%3Crect width=%221600%22 height=%22900%22 fill=%22url(%23glow)%22/%3E%3Crect x=%22-40%22 y=%22570%22 width=%22270%22 height=%22330%22 fill=%22%231e1c2b%22/%3E%3Crect x=%22-40%22 y=%22570%22 width=%223%22 height=%22330%22 fill=%22%23ffffff%22 opacity=%220.05%22/%3E%3Crect x=%22200%22 y=%22490%22 width=%22190%22 height=%22410%22 fill=%22%23232031%22/%3E%3Crect x=%22200%22 y=%22490%22 width=%223%22 height=%22410%22 fill=%22%23ffffff%22 opacity=%220.05%22/%3E%3Crect x=%22370%22 y=%22600%22 width=%22300%22 height=%22300%22 fill=%22%231c1a28%22/%3E%3Crect x=%22370%22 y=%22600%22 width=%223%22 height=%22300%22 fill=%22%23ffffff%22 opacity=%220.05%22/%3E%3Crect x=%22650%22 y=%22440%22 width=%22220%22 height=%22460%22 fill=%22%23242132%22/%3E%3Crect x=%22650%22 y=%22440%22 width=%223%22 height=%22460%22 fill=%22%23ffffff%22 opacity=%220.05%22/%3E%3Crect x=%22860%22 y=%22560%22 width=%22250%22 height=%22340%22 fill=%22%231e1b29%22/%3E%3Crect x=%22860%22 y=%22560%22 width=%223%22 height=%22340%22 fill=%22%23ffffff%22 opacity=%220.05%22/%3E%3Crect x=%221080%22 y=%22470%22 width=%22280%22 height=%22430%22 fill=%22%23232031%22/%3E%3Crect x=%221080%22 y=%22470%22 width=%223%22 height=%22430%22 fill=%22%23ffffff%22 opacity=%220.05%22/%3E%3Crect x=%221330%22 y=%22540%22 width=%22310%22 height=%22360%22 fill=%22%231d1b28%22/%3E%3Crect x=%221330%22 y=%22540%22 width=%223%22 height=%22360%22 fill=%22%23ffffff%22 opacity=%220.05%22/%3E%3Crect x=%2260%22 y=%22340%22 width=%22240%22 height=%22560%22 fill=%22%23131019%22/%3E%3Crect x=%2260%22 y=%22340%22 width=%223%22 height=%22560%22 fill=%22%23ffffff%22 opacity=%220.05%22/%3E%3Crect x=%22470%22 y=%22260%22 width=%22300%22 height=%22640%22 fill=%22%2315111b%22/%3E%3Crect x=%22470%22 y=%22260%22 width=%223%22 height=%22640%22 fill=%22%23ffffff%22 opacity=%220.05%22/%3E%3Crect x=%22900%22 y=%22380%22 width=%22260%22 height=%22520%22 fill=%22%23131019%22/%3E%3Crect x=%22900%22 y=%22380%22 width=%223%22 height=%22520%22 fill=%22%23ffffff%22 opacity=%220.05%22/%3E%3Crect x=%221230%22 y=%22300%22 width=%22330%22 height=%22600%22 fill=%22%2315111b%22/%3E%3Crect x=%221230%22 y=%22300%22 width=%223%22 height=%22600%22 fill=%22%23ffffff%22 opacity=%220.05%22/%3E%3Cfilter id=%22soft%22 x=%22-50%%22 y=%22-50%%22 width=%22200%%22 height=%22200%%22%3E%3CfeGaussianBlur stdDeviation=%227%22/%3E%3C/filter%3E%3Cg fill=%22%239fb0d8%22 opacity=%220.16%22%3E%3Crect x=%22-18%22 y=%22600%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22-18%22 y=%22640%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22-18%22 y=%22720%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22-18%22 y=%22760%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2216%22 y=%22600%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2284%22 y=%22640%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2284%22 y=%22840%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22118%22 y=%22600%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22118%22 y=%22680%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22118%22 y=%22760%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22118%22 y=%22840%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22152%22 y=%22800%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22186%22 y=%22720%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22186%22 y=%22800%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22222%22 y=%22680%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22222%22 y=%22760%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22256%22 y=%22640%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22290%22 y=%22640%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22290%22 y=%22680%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22324%22 y=%22560%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22392%22 y=%22630%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22426%22 y=%22710%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22460%22 y=%22750%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22460%22 y=%22790%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22494%22 y=%22630%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22562%22 y=%22750%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22672%22 y=%22670%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22706%22 y=%22590%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22706%22 y=%22710%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22706%22 y=%22830%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22774%22 y=%22590%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22774%22 y=%22670%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22774%22 y=%22790%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22808%22 y=%22670%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22808%22 y=%22830%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22882%22 y=%22750%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22916%22 y=%22790%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22950%22 y=%22630%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22984%22 y=%22590%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22984%22 y=%22710%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221052%22 y=%22590%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221052%22 y=%22670%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221052%22 y=%22790%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221102%22 y=%22580%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221102%22 y=%22660%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221102%22 y=%22740%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221136%22 y=%22660%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221136%22 y=%22780%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221170%22 y=%22500%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221170%22 y=%22540%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221170%22 y=%22660%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221204%22 y=%22740%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221238%22 y=%22660%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221272%22 y=%22580%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221272%22 y=%22700%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221306%22 y=%22500%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221306%22 y=%22580%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221306%22 y=%22700%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221352%22 y=%22690%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221352%22 y=%22810%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221386%22 y=%22730%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221454%22 y=%22610%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221454%22 y=%22690%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221454%22 y=%22810%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221488%22 y=%22610%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221488%22 y=%22650%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221488%22 y=%22730%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221522%22 y=%22690%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221556%22 y=%22570%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221556%22 y=%22770%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221590%22 y=%22650%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221590%22 y=%22810%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2282%22 y=%22422%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22126%22 y=%22370%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22126%22 y=%22422%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22126%22 y=%22526%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22126%22 y=%22578%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22126%22 y=%22630%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22126%22 y=%22786%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22170%22 y=%22370%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22170%22 y=%22474%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22170%22 y=%22526%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22170%22 y=%22578%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22170%22 y=%22682%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22170%22 y=%22734%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22214%22 y=%22474%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22214%22 y=%22578%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22214%22 y=%22734%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22492%22 y=%22342%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22492%22 y=%22706%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22536%22 y=%22290%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22536%22 y=%22498%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22536%22 y=%22654%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22536%22 y=%22706%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22536%22 y=%22810%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22580%22 y=%22290%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22580%22 y=%22446%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22580%22 y=%22498%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22580%22 y=%22550%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22580%22 y=%22654%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22668%22 y=%22446%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22668%22 y=%22602%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22668%22 y=%22654%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22668%22 y=%22810%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22712%22 y=%22446%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22712%22 y=%22550%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22712%22 y=%22602%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22922%22 y=%22410%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22922%22 y=%22462%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22922%22 y=%22514%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22966%22 y=%22566%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22966%22 y=%22722%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22966%22 y=%22774%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22966%22 y=%22826%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221010%22 y=%22410%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221010%22 y=%22514%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221010%22 y=%22670%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221010%22 y=%22774%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221054%22 y=%22462%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221054%22 y=%22774%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221054%22 y=%22826%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221098%22 y=%22410%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221098%22 y=%22462%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221252%22 y=%22330%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221252%22 y=%22486%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221252%22 y=%22642%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221296%22 y=%22330%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221296%22 y=%22486%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221296%22 y=%22538%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221296%22 y=%22694%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221296%22 y=%22798%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221340%22 y=%22330%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221340%22 y=%22382%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221340%22 y=%22538%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221340%22 y=%22590%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221340%22 y=%22798%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221384%22 y=%22434%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221384%22 y=%22798%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221428%22 y=%22330%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221428%22 y=%22434%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221428%22 y=%22538%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221428%22 y=%22694%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221472%22 y=%22434%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221472%22 y=%22538%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221472%22 y=%22590%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221472%22 y=%22746%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221472%22 y=%22798%22 width=%2224%22 height=%2230%22/%3E%3C/g%3E%3Cg fill=%22%23ffc978%22 opacity=%220.30%22 filter=%22url(%23soft)%22%3E%3Crect x=%22-18%22 y=%22840%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2216%22 y=%22720%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2216%22 y=%22800%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2250%22 y=%22640%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2250%22 y=%22840%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2284%22 y=%22600%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2284%22 y=%22680%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2284%22 y=%22720%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2284%22 y=%22800%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22152%22 y=%22840%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22186%22 y=%22640%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22222%22 y=%22560%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22222%22 y=%22600%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22222%22 y=%22800%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22256%22 y=%22600%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22256%22 y=%22760%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22256%22 y=%22840%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22290%22 y=%22520%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22290%22 y=%22600%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22290%22 y=%22720%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22290%22 y=%22800%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22324%22 y=%22520%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22324%22 y=%22600%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22324%22 y=%22840%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22392%22 y=%22750%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22392%22 y=%22830%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22426%22 y=%22790%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22426%22 y=%22830%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22494%22 y=%22750%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22494%22 y=%22790%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22528%22 y=%22710%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22528%22 y=%22830%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22562%22 y=%22790%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22562%22 y=%22830%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22672%22 y=%22510%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22672%22 y=%22590%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22672%22 y=%22630%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22706%22 y=%22470%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22706%22 y=%22510%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22706%22 y=%22630%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22706%22 y=%22670%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22706%22 y=%22790%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22740%22 y=%22670%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22740%22 y=%22710%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22740%22 y=%22750%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22774%22 y=%22510%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22774%22 y=%22750%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22916%22 y=%22590%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22950%22 y=%22710%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22950%22 y=%22790%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22984%22 y=%22630%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221018%22 y=%22590%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221018%22 y=%22710%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221018%22 y=%22750%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221052%22 y=%22750%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221102%22 y=%22700%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221136%22 y=%22620%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221136%22 y=%22740%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221170%22 y=%22700%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221170%22 y=%22740%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221170%22 y=%22820%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221204%22 y=%22660%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221204%22 y=%22700%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221204%22 y=%22780%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221238%22 y=%22540%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221238%22 y=%22580%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221272%22 y=%22540%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221272%22 y=%22620%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221272%22 y=%22660%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221272%22 y=%22780%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221306%22 y=%22820%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221352%22 y=%22650%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221386%22 y=%22810%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221420%22 y=%22730%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221488%22 y=%22570%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221488%22 y=%22770%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221522%22 y=%22570%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221522%22 y=%22650%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221522%22 y=%22770%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221522%22 y=%22810%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221590%22 y=%22570%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221590%22 y=%22610%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2282%22 y=%22682%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22126%22 y=%22474%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22126%22 y=%22682%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22170%22 y=%22630%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22214%22 y=%22422%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22214%22 y=%22526%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22492%22 y=%22290%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22492%22 y=%22446%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22492%22 y=%22550%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22492%22 y=%22602%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22492%22 y=%22654%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22536%22 y=%22342%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22536%22 y=%22446%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22536%22 y=%22550%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22536%22 y=%22602%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22580%22 y=%22342%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22580%22 y=%22394%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22580%22 y=%22758%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22624%22 y=%22550%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22624%22 y=%22706%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22624%22 y=%22758%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22668%22 y=%22290%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22668%22 y=%22342%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22668%22 y=%22550%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22668%22 y=%22706%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22668%22 y=%22758%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22712%22 y=%22394%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22712%22 y=%22654%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22712%22 y=%22706%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22712%22 y=%22758%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22712%22 y=%22810%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22922%22 y=%22566%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22922%22 y=%22618%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22922%22 y=%22670%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22966%22 y=%22410%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22966%22 y=%22462%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221010%22 y=%22462%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221010%22 y=%22618%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221010%22 y=%22826%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221054%22 y=%22410%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221054%22 y=%22514%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221098%22 y=%22618%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221252%22 y=%22746%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221296%22 y=%22382%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221296%22 y=%22590%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221340%22 y=%22746%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221384%22 y=%22382%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221384%22 y=%22486%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221384%22 y=%22538%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221384%22 y=%22642%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221384%22 y=%22694%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221428%22 y=%22642%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221428%22 y=%22798%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221472%22 y=%22382%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221472%22 y=%22486%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221472%22 y=%22642%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%2216%22 y=%22760%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2284%22 y=%22760%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22152%22 y=%22600%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22186%22 y=%22600%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22256%22 y=%22560%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22256%22 y=%22800%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22324%22 y=%22640%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22324%22 y=%22760%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22426%22 y=%22630%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22426%22 y=%22750%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22460%22 y=%22670%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22528%22 y=%22670%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22596%22 y=%22670%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22596%22 y=%22750%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22672%22 y=%22470%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22672%22 y=%22790%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22706%22 y=%22550%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22984%22 y=%22830%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221018%22 y=%22630%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221136%22 y=%22580%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221136%22 y=%22700%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221204%22 y=%22580%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221238%22 y=%22500%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221272%22 y=%22820%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221590%22 y=%22690%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2282%22 y=%22474%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%2282%22 y=%22526%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22214%22 y=%22786%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22492%22 y=%22758%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22492%22 y=%22810%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22536%22 y=%22758%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22624%22 y=%22394%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22624%22 y=%22446%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22966%22 y=%22670%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221252%22 y=%22798%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221296%22 y=%22434%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221296%22 y=%22746%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221340%22 y=%22434%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221384%22 y=%22590%22 width=%2224%22 height=%2230%22/%3E%3C/g%3E%3Cg fill=%22%23f7c471%22 opacity=%220.80%22%3E%3Crect x=%22-18%22 y=%22840%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2216%22 y=%22720%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2216%22 y=%22800%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2250%22 y=%22640%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2250%22 y=%22840%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2284%22 y=%22600%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2284%22 y=%22680%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2284%22 y=%22720%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2284%22 y=%22800%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22152%22 y=%22840%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22186%22 y=%22640%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22222%22 y=%22560%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22222%22 y=%22600%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22222%22 y=%22800%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22256%22 y=%22600%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22256%22 y=%22760%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22256%22 y=%22840%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22290%22 y=%22520%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22290%22 y=%22600%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22290%22 y=%22720%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22290%22 y=%22800%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22324%22 y=%22520%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22324%22 y=%22600%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22324%22 y=%22840%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22392%22 y=%22750%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22392%22 y=%22830%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22426%22 y=%22790%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22426%22 y=%22830%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22494%22 y=%22750%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22494%22 y=%22790%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22528%22 y=%22710%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22528%22 y=%22830%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22562%22 y=%22790%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22562%22 y=%22830%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22672%22 y=%22510%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22672%22 y=%22590%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22672%22 y=%22630%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22706%22 y=%22470%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22706%22 y=%22510%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22706%22 y=%22630%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22706%22 y=%22670%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22706%22 y=%22790%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22740%22 y=%22670%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22740%22 y=%22710%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22740%22 y=%22750%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22774%22 y=%22510%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22774%22 y=%22750%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22916%22 y=%22590%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22950%22 y=%22710%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22950%22 y=%22790%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22984%22 y=%22630%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221018%22 y=%22590%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221018%22 y=%22710%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221018%22 y=%22750%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221052%22 y=%22750%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221102%22 y=%22700%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221136%22 y=%22620%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221136%22 y=%22740%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221170%22 y=%22700%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221170%22 y=%22740%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221170%22 y=%22820%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221204%22 y=%22660%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221204%22 y=%22700%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221204%22 y=%22780%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221238%22 y=%22540%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221238%22 y=%22580%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221272%22 y=%22540%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221272%22 y=%22620%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221272%22 y=%22660%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221272%22 y=%22780%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221306%22 y=%22820%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221352%22 y=%22650%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221386%22 y=%22810%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221420%22 y=%22730%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221488%22 y=%22570%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221488%22 y=%22770%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221522%22 y=%22570%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221522%22 y=%22650%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221522%22 y=%22770%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221522%22 y=%22810%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221590%22 y=%22570%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221590%22 y=%22610%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2282%22 y=%22682%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22126%22 y=%22474%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22126%22 y=%22682%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22170%22 y=%22630%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22214%22 y=%22422%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22214%22 y=%22526%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22492%22 y=%22290%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22492%22 y=%22446%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22492%22 y=%22550%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22492%22 y=%22602%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22492%22 y=%22654%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22536%22 y=%22342%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22536%22 y=%22446%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22536%22 y=%22550%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22536%22 y=%22602%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22580%22 y=%22342%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22580%22 y=%22394%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22580%22 y=%22758%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22624%22 y=%22550%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22624%22 y=%22706%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22624%22 y=%22758%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22668%22 y=%22290%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22668%22 y=%22342%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22668%22 y=%22550%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22668%22 y=%22706%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22668%22 y=%22758%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22712%22 y=%22394%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22712%22 y=%22654%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22712%22 y=%22706%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22712%22 y=%22758%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22712%22 y=%22810%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22922%22 y=%22566%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22922%22 y=%22618%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22922%22 y=%22670%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22966%22 y=%22410%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22966%22 y=%22462%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221010%22 y=%22462%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221010%22 y=%22618%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221010%22 y=%22826%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221054%22 y=%22410%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221054%22 y=%22514%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221098%22 y=%22618%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221252%22 y=%22746%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221296%22 y=%22382%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221296%22 y=%22590%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221340%22 y=%22746%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221384%22 y=%22382%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221384%22 y=%22486%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221384%22 y=%22538%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221384%22 y=%22642%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221384%22 y=%22694%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221428%22 y=%22642%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221428%22 y=%22798%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221472%22 y=%22382%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221472%22 y=%22486%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221472%22 y=%22642%22 width=%2224%22 height=%2230%22/%3E%3C/g%3E%3Cg fill=%22%23fff0cc%22 opacity=%220.96%22%3E%3Crect x=%2216%22 y=%22760%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2284%22 y=%22760%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22152%22 y=%22600%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22186%22 y=%22600%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22256%22 y=%22560%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22256%22 y=%22800%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22324%22 y=%22640%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22324%22 y=%22760%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22426%22 y=%22630%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22426%22 y=%22750%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22460%22 y=%22670%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22528%22 y=%22670%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22596%22 y=%22670%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22596%22 y=%22750%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22672%22 y=%22470%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22672%22 y=%22790%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22706%22 y=%22550%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%22984%22 y=%22830%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221018%22 y=%22630%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221136%22 y=%22580%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221136%22 y=%22700%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221204%22 y=%22580%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221238%22 y=%22500%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221272%22 y=%22820%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%221590%22 y=%22690%22 width=%2214%22 height=%2218%22/%3E%3Crect x=%2282%22 y=%22474%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%2282%22 y=%22526%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22214%22 y=%22786%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22492%22 y=%22758%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22492%22 y=%22810%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22536%22 y=%22758%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22624%22 y=%22394%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22624%22 y=%22446%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%22966%22 y=%22670%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221252%22 y=%22798%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221296%22 y=%22434%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221296%22 y=%22746%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221340%22 y=%22434%22 width=%2224%22 height=%2230%22/%3E%3Crect x=%221384%22 y=%22590%22 width=%2224%22 height=%2230%22/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

/* Just enough shade behind the card to seat it on the image. */
.login-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(48% 42% at 50% 42%, rgba(12, 10, 14, 0.52), rgba(12, 10, 14, 0.12) 70%, transparent 100%);
}

.login-card {
  width: min(404px, 100%);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-powered {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  align-self: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(14, 12, 16, 0.55);
  backdrop-filter: blur(6px);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.66);
}

.login-powered strong { font-weight: 600; color: rgba(255, 255, 255, 0.9); }

.login-logo {
  width: 64px;
  height: 64px;
  align-self: center;
}

.login-card h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
}

.login-sub {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-error {
  margin: 0;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #b91c1c;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  margin: 0;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--black);
  color: white;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 60;
  max-width: calc(100vw - 40px);
}

.toast-error {
  background: #b91c1c;
}

.content-area {
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.status-pill {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.panel {
  background: transparent;
}

.hidden-panel {
  display: none;
}

.active-panel {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  width: 100%;
  background: var(--card);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--rule);
  text-align: left;
  transition: border-color 0.15s ease;
}

.stat-card strong {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-card .label {
  display: block;
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.stat-card strong {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  color: #0f172a;
}

.accent-red { border-left: 6px solid var(--primary); }
.accent-green { border-left: 6px solid var(--success); }
.accent-orange { border-left: 6px solid var(--warning); }
.accent-black { border-left: 6px solid var(--black); }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
  gap: 22px;
  margin-bottom: 24px;
}

.info-card,
.entry-form {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}

.info-card {
  padding: 22px 20px;
}

.full-width {
  margin-top: 0;
}

.section-header {
  margin-bottom: 18px;
}

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

.room-list,
.inventory-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.room-list li,
.inventory-item {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.room-tag,
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--r-sm);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.tag-available,
.badge-available {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.tag-occupied,
.badge-occupied {
  background: rgba(210, 31, 31, 0.12);
  color: var(--primary-dark);
}

.tag-release,
.badge-release {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.entry-form {
  padding: 24px;
}

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

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  color: var(--slate);
}

label span {
  font-size: 0.92rem;
}

label input,
label textarea,
label select {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px 14px;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

label input:focus,
label textarea:focus,
label select:focus {
  outline: none;
  border-color: rgba(210, 31, 31, 0.6);
  box-shadow: 0 0 0 4px rgba(210, 31, 31, 0.1);
}

textarea {
  resize: vertical;
}

.full-span {
  grid-column: 1 / -1;
}

.form-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.005em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.link-btn:focus-visible,
.nav-btn:focus-visible,
.icon-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Flat ink, not a red gradient. The action you take most often should be calm;
   red is saved for the things that want noticing. */
.primary-btn {
  background: var(--ink);
  border-color: var(--ink);
  color: #FDFBFA;
}

.primary-btn:hover { background: #2C2420; border-color: #2C2420; }

.secondary-btn {
  background: var(--card);
  border-color: var(--rule);
  color: var(--ink-2);
}

.secondary-btn:hover { border-color: var(--ink-3); color: var(--ink); }

/* Destructive actions are never filled. With a red brand, hue alone cannot
   separate "save" from "delete", so these are outlined and always carry the
   word for what they do. */
.danger-btn {
  background: var(--card);
  border-color: var(--stop-line);
  color: var(--stop);
}

.danger-btn:hover { background: var(--stop-wash); }

.small-btn {
  padding: 7px 12px;
  font-size: 0.85rem;
}

/* A destructive variant of the secondary button. Written as a compound
   selector so it cannot lose to whichever plain .secondary-btn rule happens
   to come last. */
.secondary-btn.danger-btn {
  background: var(--card);
  border-color: var(--stop-line);
  color: var(--stop);
}

.secondary-btn.danger-btn:hover {
  background: var(--stop-wash);
  border-color: var(--stop);
}

.delete-room-btn {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--danger);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.delete-room-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f1f5f9;
  border-color: var(--line);
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

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

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

/* The header row sits on a tinted band so a long table keeps its bearings
   when scrolled, and the labels stop competing with the data. */
th {
  color: var(--ink-3);
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--sunk);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

th:first-child { border-top-left-radius: var(--r-sm); }
th:last-child  { border-top-right-radius: var(--r-sm); }

/* Money and dates are figures, and figures belong in the figure face. */
td[data-label="Rent"], td[data-label="Amount"],
td[data-label="Paid on"], td[data-label="Month"],
td[data-label="Phone"], td[data-label="Spent on"] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "ss01";
}

tbody tr:hover {
  background: var(--rule-soft);
}

.edit-resident-btn {
  background: rgba(210, 31, 31, 0.08);
  border: 1px solid rgba(210, 31, 31, 0.3);
  color: var(--primary);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.edit-resident-btn:hover {
  background: rgba(210, 31, 31, 0.16);
}

.empty-state {
  color: var(--muted);
  padding: 14px 0;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 20px;
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: white;
  border-radius: 20px;
  padding: 22px 20px 16px;
  box-shadow: var(--shadow);
}

.wide-modal {
  width: min(760px, calc(100vw - 32px));
}

.modal-form {
  padding: 8px 0 0;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.close-btn {
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.6rem;
  line-height: 1;
}

.modal-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.detail-row strong {
  color: var(--muted);
  font-weight: 600;
}

/* ── Panel chrome ─────────────────────────────────────────────── */
.card-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.inline-select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  padding: 8px 12px;
  font-weight: 600;
  color: #0f172a;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--primary);
  font-size: 1rem;
}

.icon-btn:hover {
  background: rgba(210, 31, 31, 0.1);
  border-color: rgba(210, 31, 31, 0.4);
}

.guide-content p {
  margin: 0 0 12px;
  color: var(--slate);
  line-height: 1.6;
}

.guide-content code {
  background: #f1f5f9;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.85em;
}

/* ── Rooms by floor ───────────────────────────────────────────── */
.floor-groups {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.floor-group + .floor-group {
  border-top: 2px dashed var(--line);
  padding-top: 24px;
}

.floor-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.floor-header h4 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--black);
}

.floor-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.room-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.room-card-item {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.room-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.room-card-meta,
.room-card-occupant {
  margin: 0;
  font-size: 0.88rem;
  color: var(--slate);
}

.room-card-occupant {
  font-weight: 600;
  color: var(--black);
}

.room-card-item .delete-room-btn {
  margin-top: 6px;
  align-self: flex-start;
}

/* ── Payments ─────────────────────────────────────────────────── */
.form-grid.single-column {
  grid-template-columns: 1fr;
}

.form-hint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.plain-form {
  border: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
}

/* ── Settings ─────────────────────────────────────────────────── */
/* Two independent stacks, not a grid of cells. Properties keeps growing as
   floors are added; in a shared row it stretched the Logo card into a column
   of blank paper and pushed Users and Rules off the bottom of the screen. */
.config-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 22px;
  align-items: start;
}

.config-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

/* However many floors a property has, the page stays a page. */
.config-col-wide .property-list {
  max-height: min(74vh, 860px);
  overflow-y: auto;
  padding-right: 4px;
}

.inline-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.inline-form input {
  flex: 1 1 200px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  padding: 10px 14px;
}

.property-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.property-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #f8fafc;
}

.property-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.floor-list {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floor-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  color: var(--slate);
}

.property-item .inline-form {
  margin-bottom: 0;
}

.link-btn {
  background: none;
  border: none;
  padding: 4px 2px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.link-btn:hover {
  text-decoration: underline;
}

.link-btn.danger {
  color: var(--danger);
}

/* ── Resident details ─────────────────────────────────────────── */
.history-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.history-summary div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.history-block {
  margin-top: 22px;
}

.history-block h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--black);
}

.doc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sunk);
  border: 1px solid var(--rule);
  color: var(--ink);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.doc-link:hover {
  background: var(--card);
  border-color: var(--ink-3);
}

.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Shared bits ──────────────────────────────────────────────── */
.tag-overdue {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.tag-neutral {
  background: #eef2f7;
  color: var(--muted);
}

.muted-text {
  color: var(--muted);
  font-size: 0.85rem;
}

.record-stamps {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.record-stamps.small {
  font-size: 0.72rem;
}

.list-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 0 0 auto;
}

.list-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--black);
}

/* Who, then where — the second line is supporting detail and should read as
   one line rather than breaking mid-address. */
.room-list li > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.room-list li > div:first-child span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

/* A table cell has to stay a table cell. `display: flex` takes it out of the
   row's box model, so `vertical-align` stops applying and every action group
   rode high above the row it belongs to — in all six tables that use this. */
td.row-actions {
  display: table-cell;
  text-align: right;
}

td[data-label="Room"],
td[data-label="Payment"] {
  min-width: 152px;
}

td.row-actions > * + * {
  margin-left: 8px;
}

@media (max-width: 1100px) {
  .config-layout {
    grid-template-columns: 1fr;
  }

  .config-col-wide .property-list {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }
}

/* ── Global property scope picker ─────────────────────────────── */
.scope-picker {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 16px;
  box-shadow: var(--shadow);
}

.scope-picker span {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scope-picker select {
  border: none;
  background: #f8fafc;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  color: var(--black);
  min-width: 150px;
}

.scope-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #92400e;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 600;
}

.scope-echo {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.scope-echo strong {
  color: var(--black);
}

/* ══ Mobile ═══════════════════════════════════════════════════════
   Most of the day-to-day use is on a phone, so below 900px the
   sidebar becomes a drawer behind the hamburger, tables become
   stacked cards, and every control gets a touch-sized target.       */

.topbar-title {
  order: -1;
  min-width: 0;
  margin-right: auto;
}

.scope-picker {
  flex: 0 0 auto;
}

.topbar-title .eyebrow {
  color: var(--muted);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--black);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 45;
}

.nav-backdrop.open {
  display: block;
}

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

  /* Sidebar slides in from the left, off-canvas by default. */
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 84vw);
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 20px;
    /* When the menu is taller than the screen, a soft light edge at the bottom
       says there is more below; it disappears once scrolled to the end. The
       first layer scrolls with the content and covers the second at the end. */
    background:
      linear-gradient(rgba(32, 26, 23, 0), var(--black) 70%) bottom / 100% 44px no-repeat local,
      linear-gradient(to top, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)) bottom / 100% 26px no-repeat scroll,
      var(--black);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  /* Tighter than on desktop, so every page — Help last of all — fits on a
     short phone screen instead of sitting below the bottom edge. */
  .brand-block { margin-bottom: 16px; gap: 12px; }
  .brand-icon { width: 42px; height: 42px; }
  .nav-menu { gap: 2px; }
  .nav-btn { padding: 10px 14px; }
  .sidebar-footer { padding-top: 14px; gap: 8px; }

  /* The top bar sticks, so anything scrolled to must stop below it. */
  .help-step,
  .demo-viewport,
  .setup-notice {
    scroll-margin-top: 86px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .content-area {
    padding: 0 14px 28px;
  }

  /* Keep the property picker and menu reachable while scrolling. */
  .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fdf7f5;
    margin: 0 -14px 18px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    align-items: center;
    gap: 12px;
  }

  .topbar h1 {
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar .eyebrow {
    display: none;
  }

  .scope-picker {
    order: -2;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .scope-picker span {
    display: none;
  }

  .scope-picker select {
    border: 1px solid var(--line);
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 12px;
    font-size: 16px;
  }

  /* The picker already names the property, so the heading is dropped. */
  .topbar-title {
    display: none;
  }

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

  .stat-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .stat-card .label {
    font-size: 0.78rem;
    margin-bottom: 6px;
  }

  .stat-card strong {
    font-size: 1.5rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 14px;
  }

  .info-card,
  .entry-form {
    padding: 16px 14px;
    border-radius: 16px;
  }

  .section-heading {
    margin-bottom: 16px;
  }

  .section-heading h2 {
    font-size: 1.2rem;
  }

  .form-grid,
  .config-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .compact-header {
    flex-wrap: wrap;
  }

  .room-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .floor-group + .floor-group {
    padding-top: 18px;
  }

  /* Tables reflow into one card per row. */
  .table-wrap {
    overflow: visible;
  }

  table {
    min-width: 0;
    display: block;
  }

  thead {
    display: none;
  }

  tbody,
  tr {
    display: block;
  }

  tbody tr {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 12px;
  }

  tbody tr:hover {
    background: #f8fafc;
  }

  td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 6px 0;
    border-bottom: none;
    text-align: right;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    flex-shrink: 0;
  }

  td:empty,
  td[data-label=""] {
    display: none;
  }

  #dashboardPaymentsBody tr:nth-child(n + 6) {
    display: none;
  }

  #dashboardPaymentsBody td[data-label="Mode"],
  #dashboardPaymentsBody td[data-label="Received by"] {
    display: none;
  }

  td.row-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
    text-align: right;
  }

  td.row-actions > * + * {
    margin-left: 0;
  }

  td.row-actions::before {
    content: none;
  }

  .empty-state {
    text-align: left;
  }

  /* Modals fill the screen and stay scrollable. */
  .modal {
    padding: 0;
    place-items: end stretch;
  }

  .modal-card,
  .wide-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    padding: 18px 16px 24px;
  }

  .form-actions {
    margin-top: 20px;
  }

  .form-actions button,
  .primary-btn,
  .secondary-btn {
    flex: 1 1 140px;
    min-height: 46px;
  }

  /* That basis is a width in a row of buttons, but the sign-in card is a
     column, where it became a height: Sign in was 140px tall on a phone. */
  .login-card .primary-btn,
  .login-card button {
    flex: 0 0 auto;
  }

  .small-btn {
    flex: 0 0 auto;
    min-height: 40px;
  }

  .link-btn {
    min-height: 40px;
  }

  label input,
  label textarea,
  label select {
    padding: 13px 14px;
    font-size: 16px; /* stops iOS Safari zooming on focus */
  }

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

  .room-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .list-right {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .toast {
    left: 14px;
    right: 14px;
    transform: none;
    max-width: none;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .history-summary {
    grid-template-columns: 1fr;
  }
}

body.menu-open {
  overflow: hidden;
}

/* ── Expenses ─────────────────────────────────────────────────── */
.head-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.head-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--slate);
}

.head-item strong {
  color: var(--black);
}

/* ── Current / past residents switch ──────────────────────────── */
.segmented {
  display: inline-flex;
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
}

.segment {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.segment.active {
  background: var(--card);
  color: var(--primary-dark);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

/* ── Actions on the resident details card ─────────────────────── */
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.card-actions .secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.room-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

label input:disabled {
  background: #eef2f7;
  color: var(--muted);
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .segmented {
    width: 100%;
  }

  .segment {
    flex: 1 1 0;
    min-height: 42px;
  }

  .head-list {
    grid-template-columns: 1fr;
  }

  .card-actions .secondary-btn {
    flex: 1 1 140px;
    justify-content: center;
  }
}

/* ── Facts shown at the top of the vacate / move modals ───────── */
.modal-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.fact {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.fact span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fact strong {
  color: var(--black);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.fact-warn {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}

.fact-warn strong {
  color: #b91c1c;
}

@media (max-width: 900px) {
  .modal-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Money this month (dashboard) ─────────────────────────────── */
.money-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.money-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--slate);
  font-weight: 600;
}

.money-row strong {
  color: var(--black);
  font-size: 1.05rem;
}

.money-net {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.25);
}

.money-net strong {
  color: #15803d;
}

.money-net strong.is-negative {
  color: #b91c1c;
}

.head-list.compact {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.head-list.compact .head-item {
  padding: 8px 10px;
  font-size: 0.85rem;
}

/* ── Signed-in user ───────────────────────────────────────────── */
.signed-in-as {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ── Month grouping in money tables ───────────────────────────── */
.month-row td {
  padding: 8px 0 4px;
  background: none;
  border-bottom: none;
}

.month-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--sunk);
}

.month-name {
  font-weight: 800;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
}

.month-total {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ── Activity feed ────────────────────────────────────────────── */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.activity-item {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

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

.activity-when {
  color: var(--muted);
  font-size: 0.8rem;
}

.activity-summary {
  margin: 0 0 6px;
  color: var(--black);
  font-weight: 600;
}

.activity-who {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.activity-who i {
  margin-right: 6px;
}

.change-table {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.change-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.85rem;
}

.change-field {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.change-from {
  color: var(--muted);
  text-decoration: line-through;
  overflow-wrap: anywhere;
}

.change-row i {
  color: var(--primary);
  font-size: 0.75rem;
}

.change-to {
  color: var(--black);
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .change-row {
    grid-template-columns: 1fr auto 1fr;
  }

  .change-field {
    grid-column: 1 / -1;
  }

  .month-row td {
    display: block;
    padding: 8px 0 4px;
  }

  .month-row td::before {
    content: none;
  }
}

/* ── Clickable resident names ─────────────────────────────────── */
.name-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

/* ── Month-by-month ledger ────────────────────────────────────── */
.net-positive {
  color: #15803d;
  font-weight: 700;
}

.net-negative {
  color: #b91c1c;
  font-weight: 700;
}

/* ── Status with its date underneath ──────────────────────────── */
.status-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

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

/* ── What a payment was for ───────────────────────────────────── */
.type-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  white-space: nowrap;
}

.type-tag.type-other {
  background: #eef2f7;
  color: var(--slate);
}

@media (max-width: 900px) {
  .status-stack {
    align-items: flex-end;
  }
}

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

@media (max-width: 900px) {
  .stats-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Refunds ──────────────────────────────────────────────────── */
.type-tag.type-refund {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  margin-left: 6px;
}

.amount-out {
  color: #b91c1c;
  font-weight: 700;
}

.checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.deposit-note {
  margin: 0 0 16px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #92400e;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.86rem;
  font-weight: 600;
}

.login-foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7a90;
}

/* Platform mark. Every client panel carries it, so the login card and the shell
   both show where the software comes from. */
.app-footer {
  margin-top: auto;
  padding: 22px 4px 8px;
  text-align: center;
  font-size: 0.8rem;
  color: #8894a6;
}

.app-footer strong { font-weight: 600; color: #6b7a90; }

/* Organization logo, in Settings */
.logo-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.logo-preview {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid #dfe4ec;
  border-radius: 10px;
  padding: 6px;
  background: #fff;
  flex: none;
}

.logo-controls {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* The sidebar mark scales to whatever a client uploads. */
.brand-icon { object-fit: contain; }

/* Search on the Residents page. The icon sits inside the field so the control
   reads as one thing rather than a label beside a box. */
.search-field {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.search-field i {
  position: absolute;
  left: 10px;
  font-size: 0.8rem;
  color: #8894a6;
  pointer-events: none;
}

.search-field input {
  padding-left: 30px;
  min-width: 200px;
}

/* Pager. Only rendered when there is more than one page, so it never sits
   under a short list saying "Page 1 of 1". */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.pager:empty { display: none; }

.pager-count {
  font-size: 0.85rem;
  color: #6b7a90;
  font-variant-numeric: tabular-nums;
}

.pager-buttons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pager-page {
  font-size: 0.85rem;
  color: #6b7a90;
  font-variant-numeric: tabular-nums;
}

.pager button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* The Residents header carries three things — the count, the search and the
   add button. On a narrow screen they stack rather than squeezing the search
   box down to nothing or pushing the button off the edge. */
@media (max-width: 720px) {
  #residentsCard .compact-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  #residentsCard .header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
  }

  /* Search takes the row; the button sits under it at full width. */
  #residentsCard .search-field { flex: 1 1 100%; }
  #residentsCard .header-actions > .primary-btn { flex: 1 1 100%; }

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

  .pager { flex-direction: column; align-items: stretch; }
  .pager-buttons { justify-content: space-between; }
}

/* ══ First property ═══════════════════════════════════════════════
   A new organization cannot use most pages until it has a property. The
   pages stay in the menu so the shape of the panel is visible from day one,
   but they read as waiting, and Settings says why. */
.nav-btn.is-locked {
  color: #8F8480;
}

.nav-btn.is-locked i { opacity: 0.5; }

.nav-btn.is-locked::after {
  content: "\f023";                 /* lock */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.68rem;
  margin-left: auto;
  opacity: 0.55;
}

.setup-notice {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding: 16px 18px;
  background: var(--warn-wash);
  border: 1px solid #EBD39C;
  border-left: 4px solid var(--warn);
  border-radius: var(--r-md);
  color: var(--ink);
}

.setup-notice-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card);
  color: var(--warn);
  font-size: 1.05rem;
}

.setup-notice-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}

.setup-notice-text strong { font-size: 1rem; }
.setup-notice-text span { color: var(--ink-2); font-size: 0.88rem; line-height: 1.45; }

.setup-notice-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.setup-notice.is-flagged {
  animation: notice-flag 0.9s ease;
}

@keyframes notice-flag {
  0%, 100% { transform: none; box-shadow: none; }
  15% { transform: translateX(-6px); }
  30% { transform: translateX(6px); box-shadow: 0 0 0 4px rgba(150, 104, 11, 0.18); }
  45% { transform: translateX(-4px); }
  60% { transform: translateX(3px); }
}

/* ══ Help ═════════════════════════════════════════════════════════ */
.help-top {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
}

.help-meter {
  height: 6px;
  border-radius: 999px;
  background: var(--sunk);
  overflow: hidden;
  margin: 2px 0 16px;
}

.help-meter span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ok);
  border-radius: inherit;
  transition: width 0.4s ease;
}

.help-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--card);
}

.help-check-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sunk);
  color: var(--ink-3);
  font-size: 0.8rem;
  font-weight: 700;
}

.help-check-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.help-check-text strong { font-size: 0.92rem; }
.help-check-text small { color: var(--muted); font-size: 0.78rem; }

.help-check.is-done { background: transparent; border-color: var(--rule-soft); }
.help-check.is-done .help-check-mark { background: var(--ok-wash); color: var(--ok); }
.help-check.is-done strong { color: var(--ink-3); font-weight: 500; }

/* The one thing to do now. */
.help-check.is-next {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.help-check.is-next .help-check-mark { background: var(--ink); color: #FFFFFF; }

.help-guide {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

.help-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.help-step-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.help-step-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--brand-wash);
  color: var(--brand);
  font-weight: 700;
}

.help-step.is-done .help-step-num { background: var(--ok-wash); color: var(--ok); }

.help-step-title { flex: 1 1 auto; min-width: 0; }
.help-step-title h3 { margin: 0; font-size: 1.02rem; }

.help-where {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.help-where i { font-size: 0.7rem; margin-right: 3px; }

.help-how {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.5;
}

.help-how li::marker { color: var(--ink-3); font-weight: 600; }
.help-how b, .help-tips b { color: var(--ink); font-weight: 600; }

.help-tips {
  list-style: none;
  margin: 0;
  padding: 12px 14px;
  background: var(--sunk);
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.help-tips li {
  position: relative;
  padding-left: 20px;
}

.help-tips li::before {
  content: "\f0eb";                 /* lightbulb */
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--warn);
}

.help-step-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

/* ── Walkthrough player ─────────────────────────────────────────── */
.demo-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 820 / 520;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--rule);
  background: var(--ground);
}

.demo-screen {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink);
  user-select: none;
}

.d-app {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 170px 1fr;
  background: var(--ground);
}

.d-side {
  background: var(--black);
  color: #CFC6C1;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.d-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 14px;
  color: #FFFFFF;
  font-size: 12px;
}

.d-logo {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--brand);
  font-size: 12px;
}

.d-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  margin-right: 10px;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: background 0.2s ease;
}

.d-nav i { width: 14px; text-align: center; font-size: 11px; opacity: 0.8; }

.d-nav.is-on {
  background: rgba(180, 35, 31, 0.2);
  border-left-color: var(--brand);
  color: #FFFFFF;
  font-weight: 600;
}

.d-main {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.d-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
}

.d-pill {
  font-size: 11px;
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-3);
}

.d-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.d-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.d-btn {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 6px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  transition: transform 0.12s ease, background 0.12s ease;
}

.d-link { color: var(--brand); font-weight: 600; font-size: 12px; }

.is-pressed { transform: scale(0.94); }
.d-btn.is-pressed { background: #3A302B; }

.d-empty,
.d-muted { color: var(--ink-3); font-size: 12px; }

.d-empty {
  padding: 18px;
  text-align: center;
  background: var(--sunk);
  border-radius: 8px;
}

.d-property {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #FCFAF9;
}

.d-property-head { display: flex; justify-content: space-between; align-items: center; }

.d-floor {
  padding: 7px 10px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--card);
  font-size: 12px;
}

.d-floor-name { font-weight: 700; font-size: 12px; }

.d-beds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.d-bed {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #FCFAF9;
}

.d-bed > div { display: flex; justify-content: space-between; align-items: center; }
.d-bed small { font-size: 11px; color: var(--ink-2); }

.d-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--sunk);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 600;
}

.d-tag-ok { background: var(--ok-wash); color: var(--ok); }
.d-tag-stop { background: var(--stop-wash); color: var(--stop); }

.d-table { display: flex; flex-direction: column; font-size: 12px; }

.d-tr {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.8fr;
  gap: 8px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--rule-soft);
  align-items: center;
}

.d-th {
  background: var(--sunk);
  border-radius: 6px;
  border-bottom: 0;
  color: var(--ink-3);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.d-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.d-tile {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.d-tile small { color: var(--ink-3); font-size: 10.5px; }
.d-tile b { font-size: 19px; font-variant-numeric: tabular-nums; }
.d-tone-ok { border-left-color: var(--ok); }
.d-tone-stop { border-left-color: var(--stop); }

.d-money {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 12.5px;
}

.d-net { background: var(--ok-wash); border-color: #BFE0CC; }
.d-net b { color: var(--ok); }

/* Something the viewer just made, picked out for a moment. */
.d-fresh { animation: d-fresh 1.6s ease; }

@keyframes d-fresh {
  0% { background: #FFF1C7; box-shadow: 0 0 0 3px #F5D98A; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.d-modal-back {
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 20, 0.42);
  display: grid;
  place-items: center;
  animation: d-fade 0.25s ease;
}

.d-modal {
  width: 440px;
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow-pop);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: d-rise 0.3s ease;
}

.d-modal-head { display: flex; justify-content: space-between; font-size: 14.5px; }
.d-x { color: var(--ink-3); font-size: 16px; line-height: 1; }

.d-grid { display: flex; flex-wrap: wrap; gap: 9px 10px; }
.d-grid > * { flex: 1 1 100%; }
.d-grid > .d-half { flex-basis: calc(50% - 5px); }
.d-grid > .d-third { flex-basis: calc(33.33% - 7px); }

.d-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.d-label { font-size: 11px; font-weight: 600; color: var(--ink-2); }

.d-input {
  position: relative;
  padding: 8px 10px;
  min-height: 32px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #F9F7F6;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.d-select::after {
  content: "▾";
  position: absolute;
  right: 9px;
  top: 7px;
  color: var(--ink-3);
}

.d-input.is-focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(26, 22, 20, 0.08);
  background: var(--card);
}

.d-input.is-focus .d-value::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 13px;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--ink);
  animation: d-caret 0.9s steps(1) infinite;
}

.d-placeholder { color: #B3A8A2; }

.d-autofill .d-input { animation: d-autofill 1.2s ease; }

@keyframes d-autofill {
  0% { background: #EAF4EE; border-color: #9FCDB2; }
  100% { background: #F9F7F6; }
}

.d-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 4px 0;
}

.d-box {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ink-3);
  border-radius: 4px;
  font-size: 9px;
  color: #FFFFFF;
}

.d-check.is-on .d-box { background: var(--ink); border-color: var(--ink); }

.d-modal-foot { display: flex; justify-content: flex-end; }

.d-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  font-size: 20px;
  color: var(--ink);
  filter: drop-shadow(0 1px 0 #FFFFFF) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  pointer-events: none;
  /* The arrow's tip, not its box, sits on the point. */
  margin: -3px 0 0 -5px;
}

.d-cursor.is-visible { opacity: 1; }

.d-cursor::after {
  content: "";
  position: absolute;
  left: -9px;
  top: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(180, 35, 31, 0.35);
  transform: scale(0);
  opacity: 0;
}

.d-cursor.is-tapping::after { animation: d-tap 0.35s ease-out; }

@keyframes d-tap {
  0% { transform: scale(0.2); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes d-fade { from { opacity: 0; } }
@keyframes d-rise { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes d-caret { 50% { opacity: 0; } }

.demo-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  cursor: pointer;
  background: rgba(26, 22, 20, 0.5);
  color: #FFFFFF;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.demo-start:hover { background: rgba(26, 22, 20, 0.6); }

.demo-start-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand);
  font-size: 1.4rem;
  padding-left: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.demo-start:hover .demo-start-icon { transform: scale(1.06); }
.demo-start:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }

.demo-caption {
  margin: 12px 0 10px;
  min-height: 2.8em;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-toggle,
.demo-restart {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

.demo-toggle { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

.demo-chips {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.demo-chip {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px 2px;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  min-width: 0;
}

.demo-chip-label {
  font-size: 0.72rem;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-chip.is-current .demo-chip-label { color: var(--ink); font-weight: 600; }

.demo-chip-track {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: var(--sunk);
  overflow: hidden;
}

.demo-chip-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width 0.3s linear;
}

/* The walkthrough's phone layout: no sidebar, pages behind a menu button. */
.d-app.is-compact { grid-template-columns: 1fr; }
.is-compact .d-main { padding: 12px 14px; gap: 10px; }
.is-compact .d-top { gap: 10px; font-size: 14px; }
.is-compact .d-pill-wide {
  flex: 1 1 auto;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.d-menu {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--card);
  font-size: 14px;
  transition: transform 0.12s ease;
}

.d-page-title { font-size: 18px; font-weight: 700; }
.is-compact .d-tiles { grid-template-columns: repeat(2, 1fr); }
.is-compact .d-beds { grid-template-columns: repeat(2, 1fr); }
.is-compact .d-tr { grid-template-columns: 1.15fr 1fr 1fr 0.75fr; gap: 6px; font-size: 11.5px; }
.is-compact .d-modal { width: calc(100% - 24px); padding: 14px; }

.d-drawer-back {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(26, 22, 20, 0.45);
  animation: d-fade 0.2s ease;
}

.d-side.d-drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: 240px;
  padding-top: 20px;
  animation: d-slide 0.25s ease;
}

.d-drawer .d-nav { padding: 11px 14px; font-size: 14px; }

@keyframes d-slide { from { transform: translateX(-100%); } }

@media (max-width: 1100px) {
  .help-top { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .setup-notice { flex-wrap: wrap; }
  .setup-notice-actions { width: 100%; justify-content: space-between; }
  .help-guide { grid-template-columns: 1fr; }
  .demo-chip-label { font-size: 0; }
  .demo-chip-label::first-letter { font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .d-cursor { transition: opacity 0.2s ease; }
  .d-fresh, .d-autofill .d-input, .d-modal, .d-modal-back, .d-drawer, .d-drawer-back,
  .setup-notice.is-flagged, .d-cursor.is-tapping::after { animation: none; }
  .d-fresh { box-shadow: 0 0 0 3px #F5D98A; }
}
