/* ==========================================================================
   Lisvero design system — "Quiet Marketplace"
   Original tokens + components. Marketplace layout conventions (search pill,
   category rail, photo cards, sticky enquiry panel) are implemented from
   scratch here: no third-party fonts, icons, colours or copy are reused.
   ========================================================================== */

:root {
  /* --- Jade: the Lisvero signature. Calm, not corporate. --- */
  --nk-jade-50:  #eff8f4;
  --nk-jade-100: #d6efe4;
  --nk-jade-200: #ace0cb;
  --nk-jade-300: #77cbad;
  --nk-jade-400: #43b18e;
  --nk-jade-500: #219676;
  --nk-jade-600: #157a60;
  --nk-jade-700: #12614e;
  --nk-jade-800: #124d3f;
  --nk-jade-900: #0f3f35;

  /* --- Ink & paper: warm neutrals, so the UI reads like a home, not a bank --- */
  --nk-ink:      #17211e;
  --nk-ink-soft: #46524e;
  --nk-ink-mute: #77827e;
  --nk-line:     #e4e2dc;
  --nk-line-soft:#efede7;
  --nk-paper:    #fbfaf7;
  --nk-surface:  #ffffff;

  /* --- Support --- */
  --nk-ochre:    #b8860b;
  --nk-clay:     #a8583f;

  /* --- Elevation: soft, wide, low opacity. Never a hard drop shadow. --- */
  --nk-shadow-sm: 0 1px 2px rgba(23,33,30,.06), 0 2px 8px rgba(23,33,30,.05);
  --nk-shadow:    0 2px 6px rgba(23,33,30,.07), 0 12px 28px rgba(23,33,30,.09);
  --nk-shadow-lg: 0 4px 12px rgba(23,33,30,.08), 0 24px 48px rgba(23,33,30,.12);

  /* Header height, so every sticky element below can offset off one number. */
  --nk-header-h: 72px;

  --nk-r-sm: 10px;
  --nk-r:    14px;
  --nk-r-lg: 20px;
  --nk-r-xl: 28px;
}

@media (min-width: 768px) { :root { --nk-header-h: 112px; } }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--nk-paper);
  color: var(--nk-ink);
  letter-spacing: -0.006em;
}

h1, h2, h3, h4, .nk-display {
  font-family: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.028em;
  color: var(--nk-ink);
}

/* Focus ring — one ring everywhere, keyboard users first. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--nk-jade-500);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Brand mark
   -------------------------------------------------------------------------- */
.nk-mark { width: 34px; height: 34px; flex: none; }
.nk-wordmark {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.045em;
  color: var(--nk-jade-700);
}
.nk-wordmark em { font-style: normal; color: var(--nk-ink); }

/* --------------------------------------------------------------------------
   Form controls
   -------------------------------------------------------------------------- */
.nk-input {
  display: block;
  width: 100%;
  background: var(--nk-surface);
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-r-sm);
  padding: 0.62rem 0.8rem;
  font-size: 0.925rem;
  color: var(--nk-ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.nk-input::placeholder { color: var(--nk-ink-mute); }
.nk-input:hover { border-color: #d4d1c9; }
.nk-input:focus {
  outline: none;
  border-color: var(--nk-jade-500);
  box-shadow: 0 0 0 3px var(--nk-jade-100);
}
select.nk-input {
  appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2377827e' stroke-width='1.6' stroke-linecap='round'><path d='M6 8l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  background-size: 1.15rem;
}
textarea.nk-input { min-height: 5.5rem; resize: vertical; }
.nk-label {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--nk-ink-mute);
  margin-bottom: .35rem;
}
input[type="checkbox"] { accent-color: var(--nk-jade-600); width: 1rem; height: 1rem; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.nk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .68rem 1.15rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: .925rem;
  line-height: 1.1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease,
              border-color .15s ease, color .15s ease;
  text-align: center;
}
.nk-btn:active { transform: scale(.975); }
.nk-btn-primary { background: var(--nk-jade-600); color: #fff; box-shadow: var(--nk-shadow-sm); }
.nk-btn-primary:hover { background: var(--nk-jade-700); color: #fff; }
.nk-btn-ink { background: var(--nk-ink); color: #fff; }
.nk-btn-ink:hover { background: #0c1412; color: #fff; }
.nk-btn-outline { background: var(--nk-surface); color: var(--nk-ink); border-color: var(--nk-line); }
.nk-btn-outline:hover { border-color: var(--nk-ink-soft); }
.nk-btn-quiet { background: transparent; color: var(--nk-ink-soft); }
.nk-btn-quiet:hover { background: rgba(23,33,30,.05); color: var(--nk-ink); }
.nk-btn-block { width: 100%; }
.nk-btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }
.nk-btn-sm { padding: .45rem .85rem; font-size: .82rem; }

/* --------------------------------------------------------------------------
   Surfaces
   -------------------------------------------------------------------------- */
.nk-card {
  background: var(--nk-surface);
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-r-lg);
}
.nk-card-pad { padding: 1.5rem; }
.nk-raised { box-shadow: var(--nk-shadow); border-color: var(--nk-line-soft); }

.nk-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: var(--nk-jade-50);
  color: var(--nk-jade-700);
  border: 1px solid var(--nk-jade-100);
  white-space: nowrap;
}
.nk-badge-neutral { background: #f4f3ef; color: var(--nk-ink-soft); border-color: var(--nk-line); }
.nk-badge-ochre   { background: #fbf4e2; color: #7a5a06; border-color: #f0e3c2; }
.nk-badge-clay    { background: #fbefeb; color: var(--nk-clay); border-color: #f2ddd5; }
.nk-badge-dark    { background: rgba(23,33,30,.78); color: #fff; border-color: transparent; }

.nk-hr { height: 1px; background: var(--nk-line-soft); border: 0; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.nk-header {
  position: sticky; top: 0; z-index: 50;
  /* Solid, not translucent. A blurred backdrop on a sticky bar makes the
     browser re-rasterise the full width of the page on every scroll frame,
     and with a second blurred bar under it on the feed that is enough to make
     a mouse wheel feel broken. The blur was worth nothing here. */
  background: #fff;
  border-bottom: 1px solid var(--nk-line-soft);
}
.nk-navlink {
  font-size: .9rem; font-weight: 550; color: var(--nk-ink-soft);
  padding: .5rem .7rem; border-radius: 999px; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nk-navlink:hover { background: rgba(23,33,30,.05); color: var(--nk-ink); }
.nk-navlink[aria-current="page"] { color: var(--nk-jade-700); background: var(--nk-jade-50); }

/* Account control: avatar + menu lines in one pill. */
.nk-account {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .3rem .35rem .3rem .75rem;
  border: 1px solid var(--nk-line); border-radius: 999px; background: #fff;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.nk-account:hover { box-shadow: var(--nk-shadow-sm); border-color: #d4d1c9; }
.nk-avatar {
  width: 32px; height: 32px; border-radius: 999px; flex: none;
  display: grid; place-items: center;
  background: var(--nk-jade-600); color: #fff;
  font-weight: 700; font-size: .82rem;
}
.nk-avatar-lg { width: 46px; height: 46px; font-size: 1.05rem; }
.nk-avatar-xl { width: 84px; height: 84px; font-size: 2rem; }

/* A picture fills the same circle the initial did, so nothing shifts when
   somebody uploads one. */
.nk-avatar.has-photo { background: #e4e2dc; overflow: hidden; padding: 0; }
.nk-avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The @ sits inside the field, so nobody types it twice. */
.nk-handle { position: relative; }
.nk-handle .nk-handle-at {
  position: absolute; left: .8rem; top: 50%; transform: translateY(-50%);
  color: var(--nk-ink-mute); font-weight: 600; pointer-events: none;
}
.nk-handle .nk-input { padding-left: 1.9rem; }

.nk-suggestion {
  padding: .35rem .75rem; border-radius: 999px;
  border: 1px solid var(--nk-line); background: #fff;
  font-size: .82rem; font-weight: 600; color: var(--nk-ink); cursor: pointer;
}
.nk-suggestion:hover { border-color: var(--nk-jade-500); background: var(--nk-jade-50); }
.nk-menu {
  position: absolute; right: 0; top: calc(100% + .6rem); min-width: 252px;
  background: #fff; border: 1px solid var(--nk-line-soft); border-radius: var(--nk-r);
  box-shadow: var(--nk-shadow-lg); padding: .5rem; z-index: 60;
}
.nk-menu[hidden] { display: none; }
.nk-menu a, .nk-menu button {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  padding: .55rem .7rem; border-radius: 9px; font-size: .9rem; color: var(--nk-ink-soft);
  text-align: left; background: none; border: 0; cursor: pointer;
}
.nk-menu a:hover, .nk-menu button:hover { background: #f5f4f0; color: var(--nk-ink); }
.nk-menu-strong { font-weight: 650; color: var(--nk-ink); }

/* The count on the bell. Sized for two digits rather than one: a landlord with
   fourteen unread notifications was being shown a pill with the 4 clipped off,
   and a number you cannot read is worse than no number at all. The white ring
   is drawn outside the box so it does not eat the space the digits need. */
.nk-dot {
  position: absolute; top: -5px; right: -5px;
  /* border-box, so min-width and height are the same measurement and one digit
     comes out round. Two digits push past it on the padding and it becomes a
     pill, which is what a pill shape is for. */
  box-sizing: border-box;
  min-width: 20px; height: 20px; padding: 0 4px;
  border: 2px solid #fff; border-radius: 999px;
  background: var(--nk-clay); color: #fff;
  /* 20px box less 2px of border top and bottom leaves 16px of line to sit in. */
  font-size: 11px; font-weight: 700; line-height: 16px;
  font-variant-numeric: tabular-nums;
  display: inline-block; text-align: center; white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Search pill — the hero control and its condensed header twin
   -------------------------------------------------------------------------- */
.nk-search {
  display: grid;
  background: #fff;
  border: 1px solid var(--nk-line);
  border-radius: 999px;
  box-shadow: var(--nk-shadow);
  padding: .35rem;
  align-items: center;
}
.nk-search-seg {
  padding: .55rem 1.15rem;
  border-radius: 999px;
  text-align: left;
  transition: background .15s ease;
  min-width: 0;
}
.nk-search-seg:hover, .nk-search-seg:focus-within { background: #f5f4f0; }
.nk-search-seg + .nk-search-seg { box-shadow: inset 1px 0 0 var(--nk-line-soft); }
.nk-search-seg:hover + .nk-search-seg,
.nk-search-seg:focus-within + .nk-search-seg { box-shadow: none; }
.nk-seg-label {
  display: block; font-size: .7rem; font-weight: 750; letter-spacing: .045em;
  text-transform: uppercase; color: var(--nk-ink); margin-bottom: .1rem;
}
.nk-seg-input, .nk-search-seg select {
  width: 100%; border: 0; background: transparent; padding: 0;
  font-size: .875rem; color: var(--nk-ink-soft); appearance: none;
}
.nk-seg-input:focus, .nk-search-seg select:focus { outline: none; }
.nk-seg-input::placeholder { color: var(--nk-ink-mute); }
.nk-search-go {
  width: 48px; height: 48px; flex: none; margin-left: .25rem; justify-self: end;
  border-radius: 999px; background: var(--nk-jade-600); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background .15s ease;
}
.nk-search-go:hover { background: var(--nk-jade-700); }

@media (max-width: 767px) {
  .nk-search { border-radius: var(--nk-r-lg); padding: .6rem; }
  .nk-search-seg + .nk-search-seg { box-shadow: inset 0 1px 0 var(--nk-line-soft); }
  .nk-search-go { width: 100%; height: 44px; border-radius: 999px; margin: .4rem 0 0; }
}

/* Condensed pill that fades into the header once the hero scrolls away. */
.nk-minisearch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--nk-line); border-radius: 999px; background: #fff;
  padding: .3rem .3rem .3rem 1.1rem; box-shadow: var(--nk-shadow-sm);
  font-size: .875rem; font-weight: 600; color: var(--nk-ink);
  transition: opacity .25s ease, transform .25s ease, box-shadow .15s ease;
}
.nk-minisearch:hover { box-shadow: var(--nk-shadow); }
.nk-minisearch span { padding: 0 .75rem; }
.nk-minisearch span + span { box-shadow: inset 1px 0 0 var(--nk-line-soft); }
.nk-minisearch .nk-mini-go {
  width: 34px; height: 34px; border-radius: 999px; background: var(--nk-jade-600);
  color: #fff; display: grid; place-items: center; margin-left: .35rem;
}
.nk-hide-until-scroll { opacity: 0; transform: translateY(-6px) scale(.96); pointer-events: none; }

/* --------------------------------------------------------------------------
   Category rail
   -------------------------------------------------------------------------- */
.nk-rail {
  display: flex; gap: 1.9rem; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
  /* fit-content + auto margins centres the row while it fits, then hands the
     full width back so it scrolls from the left instead of clipping. */
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.nk-rail::-webkit-scrollbar { display: none; }
.nk-rail-item {
  display: flex; flex-direction: column; align-items: center; gap: .38rem;
  padding: .55rem .15rem .8rem; min-width: 66px; flex: none;
  color: var(--nk-ink-mute); font-size: .74rem; font-weight: 600; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease, opacity .15s ease;
  opacity: .8;
}
.nk-rail-item svg { width: 24px; height: 24px; }
.nk-rail-item:hover { color: var(--nk-ink); opacity: 1; border-bottom-color: var(--nk-line); }
.nk-rail-item.is-active { color: var(--nk-ink); opacity: 1; border-bottom-color: var(--nk-ink); }

.nk-filterbar {
  position: sticky; top: var(--nk-header-h); z-index: 20;
  background: var(--nk-paper);
  border-bottom: 1px solid var(--nk-line-soft);
}

/* --------------------------------------------------------------------------
   Listing card
   -------------------------------------------------------------------------- */
.nk-listing {
  position: relative;
  /* A card cannot affect anything outside itself, so the browser can skip
     laying out and painting the ones scrolled off screen. On a long feed this
     is the difference between a smooth wheel and a stuttering one. */
  content-visibility: auto;
  contain-intrinsic-size: auto 340px;
}
.nk-frame {
  position: relative; overflow: hidden; border-radius: var(--nk-r-lg);
  background: #f1efe9; aspect-ratio: 20 / 19;
}
.nk-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s cubic-bezier(.2,.7,.3,1);
}
@media (hover: none) {
  /* No hover on touch, so do not pay for the transition there at all. */
  .nk-frame img { transition: none; }
}
.nk-listing:hover .nk-frame img { transform: scale(1.045); }
.nk-frame-empty { width: 100%; height: 100%; display: grid; place-items: center; color: #cdc9bd; }

/* Slide track — a transform driven by two small buttons, no library. */
.nk-slides { display: flex; height: 100%; transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.nk-slides > * { flex: 0 0 100%; height: 100%; }
.nk-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--nk-ink);
  display: grid; place-items: center; box-shadow: var(--nk-shadow-sm);
  opacity: 0; transition: opacity .18s ease, background .15s ease; z-index: 2;
  /* Invisible means untouchable: an arrow nobody can see must not eat the
     click meant for the card underneath it. */
  pointer-events: none;
}
.nk-listing:hover .nk-arrow { opacity: 1; pointer-events: auto; }
.nk-arrow:hover { background: #fff; }
.nk-arrow:focus-visible { opacity: 1; pointer-events: auto; }
.nk-arrow-l { left: .6rem; }
.nk-arrow-r { right: .6rem; }
.nk-dots {
  position: absolute; bottom: .7rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: .3rem; pointer-events: none; z-index: 2;
}
.nk-dots i {
  width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.6);
  transition: background .2s ease, transform .2s ease;
}
.nk-dots i.is-on { background: #fff; transform: scale(1.3); }

.nk-heart {
  position: absolute; top: .6rem; right: .6rem; z-index: 3;
  width: 34px; height: 34px; display: grid; place-items: center;
  color: #fff; cursor: pointer;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.45));
  transition: transform .15s ease;
}
.nk-heart:hover { transform: scale(1.12); }
.nk-heart svg { width: 23px; height: 23px; }
.nk-heart.is-saved svg { fill: var(--nk-clay); stroke: #fff; }

.nk-pin {
  position: absolute; top: .7rem; left: .7rem; z-index: 2;
  background: rgba(255,255,255,.94); color: var(--nk-jade-700);
  border-radius: 999px; padding: .28rem .6rem; font-size: .7rem; font-weight: 750;
  box-shadow: var(--nk-shadow-sm); display: inline-flex; align-items: center; gap: .25rem;
}
.nk-pin svg { width: 12px; height: 12px; }

.nk-listing-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 650; font-size: .95rem; color: var(--nk-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nk-listing-meta { font-size: .875rem; color: var(--nk-ink-mute); }
.nk-price { font-weight: 700; color: var(--nk-ink); }
.nk-price span { font-weight: 450; color: var(--nk-ink-mute); }
.nk-star { display: inline-flex; align-items: center; gap: .2rem; font-size: .86rem; font-weight: 600; }
.nk-star svg { width: 13px; height: 13px; fill: var(--nk-ink); }

/* --------------------------------------------------------------------------
   Listing gallery
   One large frame with arrows, and a strip of thumbnails under it. A room is
   judged on the big picture, so that is what gets the space.
   -------------------------------------------------------------------------- */
.nk-gallery { display: flex; flex-direction: column; gap: .6rem; }
.nk-gallery-stage {
  position: relative; overflow: hidden;
  border-radius: var(--nk-r-lg);
  background: #f1efe9;
  aspect-ratio: 16 / 10;
}
.nk-gallery-stage .nk-slides { height: 100%; }
.nk-gallery-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The arrows stay visible here: on a page about one home they are the control,
   not a hover affordance on a card in a grid. */
.nk-gallery-stage .nk-arrow { opacity: 1; pointer-events: auto; }
.nk-arrow-lg { width: 44px; height: 44px; }
.nk-gallery-stage .nk-arrow-l { left: 1rem; }
.nk-gallery-stage .nk-arrow-r { right: 1rem; }

.nk-gallery-count {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 2;
  padding: .3rem .7rem; border-radius: 999px;
  background: rgba(23,33,30,.72); color: #fff;
  font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums;
}

.nk-gallery-strip {
  display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .2rem;
  scrollbar-width: thin;
}
.nk-thumb {
  flex: 0 0 auto; width: 6rem; aspect-ratio: 4 / 3;
  border-radius: var(--nk-r-sm); overflow: hidden;
  border: 2px solid transparent; opacity: .65; cursor: pointer;
  transition: opacity .15s ease, border-color .15s ease;
}
.nk-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nk-thumb:hover { opacity: 1; }
.nk-thumb.is-on { opacity: 1; border-color: var(--nk-jade-600); }

@media (max-width: 639px) {
  .nk-gallery-stage { aspect-ratio: 4 / 3; }
  .nk-arrow-lg { width: 36px; height: 36px; }
  .nk-thumb { width: 4.5rem; }
}

/* --------------------------------------------------------------------------
   Gallery mosaic (listing detail)
   -------------------------------------------------------------------------- */
.nk-mosaic {
  display: grid; gap: .5rem; border-radius: var(--nk-r-lg); overflow: hidden;
  grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr;
  aspect-ratio: 2.1 / 1; background: #f1efe9;
}
.nk-mosaic > * { overflow: hidden; position: relative; background: #f1efe9; }
.nk-mosaic > *:first-child { grid-row: span 2; }
.nk-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s ease; }
.nk-mosaic a:hover img { filter: brightness(.92); }
.nk-mosaic-solo { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 16/9; }
.nk-mosaic-solo > *:first-child { grid-row: span 1; }
@media (max-width: 767px) {
  .nk-mosaic { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 4/3; }
  .nk-mosaic > *:not(:first-child) { display: none; }
  .nk-mosaic > *:first-child { grid-row: span 1; }
}

/* Anything that should pin just under the header. */
.nk-sticky { position: sticky; top: calc(var(--nk-header-h) + 1.5rem); }

/* Sticky enquiry panel */
.nk-panel {
  background: #fff; border: 1px solid var(--nk-line-soft); border-radius: var(--nk-r-lg);
  box-shadow: var(--nk-shadow); padding: 1.5rem;
}


/* --------------------------------------------------------------------------
   Admin console
   A side rail and a working area. Deliberately plainer than the tenant-facing
   pages: this is somebody's job, not a shop window.
   -------------------------------------------------------------------------- */
.nk-console { display: grid; grid-template-columns: 14rem 1fr; gap: 1.75rem; align-items: start; }
.nk-console-rail {
  position: sticky; top: calc(var(--nk-header-h) + 1.5rem);
  background: #fff; border: 1px solid var(--nk-line);
  border-radius: var(--nk-r-lg); padding-bottom: .5rem; overflow: hidden;
}
.nk-console-link {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem; font-size: .9rem; font-weight: 550; color: var(--nk-ink-soft);
}
.nk-console-link:hover { background: #faf9f6; color: var(--nk-ink); }
.nk-console-link.is-active {
  background: var(--nk-jade-50); color: var(--nk-jade-800); font-weight: 700;
  box-shadow: inset 3px 0 0 var(--nk-jade-600);
}
.nk-console-count {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--nk-clay); color: #fff;
  font-size: 11px; font-weight: 800; display: grid; place-items: center;
}
.nk-console-main { min-width: 0; }

.nk-queue-tile {
  display: flex; flex-direction: column; gap: .1rem;
  padding: .8rem 1rem; border-radius: var(--nk-r);
  background: #faf9f6; border: 1px solid var(--nk-line);
}
.nk-queue-tile span {
  font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.4rem; font-weight: 750;
  letter-spacing: -.03em;
}
.nk-queue-tile small { font-size: .72rem; color: var(--nk-ink-mute); }
a.nk-queue-tile:hover { border-color: var(--nk-jade-400); background: var(--nk-jade-50); }

.nk-live-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--nk-jade-500);
  display: inline-block; animation: nk-pulse 2s ease-in-out infinite;
}
@keyframes nk-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

@media (max-width: 899px) {
  .nk-console { grid-template-columns: 1fr; }
  .nk-console-rail { position: static; display: flex; flex-wrap: wrap; }
  .nk-console-link { padding: .5rem .8rem; }
  .nk-console-link.is-active { box-shadow: inset 0 -3px 0 var(--nk-jade-600); }
}

/* The pending decision, pinned under the conversation header. */
.nk-chat-decision {
  flex: none;
  padding: .8rem 1.1rem;
  background: var(--nk-jade-50);
  border-bottom: 1px solid var(--nk-jade-100);
}
.nk-input-sm { padding: .38rem .6rem; font-size: .82rem; }

/* Decline, then give a reason. The panel opens under the button. */
.nk-decline { position: relative; }
.nk-decline > summary { list-style: none; cursor: pointer; }
.nk-decline > summary::-webkit-details-marker { display: none; }
.nk-decline[open] > summary { background: #f3f2ed; border-color: var(--nk-ink-soft); }
.nk-decline-panel {
  position: absolute; z-index: 30; top: calc(100% + .4rem); left: 0;
  width: min(22rem, 80vw);
  background: #fff; border: 1px solid var(--nk-line-soft);
  border-radius: var(--nk-r); box-shadow: var(--nk-shadow-lg);
  padding: 1rem;
}
@media (max-width: 639px) {
  .nk-decline-panel { position: static; width: 100%; box-shadow: none; margin-top: .5rem; }
}

/* A count on a menu item, pushed to the right edge. */
.nk-menu-count {
  margin-left: auto;
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--nk-clay); color: #fff;
  font-size: .7rem; font-weight: 800; font-variant-numeric: tabular-nums;
}

/* A count riding along on a filter tab. */
.nk-tab-count {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: .1rem;
  border-radius: 999px; background: rgba(23,33,30,.10);
  font-size: .7rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.nk-btn-ink .nk-tab-count { background: rgba(255,255,255,.22); }

/* An unread mark on the account button, because the bell is easy to miss. */
.nk-account { position: relative; }
.nk-unread-pip {
  position: absolute; top: 2px; right: 2px;
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--nk-clay); border: 2px solid #fff;
}

/* A table row that behaves like a link, without nesting one around a <tr>. */
.nk-rowlink { cursor: pointer; transition: background .12s ease; }
.nk-rowlink:hover { background: #faf9f6; }

/* A walkthrough the landlord uploaded, played in place. */
.nk-video {
  width: 100%;
  max-height: 26rem;
  border-radius: var(--nk-r-lg);
  background: #0d1412;
  display: block;
}

/* --------------------------------------------------------------------------
   Profile editing: hover to reveal, click to change
   -------------------------------------------------------------------------- */
.nk-avatar-edit {
  position: relative; border: 0; background: none; padding: 0; cursor: pointer;
  border-radius: 999px; line-height: 0;
}
.nk-avatar-pencil {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(23,33,30,.55); color: #fff;
  opacity: 0; transition: opacity .15s ease;
}
.nk-avatar-edit:hover .nk-avatar-pencil,
.nk-avatar-edit:focus-visible .nk-avatar-pencil { opacity: 1; }

/* A value that turns into a field when somebody wants to change it. */
.nk-editable {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .8rem; border-radius: var(--nk-r-sm);
  border: 1px solid transparent; background: #faf9f6;
}
.nk-editable:hover { border-color: var(--nk-line); }
.nk-editable-value { font-weight: 600; }
.nk-editable[data-locked] .nk-editable-value { color: var(--nk-ink-mute); }
.nk-editable-pencil {
  margin-left: auto; width: 30px; height: 30px; border-radius: 999px;
  display: grid; place-items: center; color: var(--nk-ink-mute);
  opacity: 0; transition: opacity .15s ease;
}
.nk-editable:hover .nk-editable-pencil,
.nk-editable-pencil:focus-visible { opacity: 1; color: var(--nk-jade-700); }

.nk-status-free { color: var(--nk-jade-700); font-weight: 600; }
.nk-status-taken { color: var(--nk-clay); font-weight: 600; }
.nk-status-checking { color: var(--nk-ink-mute); }

/* A disabled field should look settled, not broken. */
.nk-input:disabled {
  background: #f3f2ed; color: var(--nk-ink-mute); cursor: not-allowed;
}

/* The cropper. */
.nk-cropper {
  position: relative; width: 360px; max-width: 100%; margin: 0 auto;
  border-radius: var(--nk-r); overflow: hidden; background: #17211e;
  touch-action: none;
}
.nk-cropper canvas { display: block; width: 100%; height: auto; cursor: grab; }
.nk-cropper canvas:active { cursor: grabbing; }
.nk-crop-ring {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(23,33,30,.55);
  border-radius: 999px;
  margin: 6%;
}

/* --------------------------------------------------------------------------
   Support IDs
   -------------------------------------------------------------------------- */
.nk-idcard {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  background: #faf9f6; border: 1px solid var(--nk-line);
  border-radius: var(--nk-r); padding: .9rem 1.1rem;
}
.nk-id {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, monospace;
  font-size: .95rem; font-weight: 600; letter-spacing: .06em;
  color: var(--nk-ink); white-space: nowrap;
}
.nk-id-sm { font-size: .78rem; letter-spacing: .04em; color: var(--nk-ink-soft); }
.nk-copy {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .6rem; border-radius: 999px;
  border: 1px solid var(--nk-line); background: #fff;
  font-size: .74rem; font-weight: 650; color: var(--nk-ink-soft); cursor: pointer;
}
.nk-copy:hover { border-color: var(--nk-ink-soft); color: var(--nk-ink); }
.nk-copy.is-done { background: var(--nk-jade-50); border-color: var(--nk-jade-200); color: var(--nk-jade-700); }

/* --------------------------------------------------------------------------
   Multi-select dropdown (amenities)
   A native multi-select expects ctrl-click, which nobody knows. This is the
   same <select> underneath - it just looks and behaves like a menu.
   -------------------------------------------------------------------------- */
.nk-multi { position: relative; }
.nk-multi select { position: absolute; opacity: 0; pointer-events: none; height: 0; width: 0; }
.nk-multi-btn {
  display: flex; align-items: center; gap: .5rem; width: 100%;
  background: var(--nk-surface);
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-r-sm);
  padding: .62rem .8rem;
  font-size: .925rem; color: var(--nk-ink); text-align: left; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.nk-multi-btn:hover { border-color: #d4d1c9; }
.nk-multi[data-open] .nk-multi-btn {
  border-color: var(--nk-jade-500);
  box-shadow: 0 0 0 3px var(--nk-jade-100);
}
.nk-multi-btn .nk-multi-label { flex: 1; min-width: 0; }
.nk-multi-btn .nk-multi-label.is-empty { color: var(--nk-ink-mute); }
.nk-multi-btn::after {
  content: ""; width: 8px; height: 8px; flex: none;
  border-right: 1.6px solid var(--nk-ink-mute);
  border-bottom: 1.6px solid var(--nk-ink-mute);
  transform: translateY(-2px) rotate(45deg); transition: transform .18s ease;
}
.nk-multi[data-open] .nk-multi-btn::after { transform: translateY(2px) rotate(-135deg); }

.nk-multi-menu {
  position: absolute; z-index: 60; top: calc(100% + .35rem); left: 0; right: 0;
  background: #fff; border: 1px solid var(--nk-line-soft);
  border-radius: var(--nk-r); box-shadow: var(--nk-shadow-lg);
  padding: .4rem; max-height: 16rem; overflow-y: auto; overscroll-behavior: contain;
}
.nk-multi-menu[hidden] { display: none; }
.nk-multi-opt {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .6rem; border-radius: 9px;
  font-size: .9rem; color: var(--nk-ink); cursor: pointer;
}
.nk-multi-opt:hover { background: #f5f4f0; }
.nk-multi-opt input { flex: none; }

.nk-chiprow { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }

/* --------------------------------------------------------------------------
   Photo requirement meter
   -------------------------------------------------------------------------- */
.nk-photobar { display: flex; gap: .3rem; margin-top: .6rem; }
.nk-photobar i {
  flex: 1; height: 5px; border-radius: 999px; background: var(--nk-line);
  transition: background .2s ease;
}
.nk-photobar i.is-on { background: var(--nk-jade-500); }

/* Disclosure: a secondary form that stays folded until it is wanted. */
.nk-fold > summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; gap: .4rem;
  font-size: .875rem; font-weight: 650; color: var(--nk-ink);
}
.nk-fold > summary::-webkit-details-marker { display: none; }
.nk-fold > summary::after {
  content: ""; width: 8px; height: 8px; margin-left: auto;
  border-right: 1.8px solid var(--nk-ink-mute);
  border-bottom: 1.8px solid var(--nk-ink-mute);
  transform: rotate(45deg); transition: transform .18s ease;
}
.nk-fold[open] > summary::after { transform: rotate(-135deg); }
.nk-fold > summary:hover { color: var(--nk-jade-700); }

/* --------------------------------------------------------------------------
   Messages: two panes, one page
   The conversation list stays put while a thread is open, so you can see who
   else is waiting. On a phone there is only room for one, so the panes swap.
   -------------------------------------------------------------------------- */
.nk-chat {
  display: grid;
  grid-template-columns: 21rem 1fr;
  height: calc(100vh - var(--nk-header-h) - 3rem);
  min-height: 30rem;
  max-height: 46rem;
  background: #fff;
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-r-lg);
  overflow: hidden;
  box-shadow: var(--nk-shadow-sm);
}

.nk-chat-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--nk-line-soft); }
.nk-chat-main { display: flex; flex-direction: column; min-height: 0; }

.nk-chat-head {
  flex: none;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--nk-line-soft);
  background: #fff;
}

.nk-chat-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

.nk-chat-row {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .8rem 1.1rem;
  border-bottom: 1px solid var(--nk-line-soft);
  transition: background .12s ease;
}
.nk-chat-row:hover { background: #faf9f6; }
.nk-chat-row.is-active { background: var(--nk-jade-50); box-shadow: inset 3px 0 0 var(--nk-jade-600); }
.nk-chat-row[hidden] { display: none; }

.nk-chat-unread {
  flex: none; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--nk-jade-600); color: #fff;
  font-size: 11px; font-weight: 800; display: grid; place-items: center;
}

.nk-chat-body {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 1px 1px, rgba(23,33,30,.045) 1px, transparent 0) 0 0 / 22px 22px,
    var(--nk-paper);
  display: flex; flex-direction: column; gap: .55rem;
}
.nk-chat-day {
  align-self: center; margin-bottom: .5rem;
  padding: .25rem .7rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--nk-line-soft);
  font-size: .72rem; font-weight: 600; color: var(--nk-ink-mute);
}

.nk-bubble-row { display: flex; }
.nk-bubble-row.is-mine { justify-content: flex-end; }
.nk-bubble {
  /* A column, not absolute positioning: the time gets its own line box, so a
     long last line can never end up sitting underneath it. */
  display: flex;
  flex-direction: column;
  max-width: min(32rem, 78%);
  padding: .6rem .85rem .5rem;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  border: 1px solid var(--nk-line-soft);
  box-shadow: var(--nk-shadow-sm);
  font-size: .92rem; line-height: 1.45; color: var(--nk-ink);
  overflow-wrap: anywhere;
}
.is-mine .nk-bubble {
  background: var(--nk-jade-50);
  border-color: var(--nk-jade-100);
  border-radius: 14px 14px 4px 14px;
}
.nk-bubble-note { margin-top: .35rem; font-size: .78rem; color: var(--nk-ink-mute); }
.nk-bubble p { margin: 0; }
.nk-bubble-time {
  align-self: flex-end;
  margin-top: .2rem;
  font-size: .68rem;
  line-height: 1.2;
  color: var(--nk-ink-mute);
  white-space: nowrap;
}

.nk-chat-compose { flex: none; padding: .9rem 1.1rem; border-top: 1px solid var(--nk-line-soft); background: #fff; }
.nk-chat-compose textarea { min-height: 3rem; }
.nk-chat-send {
  flex: none; width: 42px; height: 42px; border-radius: 999px;
  background: var(--nk-jade-600); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}
.nk-chat-send:hover { background: var(--nk-jade-700); }
.nk-chat-send:active { transform: scale(.94); }

.nk-chat-blank {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  background:
    radial-gradient(circle at 1px 1px, rgba(23,33,30,.045) 1px, transparent 0) 0 0 / 22px 22px,
    var(--nk-paper);
}

.nk-chat-back {
  display: none; width: 34px; height: 34px; flex: none;
  border-radius: 999px; place-items: center; color: var(--nk-ink);
}
.nk-chat-back:hover { background: #f3f2ed; }

@media (max-width: 899px) {
  .nk-chat { grid-template-columns: 1fr; height: calc(100vh - var(--nk-header-h) - 2rem); max-height: none; }
  .nk-chat-list { border-right: 0; }
  .nk-chat[data-open] .nk-chat-list { display: none; }
  .nk-chat:not([data-open]) .nk-chat-main { display: none; }
  .nk-chat-back { display: grid; }
  .nk-bubble { max-width: 86%; }
}

/* --------------------------------------------------------------------------
   Phone field with an embedded country code
   -------------------------------------------------------------------------- */
.nk-tel { position: relative; display: flex; align-items: stretch; }
.nk-tel .nk-input {
  border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 0;
  flex: 1; min-width: 0;
}
.nk-tel-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: 0 .6rem 0 .8rem;
  border: 1px solid var(--nk-line);
  border-right: 1px solid var(--nk-line-soft);
  border-radius: var(--nk-r-sm) 0 0 var(--nk-r-sm);
  background: #faf9f6; color: var(--nk-ink);
  font-size: .9rem; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.nk-tel-btn:hover { background: #f3f2ed; }
.nk-tel-flag { font-size: 1.05rem; line-height: 1; letter-spacing: -.04em; }
.nk-tel-caret { width: 12px; height: 12px; color: var(--nk-ink-mute); }
.nk-tel:focus-within .nk-tel-btn { border-color: var(--nk-jade-500); }

.nk-tel-menu {
  position: absolute; top: calc(100% + .35rem); left: 0; z-index: 70;
  width: min(22rem, 100%);
  background: #fff; border: 1px solid var(--nk-line-soft);
  border-radius: var(--nk-r); box-shadow: var(--nk-shadow-lg);
  padding: .5rem; display: flex; flex-direction: column; gap: .4rem;
}
.nk-tel-menu[hidden] { display: none; }
.nk-tel-search { width: 100%; }
.nk-tel-list { max-height: 15rem; overflow-y: auto; overscroll-behavior: contain; }
.nk-tel-item {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  padding: .5rem .6rem; border: 0; background: none; border-radius: 9px;
  font-size: .88rem; text-align: left; cursor: pointer; color: var(--nk-ink);
}
.nk-tel-item:hover, .nk-tel-item.is-active { background: #f3f2ed; }
.nk-tel-item .nk-tel-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nk-tel-item .nk-tel-dial { color: var(--nk-ink-mute); font-variant-numeric: tabular-nums; }
.nk-tel-empty { padding: .8rem .6rem; font-size: .85rem; color: var(--nk-ink-mute); }

/* --------------------------------------------------------------------------
   Live password checklist
   -------------------------------------------------------------------------- */
.nk-pwrules { margin-top: .6rem; display: grid; gap: .3rem; }
.nk-pwrule {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: var(--nk-ink-mute);
  transition: color .15s ease;
}
.nk-pwrule .nk-pwtick {
  width: 16px; height: 16px; flex: none; border-radius: 999px;
  border: 1.5px solid var(--nk-line); background: #fff;
  display: grid; place-items: center;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.nk-pwrule .nk-pwtick svg { width: 10px; height: 10px; opacity: 0; transition: opacity .15s ease; }
.nk-pwrule.is-met { color: var(--nk-jade-700); }
.nk-pwrule.is-met .nk-pwtick {
  background: var(--nk-jade-600); border-color: var(--nk-jade-600); transform: scale(1.05);
}
.nk-pwrule.is-met .nk-pwtick svg { opacity: 1; color: #fff; }

.nk-pwmeter { height: 4px; border-radius: 999px; background: var(--nk-line-soft); margin-top: .65rem; overflow: hidden; }
.nk-pwmeter span {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: var(--nk-clay); transition: width .25s ease, background .25s ease;
}
.nk-pwmeter[data-score="2"] span { background: #d8ac45; }
.nk-pwmeter[data-score="3"] span { background: var(--nk-jade-400); }
.nk-pwmeter[data-score="4"] span { background: var(--nk-jade-600); }

/* --------------------------------------------------------------------------
   Page containers
   Four widths, one shared gutter. Because every page uses the same padding,
   the content edge lines up with the logo in the header at any screen size.
   -------------------------------------------------------------------------- */
.nk-wrap, .nk-wrap-md, .nk-wrap-sm, .nk-wrap-xs {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .nk-wrap, .nk-wrap-md, .nk-wrap-sm, .nk-wrap-xs { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .nk-wrap, .nk-wrap-md, .nk-wrap-sm, .nk-wrap-xs { padding-inline: 2.5rem; } }
.nk-wrap    { max-width: 1440px; }  /* grids, dashboards, wide tables */
.nk-wrap-md { max-width: 1120px; }  /* listing detail, statements */
.nk-wrap-sm { max-width: 760px;  }  /* forms and reading pages */
.nk-wrap-xs { max-width: 520px;  }  /* single short form, centred */

/* --------------------------------------------------------------------------
   Modal — centred, capped at the viewport, body scrolls on its own
   -------------------------------------------------------------------------- */
.nk-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(23,33,30,.55);
  display: grid; place-items: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity .18s ease;
}
.nk-backdrop[hidden] { display: none; }
.nk-backdrop.is-open { opacity: 1; }

.nk-modal {
  width: 100%; max-width: 34rem;
  max-height: min(88vh, 54rem);
  background: #fff;
  border-radius: var(--nk-r-lg);
  box-shadow: var(--nk-shadow-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(10px) scale(.985);
  transition: transform .2s cubic-bezier(.2,.7,.3,1);
}
.nk-backdrop.is-open .nk-modal { transform: none; }
.nk-modal.is-wide { max-width: 62rem; max-height: min(92vh, 60rem); }
.nk-modal.is-wide .nk-modal-body { padding: 2rem 2.25rem; }

.nk-modal-head {
  position: relative; flex: none;
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: .75rem 3.5rem;
  border-bottom: 1px solid var(--nk-line-soft);
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: .95rem;
  text-align: center;
}
.nk-modal-close {
  position: absolute; left: .7rem; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 999px;
  display: grid; place-items: center; color: var(--nk-ink); cursor: pointer;
}
.nk-modal-close:hover { background: #f3f2ed; }

.nk-modal-body {
  overflow-y: auto; overscroll-behavior: contain;
  padding: 1.75rem;
  -webkit-overflow-scrolling: touch;
}
/* Inside a modal the page chrome is redundant: drop the outer gutters. */
.nk-modal-body > .nk-wrap,
.nk-modal-body > .nk-wrap-md,
.nk-modal-body > .nk-wrap-sm,
.nk-modal-body > .nk-wrap-xs { padding-inline: 0; max-width: none; }

.nk-modal-busy { padding: 3.5rem; display: grid; place-items: center; }
.nk-spinner {
  width: 26px; height: 26px; border-radius: 999px;
  border: 2.5px solid var(--nk-line); border-top-color: var(--nk-jade-600);
  animation: nk-spin .7s linear infinite;
}
@keyframes nk-spin { to { transform: rotate(360deg); } }

body.nk-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   Section rhythm & misc
   -------------------------------------------------------------------------- */
.nk-eyebrow {
  font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase;
  color: var(--nk-jade-600);
}
.nk-section-title { font-size: 1.5rem; font-weight: 750; }
.nk-quiet { color: var(--nk-ink-mute); }
.nk-linkish { color: var(--nk-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nk-linkish:hover { color: var(--nk-jade-700); }

.nk-note {
  border-radius: var(--nk-r); padding: .9rem 1.1rem; font-size: .875rem;
  border: 1px solid; display: flex; gap: .65rem; align-items: flex-start;
}
.nk-note-info    { background: var(--nk-jade-50); border-color: var(--nk-jade-100); color: var(--nk-jade-800); }
.nk-note-warn    { background: #fbf4e2; border-color: #f0e3c2; color: #6d5008; }
.nk-note-error   { background: #fbefeb; border-color: #f2ddd5; color: #8c422c; }
.nk-note-success { background: var(--nk-jade-50); border-color: var(--nk-jade-200); color: var(--nk-jade-800); }

.nk-empty {
  border: 1px dashed var(--nk-line); border-radius: var(--nk-r-lg);
  background: #fff; padding: 3.5rem 1.5rem; text-align: center;
}

.nk-stat { background: #fff; border: 1px solid var(--nk-line); border-radius: var(--nk-r); padding: 1.1rem 1.25rem; }
.nk-stat dt { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--nk-ink-mute); }
.nk-stat dd { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.6rem; font-weight: 750; margin-top: .25rem; letter-spacing: -.03em; }

.nk-footer { background: #f4f3ef; border-top: 1px solid var(--nk-line); }
.nk-footer a:hover { color: var(--nk-ink); text-decoration: underline; text-underline-offset: 3px; }


/* ---- Agreement document ------------------------------------------------
   The tenancy agreement, shown to a hunter on the advert and to both parties
   when they sign. It is set as paper inside a viewer frame because that is
   what it becomes in production: the landlord uploads a PDF and it is shown
   here. Nothing in the panel is editable -- there are no fields, and the
   server re-renders the text on every request. */
.nk-agreement-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 1.5rem; padding: 1rem 1.1rem;
  background: var(--nk-paper);
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-r);
}

.nk-pdf {
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-r);
  overflow: hidden;
  background: #3c3f42;
  box-shadow: var(--nk-shadow-sm);
}

.nk-pdf-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem .85rem;
  background: #2f3234;
  color: #e8e6e1;
  font-size: .76rem;
  border-bottom: 1px solid #24272a;
}
.nk-pdf-file { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; min-width: 0; }
.nk-pdf-file svg { flex: none; opacity: .8; }
.nk-pdf-pages { opacity: .7; white-space: nowrap; }

.nk-pdf-scroll {
  max-height: 30rem;
  overflow: auto;
  padding: 1.1rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
  overscroll-behavior: contain;
}
.nk-pdf-tall .nk-pdf-scroll { max-height: 44rem; }

/* One sheet. A4 is 1:1.414, and the padding is set in the same proportion so
   it reads as a printed page rather than as a white box. */
.nk-sheet {
  width: 100%;
  max-width: 46rem;
  background: #fff;
  color: #1e2422;
  padding: 3rem 3.2rem 2.4rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.35), 0 10px 24px rgba(0,0,0,.28);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .86rem;
  line-height: 1.72;
  display: flex; flex-direction: column;
  /* A4 at this width. A short page then ends in white space with its footer at
     the bottom, which is what makes the break read as a page rather than as a
     paragraph gap. */
  min-height: 65rem;
}
@media (max-width: 640px) {
  .nk-sheet { padding: 1.9rem 1.4rem 1.5rem; font-size: .82rem; min-height: 0; }
}

.nk-sheet-head { text-align: center; border-bottom: 2px solid #1e2422; padding-bottom: .9rem; margin-bottom: 1.6rem; }
.nk-sheet-title {
  font-size: 1.12rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin: 0;
}
.nk-sheet-sub { font-size: .78rem; font-style: italic; color: #55605c; margin: .35rem 0 0; }

.nk-clause { margin-bottom: 1.25rem; break-inside: avoid; }
.nk-clause-head {
  font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  margin: 0 0 .45rem; display: flex; gap: .5rem;
}
.nk-clause-no { font-variant-numeric: tabular-nums; }
.nk-clause-text { margin: 0 0 .55rem; text-align: justify; hyphens: auto; }
.nk-clause-text:last-child { margin-bottom: 0; }

.nk-clause-rows { display: grid; grid-template-columns: max-content 1fr; gap: .15rem .9rem; margin: 0 0 .6rem; }
.nk-clause-rows dt { font-weight: 700; }
.nk-clause-rows dd { margin: 0; }
@media (max-width: 480px) {
  .nk-clause-rows { grid-template-columns: 1fr; gap: 0 0; }
  .nk-clause-rows dd { margin-bottom: .4rem; }
}

.nk-sheet-closing { margin: 1.4rem 0 0; font-style: italic; color: #46524e; }

.nk-sign-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem;
  margin-top: 2.2rem; break-inside: avoid;
}
@media (max-width: 480px) { .nk-sign-block { grid-template-columns: 1fr; gap: 1.6rem; } }
.nk-sign-mark { height: 3.1rem; display: flex; align-items: flex-end; }
.nk-sign-mark img { max-height: 3.1rem; max-width: 100%; mix-blend-mode: multiply; }
.nk-sign-rule { border-bottom: 1px solid #1e2422; }
.nk-sign-role { font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: #6b756f; margin-top: .3rem; }
.nk-sign-name { font-weight: 700; }
.nk-sign-blank { font-weight: 400; color: #9aa39f; font-style: italic; }
.nk-sign-date { font-size: .76rem; color: #6b756f; }

.nk-sheet-foot {
  margin-top: auto; padding-top: 1.6rem;
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: .68rem; color: #8b938f; font-family: "Inter", sans-serif;
}

.nk-sheet-raw {
  margin: 0; white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem; line-height: 1.7; color: #37403c;
}

@media print {
  .nk-pdf { border: 0; background: none; box-shadow: none; }
  .nk-pdf-bar, .nk-agreement-cta, .nk-sigpad { display: none; }
  .nk-pdf-scroll { max-height: none; overflow: visible; padding: 0; gap: 0; }
  .nk-sheet { box-shadow: none; max-width: none; break-after: page; }
  .nk-sheet:last-child { break-after: auto; }
}

/* ---- Signature pad ---------------------------------------------------- */
.nk-sigpad {
  position: relative;
  border: 1px dashed var(--nk-line);
  border-radius: var(--nk-r-sm);
  background: #fff;
  touch-action: none;          /* or drawing scrolls the page on a phone */
}
.nk-sigpad canvas { display: block; width: 100%; height: 150px; border-radius: var(--nk-r-sm); cursor: crosshair; }
.nk-sigpad-hint {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none; color: var(--nk-ink-mute); font-size: .82rem;
}
.nk-sigpad.is-drawn .nk-sigpad-hint { display: none; }

.nk-sig-shot {
  max-height: 68px; width: auto;
  /* Signatures are drawn in ink on white; drop the white so the mark sits on
     whatever the card behind it is. */
  mix-blend-mode: multiply;
}

@media print {
  .nk-doc { max-height: none; overflow: visible; border: 0; box-shadow: none; padding: 0; }
  .nk-agreement-cta, .nk-sigpad { display: none; }
}


/* ---- Area filters ------------------------------------------------------
   A plain GET form on the neighbourhood guides, so "the good parts of
   Lavington under 40k" is a link somebody can send to a friend. */
.nk-areafilters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: .75rem 1rem;
  align-items: end;
  padding: 1rem 1.1rem;
  background: var(--nk-paper);
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-r);
}
.nk-areafilter { min-width: 0; }
.nk-areafilter-label {
  display: block; margin-bottom: .3rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; color: var(--nk-ink-mute);
}
.nk-areafilter-actions { display: flex; gap: .5rem; align-items: center; }


/* ---- Area suggestions --------------------------------------------------
   The dropdown under the location fields. Anchored to the field, so the
   wrapper it sits in has to establish a positioning context. */
.nk-suggest {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + .25rem);
  background: #fff;
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-r-sm);
  box-shadow: var(--nk-shadow);
  overflow: hidden;
  max-height: 15rem; overflow-y: auto;
}
.nk-suggest-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
  width: 100%; text-align: left;
  padding: .5rem .75rem;
  background: none; border: 0; cursor: pointer;
  border-bottom: 1px solid var(--nk-line-soft);
}
.nk-suggest-row:last-child { border-bottom: 0; }
.nk-suggest-row:hover, .nk-suggest-row.is-active { background: var(--nk-jade-50); }
.nk-suggest-name { font-weight: 600; color: var(--nk-ink); font-size: .9rem; }
.nk-suggest-note { font-size: .74rem; color: var(--nk-ink-mute); white-space: nowrap; }

/* _form.html wraps every field in a bare div; the dropdown hangs off that. */
input[data-area-suggest] { position: relative; }
input[data-area-suggest] ~ .nk-suggest { position: absolute; }
.nk-field-anchor, form > div:has(> input[data-area-suggest]) { position: relative; }


/* ---- Plans and pricing ------------------------------------------------- */
.nk-plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-r-lg);
  padding: 1.4rem 1.25rem;
  display: flex; flex-direction: column;
}
.nk-plan.is-featured { border: 2px solid var(--nk-jade-500); box-shadow: var(--nk-shadow); }
.nk-plan.is-current { border-color: var(--nk-jade-300); background: var(--nk-jade-50); }
.nk-plan-flag {
  position: absolute; top: -.7rem; left: 1.25rem;
  background: var(--nk-jade-600); color: #fff;
  font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: .2rem .5rem; border-radius: 999px;
}
.nk-plan-price {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; margin-top: .35rem;
}
.nk-plan-per { font-size: .8rem; font-weight: 600; color: var(--nk-ink-mute); letter-spacing: 0; }
.nk-plan-points { margin-top: .9rem; font-size: .84rem; color: var(--nk-ink-soft); }
.nk-plan-points li { padding: .25rem 0; border-bottom: 1px solid var(--nk-line-soft); }
.nk-plan-points li:last-child { border-bottom: 0; }
.nk-plan .nk-btn { margin-top: auto; }

/* Wide tables scroll inside their own box rather than the page. */
.nk-table-scroll { overflow-x: auto; border: 1px solid var(--nk-line); border-radius: var(--nk-r); background: #fff; }

.nk-compare { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 42rem; }
.nk-compare th, .nk-compare td { padding: .6rem .85rem; text-align: center; }
.nk-compare thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--nk-paper); border-bottom: 1px solid var(--nk-line);
  font-weight: 800;
}
.nk-compare thead th.is-current { background: var(--nk-jade-50); color: var(--nk-jade-800); }
.nk-compare-price { display: block; font-size: .72rem; font-weight: 600; color: var(--nk-ink-mute); }
.nk-compare tbody th {
  text-align: left; font-weight: 600; color: var(--nk-ink-soft);
  border-bottom: 1px solid var(--nk-line-soft);
  position: sticky; left: 0; background: #fff;
}
.nk-compare tbody td { border-bottom: 1px solid var(--nk-line-soft); }
.nk-compare tbody tr:nth-child(even) th,
.nk-compare tbody tr:nth-child(even) td { background: #fcfcfa; }
.nk-compare-yes { color: var(--nk-jade-600); display: inline-flex; }
.nk-compare-no { color: #c9c6be; }

/* Visible to a screen reader, not on screen: the ticks need a word. */
.nk-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* ---- Issued documents --------------------------------------------------
   A statement that gets filed, printed and handed across a desk. It reuses the
   .nk-sheet paper from the agreement, then adds the letterhead, the analysis
   blocks and the authentication footer. Everything outside the sheet is marked
   no-print: what comes out of the printer should be the document and nothing
   else. */
.nk-doc-actions {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
}

.nk-sheet-doc {
  margin: 0 auto;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .78rem;
  line-height: 1.6;
  color: #26302c;
  min-height: 0;              /* a statement is as long as it needs to be */
  padding: 2.4rem 2.6rem 2rem;
}
@media (max-width: 640px) { .nk-sheet-doc { padding: 1.5rem 1.1rem; } }

/* Letterhead */
.nk-lh {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--nk-jade-600);
}
.nk-lh-brand { display: flex; align-items: center; gap: .7rem; }
.nk-lh-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; color: var(--nk-ink);
}
.nk-lh-name em { font-style: normal; color: var(--nk-jade-600); }
.nk-lh-tag { font-size: .66rem; color: var(--nk-ink-mute); letter-spacing: .04em; text-transform: uppercase; }
.nk-lh-meta { text-align: right; font-size: .68rem; }
.nk-lh-serial {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .82rem; font-weight: 700; color: var(--nk-jade-700); letter-spacing: .02em;
}
.nk-lh-meta dl { display: grid; grid-template-columns: auto auto; gap: 0 .6rem; margin-top: .35rem; }
.nk-lh-meta dt { color: var(--nk-ink-mute); text-align: right; }
.nk-lh-meta dd { margin: 0; font-weight: 600; text-align: right; }

.nk-doc-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; margin: 1.4rem 0 .1rem;
}
.nk-doc-sub { color: var(--nk-ink-mute); font-size: .8rem; margin: 0 0 .4rem; }

.nk-doc-section { margin-top: 1.6rem; break-inside: avoid; }
.nk-doc-h2 {
  font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--nk-jade-700); padding-bottom: .3rem; margin: 0 0 .7rem;
  border-bottom: 1px solid var(--nk-line);
}

/* Headline figures */
.nk-figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
@media (max-width: 640px) { .nk-figs { grid-template-columns: repeat(2, 1fr); } }
.nk-figs > div {
  border: 1px solid var(--nk-line); border-radius: 8px; padding: .55rem .7rem; background: #fcfcfa;
}
.nk-figs span { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; color: var(--nk-ink-mute); }
.nk-figs strong {
  display: block; font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; margin-top: .1rem;
}
.nk-figs strong.is-short, .num.is-short { color: var(--nk-clay); }
.nk-doc-note { font-size: .7rem; color: var(--nk-ink-mute); margin: .6rem 0 0; }

/* Written findings */
.nk-findings { display: grid; gap: .5rem; }
.nk-findings li { border-left: 3px solid var(--nk-line); padding: .35rem 0 .35rem .7rem; }
.nk-findings li.is-good { border-left-color: var(--nk-jade-500); }
.nk-findings li.is-bad { border-left-color: var(--nk-clay); }
.nk-findings strong { display: block; font-size: .8rem; }
.nk-findings span { color: var(--nk-ink-soft); }

.nk-chart { margin: .8rem 0 1rem; break-inside: avoid; }
.nk-chart-narrow { width: 150px; flex: none; }
.nk-mix { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem; }
.nk-mix .nk-doc-table { flex: 1; min-width: 14rem; }

/* Tables inside a document */
.nk-doc-table { width: 100%; border-collapse: collapse; font-size: .74rem; }
.nk-doc-table th, .nk-doc-table td { padding: .38rem .5rem; text-align: left; }
.nk-doc-table thead th {
  border-bottom: 1px solid var(--nk-ink); font-size: .64rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--nk-ink-mute); font-weight: 700;
}
.nk-doc-table tbody th { font-weight: 600; }
.nk-doc-table tbody tr { border-bottom: 1px solid var(--nk-line-soft); }
.nk-doc-table tfoot th, .nk-doc-table tfoot td {
  border-top: 1.5px solid var(--nk-ink); font-weight: 800; padding-top: .45rem;
}
.nk-doc-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.nk-doc-table-tight th, .nk-doc-table-tight td { padding: .25rem .4rem; }
.nk-doc-table-list th, .nk-doc-table-list td { padding: .6rem .9rem; }
.nk-doc-empty { text-align: center; color: var(--nk-ink-mute); padding: 1.6rem 0; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.break { word-break: break-all; }

/* Authentication block */
.nk-auth {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem;
  margin-top: 2rem; padding-top: 1rem; border-top: 2px solid var(--nk-jade-600);
  break-inside: avoid;
}
@media (max-width: 720px) { .nk-auth { grid-template-columns: 1fr; } }
.nk-auth-qr { text-align: center; }
.nk-auth-qr span {
  display: block; font-size: .6rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--nk-ink-mute); margin-top: .25rem;
}
.nk-auth-body p { font-size: .72rem; color: var(--nk-ink-soft); margin: 0 0 .5rem; }
.nk-auth-facts { display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; font-size: .72rem; }
.nk-auth-facts dt { color: var(--nk-ink-mute); }
.nk-auth-facts dd { margin: 0; font-weight: 600; }
.nk-auth-small { font-size: .64rem !important; color: var(--nk-ink-mute) !important; margin-top: .5rem !important; }
.nk-auth-sign { text-align: center; min-width: 12rem; }
.nk-seal { width: 190px; height: 74px; }
.nk-auth-rule { border-bottom: 1px solid var(--nk-ink); margin-top: -.4rem; }
.nk-auth-role { font-size: .6rem; text-transform: uppercase; letter-spacing: .07em; color: var(--nk-ink-mute); margin-top: .25rem; }
.nk-auth-name { font-weight: 700; font-size: .76rem; }
.nk-auth-date { font-size: .68rem; color: var(--nk-ink-mute); }

.nk-doc-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  margin-top: 1.2rem; padding-top: .6rem; border-top: 1px solid var(--nk-line);
  font-size: .6rem; color: var(--nk-ink-mute);
}

/* Verification page */
.nk-verify-head {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem; border-radius: var(--nk-r); border: 2px solid;
}
.nk-verify-head.is-valid { background: var(--nk-jade-50); border-color: var(--nk-jade-300); color: var(--nk-jade-800); }
.nk-verify-head.is-void { background: #fbefeb; border-color: #e8c4b8; color: #8c422c; }
.nk-verify-head h1 { font-size: 1.05rem; font-weight: 800; margin: 0; }
.nk-verify-head p { font-size: .82rem; margin: .15rem 0 0; opacity: .85; }
.nk-verify-facts { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.2rem; font-size: .84rem; }
.nk-verify-facts dt { color: var(--nk-ink-mute); }
.nk-verify-facts dd { margin: 0; font-weight: 600; }

@media print {
  /* Only the document prints. */
  .nk-header, .nk-footer, .nk-doc-actions, .nk-noprint, .nk-backdrop, nav { display: none !important; }
  body { background: #fff !important; }
  .nk-wrap-md { max-width: none; padding: 0 !important; }
  .nk-sheet-doc { box-shadow: none; border: 0; max-width: none; padding: 0; font-size: 9.6pt; }
  .nk-doc-section, .nk-auth, .nk-chart, .nk-figs { break-inside: avoid; }
  a { text-decoration: none; color: inherit; }
}


/* ---- Encrypted download ------------------------------------------------
   The panel that asks for the account password before a copy is saved. */
.nk-lockbox {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(23, 33, 30, .45);
}
.nk-lockbox[hidden] { display: none; }
.nk-lockbox-panel {
  width: 100%; max-width: 26rem;
  background: #fff; border-radius: var(--nk-r-lg); padding: 1.5rem;
  box-shadow: var(--nk-shadow-lg);
}
@media print { .nk-lockbox { display: none !important; } }


/* ---- Tenants, gathered by building --------------------------------------
   One card per property: its totals, the reminder schedule that governs it,
   then its tenants. The head and the schedule bar stay visible while the
   table scrolls sideways on a narrow screen. */
.nk-block {
  background: #fff;
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-r-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.nk-block-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.1rem 1.25rem;
}
.nk-block-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; margin: 0;
}
.nk-block-where { font-size: .78rem; color: var(--nk-ink-mute); margin: .15rem 0 0; }

.nk-block-figures { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.nk-block-figures > div { min-width: 4.5rem; }
.nk-block-figures span {
  display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--nk-ink-mute);
}
.nk-block-figures strong {
  display: block; font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem; font-weight: 800; letter-spacing: -.02em; margin-top: .1rem;
}

.nk-block-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1rem;
  padding: .6rem 1.25rem;
  background: var(--nk-paper);
  border-top: 1px solid var(--nk-line-soft);
  border-bottom: 1px solid var(--nk-line-soft);
}
.nk-block-bar em { font-style: normal; font-weight: 700; color: var(--nk-ink-soft); }

/* On when the schedule is running, hollow when it is not. */
/* On or off, beside a line of text. Named apart from .nk-dot, which is the
   count on the notification bell: they were the same class, this rule came
   later in the file, and the count was being rendered as an eight pixel circle
   with a two digit number crammed into it. */
.nk-statedot {
  display: inline-block; width: .5rem; height: .5rem; border-radius: 50%;
  border: 1.5px solid var(--nk-ink-mute); margin-right: .35rem; vertical-align: middle;
}
.nk-statedot.is-on { background: var(--nk-jade-500); border-color: var(--nk-jade-500); }

/* ---- Picking which schedule to edit ------------------------------------ */
.nk-schedule-pick {
  display: block; padding: .55rem .75rem; border-radius: var(--nk-r-sm);
  border: 1px solid transparent;
}
.nk-schedule-pick:hover { background: var(--nk-paper); }
.nk-schedule-pick.is-on { background: var(--nk-jade-50); border-color: var(--nk-jade-200); }
.nk-schedule-pick span { display: block; font-size: .88rem; font-weight: 600; color: var(--nk-ink); }
.nk-schedule-pick em {
  display: block; font-style: normal; font-size: .72rem; color: var(--nk-ink-mute);
}
.nk-schedule-pick.is-on em { color: var(--nk-jade-700); }


/* ---- Caretaker types ---------------------------------------------------- */
.nk-levels { display: grid; gap: .6rem; margin: 0 0 1rem; }
.nk-levels > div {
  border-left: 3px solid var(--nk-jade-200); padding: .3rem 0 .3rem .7rem;
}
.nk-levels dt { font-weight: 700; font-size: .84rem; }
.nk-levels dd { margin: 0; font-size: .78rem; color: var(--nk-ink-mute); }


/* ---- Paying rent --------------------------------------------------------
   The manual instructions, set large. Somebody is holding a phone in one hand
   and reading this with the other, so the number they have to key in is the
   biggest thing on the page. */
.nk-paycard {
  background: #fff; border: 2px solid var(--nk-jade-500); border-radius: var(--nk-r-lg);
  padding: 1.25rem 1.35rem;
}
.nk-paycard-head {
  font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--nk-jade-700); margin-bottom: .8rem;
}
.nk-payfacts { display: grid; gap: .85rem; margin: 0; }
.nk-payfacts > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; }
.nk-payfacts dt {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--nk-ink-mute); min-width: 9rem;
}
.nk-payfacts dd { margin: 0; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.nk-payfacts-tight { gap: .3rem; }
.nk-payfacts-tight dt { font-size: .7rem; }

.nk-paybig {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.5rem; font-weight: 800; letter-spacing: .02em; color: var(--nk-ink);
}
@media (max-width: 480px) { .nk-paybig { font-size: 1.3rem; } }

.nk-copy {
  border: 1px solid var(--nk-line); background: var(--nk-paper);
  border-radius: 999px; padding: .2rem .65rem;
  font-size: .72rem; font-weight: 700; color: var(--nk-ink-soft); cursor: pointer;
}
.nk-copy:hover { background: var(--nk-jade-50); border-color: var(--nk-jade-200); }
.nk-copy.is-done { background: var(--nk-jade-500); border-color: var(--nk-jade-500); color: #fff; }


/* ---- Settled payout details --------------------------------------------
   Greyed once rent has arrived, because changing where money goes should feel
   like a decision rather than a typo. The fieldset is genuinely disabled, so
   the browser will not submit it either. */
.nk-locked-fields { opacity: .62; }
.nk-locked-fields .nk-input,
.nk-locked-fields select { background: var(--nk-paper); cursor: not-allowed; }


/* An inquiry that had not been read when the page was opened. Marked once, on
   the way past, so it does not vanish the instant the page renders. */
.nk-inquiry-new { border-left: 3px solid var(--nk-jade-500); }


/* --------------------------------------------------------------------------
   Two panes on one line: properties and listings
   --------------------------------------------------------------------------
   The track is a real horizontal scroller with snap points, not a transform.
   That means a phone can swipe it, a trackpad can flick it, and with no
   JavaScript at all both panes are still reachable. The arrows and tabs drive
   the same scroll position rather than a separate piece of state. */
.nk-panes { --nk-pane-h: 60vh; }

.nk-panes-bar {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1rem;
}
.nk-pane-tabs {
  display: flex; gap: .25rem; padding: .25rem;
  background: var(--nk-paper); border: 1px solid var(--nk-line);
  border-radius: 999px;
}
.nk-pane-tab {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 0; background: none; cursor: pointer;
  padding: .4rem 1rem; border-radius: 999px;
  font-size: .875rem; font-weight: 600; color: var(--nk-ink-soft);
  transition: background .14s ease, color .14s ease;
}
.nk-pane-tab:hover { color: var(--nk-ink); }
.nk-pane-tab.is-on { background: #fff; color: var(--nk-ink); box-shadow: var(--nk-shadow-sm); }
.nk-pane-count {
  font-size: .7rem; font-weight: 700; line-height: 1;
  padding: .2rem .4rem; border-radius: 999px;
  background: var(--nk-jade-50); color: var(--nk-jade-700);
}
.nk-pane-tab.is-on .nk-pane-count { background: var(--nk-jade-500); color: #fff; }

.nk-pane-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; flex: none;
  border: 1px solid var(--nk-line); border-radius: 999px;
  background: #fff; color: var(--nk-ink-soft); cursor: pointer;
  transition: border-color .14s ease, color .14s ease, opacity .14s ease;
}
.nk-pane-arrow:hover:not(:disabled) { border-color: var(--nk-jade-300); color: var(--nk-ink); }
.nk-pane-arrow:disabled { opacity: .3; cursor: default; }

.nk-pane-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* No visible scrollbar under the panes: the tabs and arrows say where you
     are, and a bar there reads as part of the table below it. */
  scrollbar-width: none;
}
.nk-pane-track::-webkit-scrollbar { display: none; }

.nk-pane {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  /* Room for the focus ring on anything inside, which a flush edge clips. */
  padding: 2px;
}

/* The scroll that matters: a long list stays inside its pane rather than
   pushing the switcher off the top of the screen. */
.nk-pane-scroll {
  max-height: var(--nk-pane-h);
  overflow-y: auto;
  overflow-x: auto;
}


/* --------------------------------------------------------------------------
   Star ratings
   --------------------------------------------------------------------------
   Drawn over the select, which stays in the form and stays the thing that is
   submitted. Hidden with a class rather than removed, so the field keeps its
   name, its validation and its label. */
.nk-stars-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
}

.nk-stars { display: flex; align-items: center; gap: .15rem; }

.nk-star-btn {
  border: 0; background: none; padding: .1rem; cursor: pointer;
  color: var(--nk-line);
  line-height: 0;
  transition: color .12s ease, transform .12s ease;
}
.nk-star-btn svg { fill: currentColor; }
.nk-star-btn:hover { transform: scale(1.08); }
.nk-star-btn.is-on { color: #e8b53f; }
.nk-star-btn:focus-visible {
  outline: 2px solid var(--nk-jade-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.nk-stars-note {
  margin-left: .6rem;
  font-size: .8rem;
  color: var(--nk-ink-soft);
}


/* A signature kept on file, shown beside the offer to reuse it. Seeing the
   mark matters: "use my saved signature" means nothing if you cannot tell
   which one it is. */
.nk-saved-sig {
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-r);
  padding: .75rem .9rem;
  background: var(--nk-paper);
}
.nk-saved-sig-mark {
  display: block;
  margin-top: .4rem;
  max-height: 3.2rem;
  max-width: 12rem;
}


/* --------------------------------------------------------------------------
   Social links in the footer
   --------------------------------------------------------------------------
   Quiet until hovered. They are a way to reach us, not the point of the page,
   and a row of brand colours at the bottom of every screen would fight with
   everything above it. */
.nk-social { display: inline-flex; align-items: center; gap: .1rem; }

.nk-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: 999px;
  color: var(--nk-ink-soft);
  transition: color .14s ease, background .14s ease;
}
.nk-social-link:hover,
.nk-social-link:focus-visible {
  color: var(--nk-jade-700);
  background: var(--nk-jade-50);
}
.nk-social-link:focus-visible {
  outline: 2px solid var(--nk-jade-500);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
