/* ===== Strawberry Hilltop Warehouse - site stylesheet ===== */

/* ---- Self-hosted fonts ---- */

@font-face{font-family:'Archivo';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/Archivo-400.woff2') format('woff2');}
@font-face{font-family:'Archivo';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/Archivo-500.woff2') format('woff2');}
@font-face{font-family:'Archivo';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/Archivo-600.woff2') format('woff2');}
@font-face{font-family:'Archivo';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/Archivo-700.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:500;font-display:swap;src:url('assets/fonts/Fraunces-500i.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/Fraunces-400.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/Fraunces-600.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/Fraunces-700.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:900;font-display:swap;src:url('assets/fonts/Fraunces-900.woff2') format('woff2');}
@font-face{font-family:'Saira Condensed';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/SairaCondensed-500.woff2') format('woff2');}
@font-face{font-family:'Saira Condensed';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/SairaCondensed-600.woff2') format('woff2');}
@font-face{font-family:'Saira Condensed';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/SairaCondensed-700.woff2') format('woff2');}

/* ---- Design tokens ---- */

:root {
  /* New palette (Strawberry Hilltop / old-project design language) */
  --paper: #f2ead9;
  --paper-2: #e9dec8;
  --ink: #23190f;
  --ink-soft: #4a3c2c;
  --brick: #9a3b27;
  --brick-deep: #7a2c1d;
  --ochre: #c8922f;
  --ochre-deep: #a9781f;
  --orion-blue: #39496b;
  --line: #d3c4a3;
  --shadow: rgba(35,25,15,.18);

  /* Legacy token names remapped to the new palette so functional
     component styles recolor automatically. */
  --color-bg: #f2ead9;
  --color-text: #23190f;
  --color-text-muted: #4a3c2c;
  --color-hairline: #d3c4a3;
  --color-accent: #9a3b27;

  --font-sans: 'Archivo', sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-label: 'Saira Condensed', 'Archivo', sans-serif;

  --container-prose: 720px;
  --container-wide:  1240px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 6px;
  --radius-md: 9px;

  --shadow-sm: 0 1px 2px rgba(35,25,15,0.08);
}

/* ---- Reset ---- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* subtle paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}
/* keep real content above the grain */
.site-header, main, .site-footer { position: relative; z-index: 2; }

@media (max-width: 768px) {
  body { font-size: 16px; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { padding-left: 1.25em; }

/* ---- Typography ---- */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.display { font-size: clamp(46px, 6.4vw, 88px); font-weight: 900; letter-spacing: -0.025em; }
h1, .h1 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 900; letter-spacing: -0.02em; }
h2, .h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 600; }
h3, .h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; }

p { margin: 0 0 1em; }

.small { font-size: 14px; font-weight: 500; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 var(--space-3);
  display: block;
}

.subtitle {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--ink-soft);
  max-width: 46em;
  margin: 0;
}

/* ---- Layout containers ---- */

.container {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 28px;
}
.container--prose {
  max-width: var(--container-prose);
}
.section {
  padding: 84px 0;
}
.section--alt { background: var(--paper-2); }
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .container { padding: 0 20px; }
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(242,234,217,.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(35,25,15,0.06); }

.site-header__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
@media (max-width: 768px) {
  .site-header__inner { padding: 12px 20px; }
}

/* round brick "SH" mark */
.mark {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--brick);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 2px rgba(242,234,217,.35);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 13px;
  line-height: 1;
  text-decoration: none;
  color: inherit;
}
.wordmark__text { display: flex; flex-direction: column; }
.wordmark__main {
  font-family: var(--font-label);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}
.wordmark__main .dot { color: var(--brick); }
.wordmark__sub {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---- Nav ---- */

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-family: var(--font-label);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 9px 13px;
  border-radius: 7px;
  position: relative;
  transition: color 150ms ease, background 150ms ease;
}
.site-nav a:hover { color: var(--ink); background: rgba(154,59,39,.08); }
.site-nav a[aria-current="page"] { color: var(--brick-deep); }
.site-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 13px; right: 13px; bottom: 3px;
  height: 2px;
  background: var(--ochre);
}

/* header CTA button */
.nav-cta {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--brick);
  color: var(--paper);
  border: 0;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.18s;
  box-shadow: 0 2px 0 var(--brick-deep);
}
.nav-cta:hover { background: var(--brick-deep); transform: translateY(1px); box-shadow: 0 1px 0 var(--brick-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; display: block; }

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    top: 100%;            /* just below the header (robust to header height) */
    left: 0;
    right: 0;
    height: 100vh;        /* size by viewport, NOT bottom:0 - the header's backdrop-filter
                             makes it the containing block, which collapsed the old overlay */
    height: 100dvh;
    z-index: 200;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 40px 24px;
    transform: translateX(100%);
    transition: transform 250ms ease;
    overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    padding: 16px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .site-nav a[aria-current="page"]::after { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ---- Footer ---- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 0;
  padding: 54px 0 30px;
  margin-top: 96px;
}
.site-footer__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 700px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}
.site-footer .wordmark__main { color: var(--paper); }
.site-footer .wordmark__main .dot { color: var(--ochre); }
.site-footer .wordmark__sub { color: rgba(242,234,217,.6); }
.site-footer__contact { font-size: 14px; color: rgba(242,234,217,.7); line-height: 1.7; }
.site-footer__contact a { color: var(--paper); font-weight: 600; }
.site-footer__contact a:hover { color: var(--ochre); }
.site-footer__copyright {
  margin-top: var(--space-6);
  font-size: 12px;
  color: rgba(242,234,217,.5);
}

/* ---- Buttons ---- */

.btn,
.btn-primary,
.btn-ghost {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 0;
  transition: 0.18s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary {
  background: var(--brick);
  color: var(--paper);
  box-shadow: 0 3px 0 var(--brick-deep);
}
.btn-primary:hover { background: var(--brick-deep); transform: translateY(2px); box-shadow: 0 1px 0 var(--brick-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* text / arrow link */
.btn-arrow {
  display: inline-block;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 150ms ease;
}
.btn-arrow::after {
  content: '→';
  color: var(--brick);
  margin-left: 0.4em;
  transition: transform 150ms ease;
  display: inline-block;
}
.btn-arrow:hover { border-bottom-color: var(--ink); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---- Cards (generic content cards) ---- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px var(--shadow); border-color: var(--ochre); }
.card__title { margin: 0 0 var(--space-2); font-family: var(--font-serif); font-size: 22px; font-weight: 600; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--brick); }
.card__meta {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: var(--space-2);
}

/* feature card + icon (Home feature grid) */
.card__ic {
  font-family: var(--font-serif);
  font-size: 34px;
  color: var(--brick);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}

/* ---- Hero (editorial) ---- */

.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}
.hero-grid { display: block; }
/* About hero: copy left, portrait right (shows the whole photo, no cropped heads) */
.about-hero { display: grid; grid-template-columns: 1.02fr .98fr; gap: 44px; align-items: center; padding: 56px 0; }
.about-hero__img img { width: 100%; height: auto; display: block; border-radius: var(--radius-md); border: 1px solid var(--line); box-shadow: 0 14px 40px var(--shadow); }
@media (max-width: 760px) { .about-hero { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; } }
/* Building photo across the top, with the headline overlaid on it. */
.hero-photo { position: relative; width: 100%; aspect-ratio: 21 / 9; max-height: 560px; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; filter: saturate(1.05); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,14,8,.74) 0%, rgba(20,14,8,.22) 32%, rgba(20,14,8,0) 58%); }
.hero-photo__over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; max-width: var(--container-wide); margin: 0 auto; padding: 0 28px 34px; }
.hero-photo__over .hero__kicker { color: #f0e5cf; margin-bottom: 12px; }
.hero-photo__over .hero__kicker::before { background: var(--ochre); }
.hero-photo__over .hero__headline { color: #fff; font-size: clamp(40px, 6vw, 82px); text-shadow: 0 2px 24px rgba(0,0,0,.4); margin: 0; }
.hero-photo__over .hero__headline em { color: var(--ochre); }
.hero-copy { padding: 40px 0 52px; max-width: 760px; }
@media (max-width: 760px) { .hero-photo { aspect-ratio: 3 / 2; } .hero-copy { padding: 28px 0 40px; } }
/* History hero variant: taller crop, headline anchored to the top over a top-down scrim. */
.hero-photo--tall { aspect-ratio: 16 / 9; max-height: 620px; }
.hero-photo--toptext::after { background: linear-gradient(180deg, rgba(20,14,8,.72) 0%, rgba(20,14,8,.22) 34%, rgba(20,14,8,0) 62%); }
.hero-photo__over--top { top: 0; bottom: auto; padding: 40px 28px 0; }
.hero-photo__over .eyebrow--light { color: var(--ochre); }
.hero-photo__over--top .hero__headline { color: #fff; font-family: var(--font-serif); font-weight: 900; letter-spacing: -.02em; line-height: 1.02; font-size: clamp(38px, 5.6vw, 78px); text-shadow: 0 2px 24px rgba(0,0,0,.45); margin: 10px 0 0; }
@media (max-width: 760px) { .hero-photo--tall { aspect-ratio: 4 / 3; } }
.hero__kicker {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 14px;
  color: var(--brick);
  font-weight: 600;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__kicker::before { content: ""; width: 46px; height: 2px; background: var(--ochre); }
.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(46px, 6.6vw, 92px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--ink);
  margin: 0;
}
.hero__headline em { font-style: italic; font-weight: 500; color: var(--brick); }
.hero__subhead {
  font-size: 20px;
  color: var(--ink-soft);
  margin: 26px 0 18px;
  max-width: 46ch;
}
.hero-meta { display: flex; gap: 30px; flex-wrap: wrap; margin: 14px 0 36px; }
.hero-meta div { border-left: 2px solid var(--ochre); padding-left: 14px; }
.hero-meta .n { font-family: var(--font-serif); font-size: 30px; font-weight: 700; line-height: 1; }
.hero-meta .l {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 5px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Full-bleed horizontal band - shows the whole building edge to edge, below the copy. */
.hero-img { position: relative; overflow: hidden; width: 100vw; left: 50%; margin-left: -50vw; aspect-ratio: 12 / 5; max-height: 600px; border-top: 1px solid var(--line); }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 56%; filter: saturate(1.04); }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(35,25,15,.30), transparent 34%); }
@media (max-width: 760px) { .hero-img { aspect-ratio: 3 / 2; } .hero-copy { padding: 44px 0 30px; } }
.hero-img .tag {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
  background: rgba(35,25,15,.82);
  color: var(--paper);
  padding: 11px 16px;
  border-radius: 8px;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12.5px;
  border-left: 3px solid var(--ochre);
  max-width: 80%;
}

/* Legacy hero fallbacks (compact / bg / eyebrow / subhead) used by other pages */
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  z-index: 0;
}
.hero--photo { color: var(--paper); }
.hero--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35,25,15,0.15) 0%, rgba(35,25,15,0.72) 100%);
  z-index: 1;
}
.hero--photo .hero__inner { padding: 96px 28px 64px; }
.hero--photo .hero__headline,
.hero--photo .hero__subhead { color: var(--paper); }
.hero__eyebrow {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 var(--space-4);
}
.hero--compact { min-height: 320px; }
.hero--compact .hero__inner { padding: 84px 28px 48px; }

/* ---- Feature / content grids ---- */

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 54px 0 44px; }
  .hero-img { min-height: 420px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; gap: 24px; }
  .feat-grid { grid-template-columns: 1fr; }
}

/* tenant chips */
.tenants { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.chip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 11px 20px;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chip b { width: 8px; height: 8px; border-radius: 50%; background: var(--ochre); }

/* rule / lead / pullquote / note */
.rule { height: 1px; background: var(--line); max-width: var(--container-wide); margin: 0 auto; }
.lead { font-size: 20px; color: var(--ink-soft); max-width: 62ch; }
.note {
  background: var(--paper-2);
  border-left: 3px solid var(--ochre);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin-top: 28px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 70ch;
}
.note b { color: var(--ink); font-family: var(--font-label); letter-spacing: 0.05em; text-transform: uppercase; font-size: 13px; }
.pullquote { border-left: 4px solid var(--ochre); padding: 6px 0 6px 26px; margin-top: 30px; }
.pullquote p { font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1.4; color: var(--ink); }
.pullquote .by {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--brick);
  margin-top: 14px;
  font-weight: 600;
  font-style: normal;
}

/* section on dark ink background (closing CTA) */
.section--ink {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.section--ink h2 { color: var(--paper); }
.section--ink .eyebrow { color: var(--ochre); }
.section--ink p { color: rgba(242,234,217,.78); }
.section--ink .btn-primary { background: var(--ochre); color: var(--ink); box-shadow: 0 3px 0 var(--ochre-deep); }
.section--ink .btn-primary:hover { background: var(--ochre-deep); color: var(--paper); box-shadow: 0 1px 0 var(--ochre-deep); }

/* ---- Draft banner (About page placeholder) ---- */

.draft-banner {
  background: var(--paper-2);
  border: 1px solid var(--ochre);
  border-left: 3px solid var(--ochre);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  margin: var(--space-6) 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.draft-banner strong {
  display: block;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: var(--space-2);
}

/* ---- Tenant card ---- */

.tenant {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.tenant__logo {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--paper-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.tenant__name { font-family: var(--font-serif); font-size: 20px; font-weight: 600; margin: 0; }
.tenant__desc { font-size: 14px; color: var(--ink-soft); margin: 0; }
.tenant__link { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; font-weight: 600; color: var(--brick); }

/* ---- History era ---- */

.era {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin: 84px 0;
  align-items: start;
}
.era:nth-child(even) { direction: rtl; }
.era:nth-child(even) > * { direction: ltr; }
@media (max-width: 768px) {
  .era, .era:nth-child(even) { grid-template-columns: 1fr; direction: ltr; gap: 24px; }
}
.era__img { aspect-ratio: 3/2; background-size: cover; background-position: center; border-radius: var(--radius-md); border: 1px solid var(--line); }
.era__year {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 var(--space-3);
}
.era__hedged {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
  border-left: 3px solid var(--line);
  padding-left: var(--space-4);
  margin: var(--space-4) 0;
}

/* ---- Floor plans gate ---- */

.gate {
  max-width: 400px;
  margin: 96px auto;
  text-align: center;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}
.gate__title { margin: 0 0 var(--space-3); }
.gate__form { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.gate__input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  background: #fff;
}
.gate__input:focus { outline: 0; border-color: var(--brick); box-shadow: 0 0 0 3px rgba(154,59,39,.12); }
.gate__submit {
  background: var(--brick);
  color: var(--paper);
  border: 0;
  padding: 12px 20px;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 0 var(--brick-deep);
}
.gate__error { color: var(--brick-deep); font-size: 13px; margin-top: var(--space-3); min-height: 1em; }

.plans { display: none; }
.plans.is-unlocked { display: block; }
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}
.plan__header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-3); }
.plan__title { margin: 0; font-family: var(--font-serif); font-size: 24px; font-weight: 600; }
.plan__sf { font-family: var(--font-label); font-size: 13px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--brick); }
.plan__caption { font-size: 14px; color: var(--ink-soft); margin: 0 0 var(--space-4); }
.plan__embed { width: 100%; height: 600px; border: 1px solid var(--line); }
.plan__download { font-size: 13px; margin-top: var(--space-3); display: inline-block; }

/* ---- Focus outline (a11y) ---- */

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 2px;
}

/* ===== Floor plans & availability ===== */
:root {
  --available: #2EA043;
  --rented: #E0662E;
  --common: #9A9A9A;
  --owner: #7E8DA3;   /* owner use: a quiet gray blue (2026-11-10, Dom) */
}
.plans-head { margin-bottom: var(--space-6); }

.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--color-text); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: var(--space-6); }
.seg button { appearance: none; border: 0; background: transparent; cursor: pointer; font-weight: 600; font-size: 13px; letter-spacing: 0.04em; color: var(--color-text-muted); padding: 10px 16px; border-right: 1px solid var(--color-hairline); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--color-text); color: var(--color-bg); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin: 0 0 var(--space-6); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.stat { background: #fff; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-5); }
.stat .lab { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-text-muted); }
.stat .big { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 3px 0 1px; }
.stat .big small { font-size: 13px; font-weight: 700; color: var(--color-text-muted); }
.stat .sub { font-size: 12px; color: var(--color-text-muted); }

/* Statistics button + panel */
.seg-stats { text-decoration: none; background: var(--paper-2); cursor: pointer; font-weight: 600; font-size: 13px; letter-spacing: 0.04em; color: var(--ink); padding: 10px 16px; border-left: 1px solid var(--color-hairline); display: inline-flex; align-items: center; }
.seg-stats:hover { background: var(--ochre); color: #fff; }
.report-tabbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-top: 18px; }
.report-tabbar .report-tabs { margin: 0; }
.rev-widget { text-align: right; }
.rev-seg { display: inline-flex; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); overflow: hidden; }
.rev-seg button { appearance: none; border: 0; border-right: 1px solid var(--color-hairline); background: transparent; cursor: pointer; font-weight: 600; font-size: 12px; color: var(--color-text-muted); padding: 6px 12px; font-family: inherit; }
.rev-seg button:last-child { border-right: 0; }
.rev-seg button.is-active { background: var(--brick); color: #fff; }
.rev-figure { margin-top: 8px; }
.rev-amt { font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: var(--brick-deep); }
.rev-per { font-size: 14px; color: var(--color-text-muted); margin-left: 4px; }
.rev-split { font-size: 12.5px; color: var(--color-text-muted); margin-top: 2px; }
.rev-note { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; max-width: 340px; margin-left: auto; }
.report-tabs { display: inline-flex; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); overflow: hidden; margin: 18px 0 0; }
.report-tab { padding: 9px 18px; font-weight: 600; font-size: 13px; letter-spacing: .03em; color: var(--color-text-muted); text-decoration: none; border-right: 1px solid var(--color-hairline); }
.report-tab:last-child { border-right: 0; }
.report-tab.is-active { background: var(--color-text); color: var(--color-bg); }
.report-tab.is-soon { opacity: .5; cursor: default; }
.report-tab.is-soon::after { content: " · soon"; font-size: 11px; }
.paid-ok { color: #2e7d32; font-weight: 600; font-size: 12px; }
.mtm-badge { display: inline-block; background: var(--ochre); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 2px 8px; border-radius: 100px; white-space: nowrap; }
/* Mobile access/keys quick-reference */
.container--narrow { max-width: 640px; }
.ac-search { width: 100%; box-sizing: border-box; padding: 12px 14px; font-size: 16px; font-family: inherit; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); margin: 16px 0 20px; background: #fff; }
.ac-controls { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 16px 0 20px; }
.ac-controls .ac-search { margin: 0; flex: 1 1 240px; }
.ac-showall { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; white-space: nowrap; cursor: pointer; }
.ac-table td, .ac-table th { white-space: normal; vertical-align: top; }
.ac-t-unit { font-weight: 700; white-space: nowrap; }
.ac-t-type { white-space: nowrap; }
.ac-t-details { font-size: 15px; font-weight: 600; }
.ac-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 12px; background: var(--paper); }
.ac-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ac-unit { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--ink); }
.ac-floor { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); white-space: nowrap; }
.ac-tenant { color: var(--ink-soft); font-size: 14px; margin-top: 2px; }
.ac-tenant--none { opacity: .55; }
.ac-type { margin-top: 8px; font-weight: 600; font-size: 15px; }
.ac-notes { margin-top: 8px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.ac-notes__l { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 3px; }
.ac-notes__v { font-size: 17px; font-weight: 600; line-height: 1.4; word-break: break-word; }
.ac-notes--empty { margin-top: 8px; color: var(--ink-soft); font-style: italic; font-size: 13px; }
.ac-login { max-width: 340px; }
.ac-login .btn { width: 100%; margin-top: 6px; }
.ac-login__err { color: var(--brick); font-size: 13px; margin-top: 8px; min-height: 1em; }
.mobile-hint { font-size: 14px; color: var(--color-text-muted); display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.mobile-hint__icon { font-size: 28px; line-height: 1; }
.mobile-url { font-weight: 700; color: var(--brick-deep); text-decoration: underline; word-break: break-all; }
.rent-row { cursor: pointer; }
.rent-row:hover td { background: var(--paper-2); }
.lp-title { font-family: var(--font-serif); font-size: 22px; margin: 0 0 4px; }
.lp-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lp-select { padding: 8px 10px; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; min-width: 260px; background: #fff; }
.letter-box { max-width: 660px; }
.lp-textarea { width: 100%; box-sizing: border-box; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.55; padding: 12px; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); resize: vertical; }
.lp-tokens { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lp-tokens code { background: var(--paper-2); border: 1px solid var(--color-hairline); border-radius: 4px; padding: 1px 6px; font-size: 12px; }
.f-lterm.is-off { opacity: .45; background: var(--paper-2); }
.lease-end { font-size: 13.5px; color: var(--brick-deep); font-weight: 600; }
.lease-end:empty::before { content: "- set a start date and term"; color: var(--ink-soft); font-weight: 400; }
.ud-list { display: flex; flex-direction: column; gap: 2px; }
.ud-row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 8px 2px; border-bottom: 1px solid var(--color-hairline); align-items: center; }
.ud-row:last-child { border-bottom: 0; }
.ud-k { color: var(--color-text-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.ud-v { font-size: 15px; }
.ud-v .priv { color: var(--ochre); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; font-style: normal; margin-left: 6px; }
.urec--flash { outline: 2px solid var(--ochre); outline-offset: 2px; border-radius: 6px; }
.greet-box { max-width: 420px; text-align: center; }
.greet-box h3 { justify-content: center; }
.greet-box .confirm-actions { display: flex; justify-content: center; }
.greet-quote { color: var(--ochre); font-size: 16px; font-style: italic; line-height: 1.5; }
.common-parent td:first-child { font-weight: 600; }
.common-child td { color: var(--color-text-muted); }
/* WMS login: a small lock card, the password and its arrow button on one line. */
.confirm-box.login-box { max-width: 320px; padding: 26px 24px 16px; border-radius: 16px; text-align: center; }
.confirm-box.login-box h3 { display: block; margin: 0 0 16px; font-size: 21px; font-weight: 500; }
.login-box h3 em { color: var(--brick); }
.login-box form { display: block; }
.login-lock { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; background: var(--brick); color: var(--paper); display: grid; place-items: center; }
.login-line { display: flex; }
.login-pw { position: relative; flex: 1; min-width: 0; }
.login-pw input { width: 100%; box-sizing: border-box; font: 16px var(--font-sans); padding: 11px 52px 11px 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; background: #fffdf8; color: var(--ink); }
.login-pw input:focus { outline: 2px solid var(--ochre); outline-offset: -2px; }
.login-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 6px; cursor: pointer; font: 600 12px var(--font-label); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.login-go { width: 50px; flex: none; border: 0; border-radius: 0 8px 8px 0; background: var(--ink); color: var(--paper); font-size: 22px; cursor: pointer; }
.login-go:hover { background: var(--brick); }
.login-err { margin: 12px 0 0 !important; padding: 9px 12px; border: 2px solid #b91c1c; border-radius: 8px; background: #fdecec; color: #991b1b !important; font-weight: 700; font-size: 14px !important; text-align: center; }
.login-cancel { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--ink-soft); font: 13px var(--font-sans); text-decoration: underline; cursor: pointer; }
/* Stop the browser autofill highlight from drawing a colored box over password/text fields. */
.fld input:-webkit-autofill,
.fld input:-webkit-autofill:hover,
.fld input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
}
.stats-box { max-width: 580px; }
.stats-scroll { overflow-x: auto; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stats-table th, .stats-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: right; }
.stats-table th:first-child, .stats-table td:first-child { text-align: left; }
.stats-table th { font-family: var(--font-label); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; color: var(--ink-soft); }
.stats-table td:not(:first-child) { font-variant-numeric: tabular-nums; }
.stats-table .stats-total td { font-weight: 700; border-top: 2px solid var(--line); }
.dim { position: relative; height: 30px; margin: 14px 2px 4px; }
.dim .rail { position: absolute; top: 13px; left: 0; right: 0; height: 8px; border-radius: 1px; background: var(--available); overflow: hidden; border: 1px solid rgba(0,0,0,.12); }
.dim .fill { position: absolute; top: 0; bottom: 0; left: 0; background: var(--rented); transition: width .45s cubic-bezier(.4,0,.2,1); }
.dim .cap { position: absolute; top: 8px; width: 2px; height: 18px; background: var(--color-text); }
.dim .cap.l { left: 0; } .dim .cap.r { right: 0; }
.dim .ticks { position: absolute; top: 9px; left: 0; right: 0; height: 6px; }
.dim .tk { position: absolute; top: 0; width: 1px; height: 6px; background: rgba(0,0,0,.30); }

.grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); align-items: start; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
.plan { position: relative; background: #fff; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); padding: 10px; }
.plan svg { display: block; width: 100%; height: auto; }
.plan-zoom { position: absolute; top: 16px; right: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: rgba(35,25,15,0.85); color: #fff; border: 0; border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.plan-zoom:hover { background: var(--ink); }

/* crisp vector unit labels (shown in the enlarged view) */
/* NOTE: font-size and stroke-width are set inline (scaled per-floor in
   plans-app.js) so labels stay a consistent on-screen size across floors.
   Do NOT set font-size here via the `font` shorthand - it would override
   the scaled inline size and render the numbers microscopically small. */
.ulabel-id { font-family: var(--font-sans); font-weight: 800; fill: #14331d; paint-order: stroke; stroke: rgba(255,255,255,0.92); stroke-linejoin: round; }
.ulabel-sf { font-family: var(--font-sans); font-weight: 600; fill: #33403a; paint-order: stroke; stroke: rgba(255,255,255,0.92); stroke-linejoin: round; }
.ulabel-tn { font-family: var(--font-sans); font-weight: 600; font-style: italic; fill: #7a2c1d; paint-order: stroke; stroke: rgba(255,255,255,0.92); stroke-linejoin: round; }
.dimlabel { font-family: var(--font-sans); pointer-events: none; fill: #6b7280; font-weight: 500; paint-order: stroke; stroke: #fff; stroke-width: 2; }
.dimlabel--measured { font-style: italic; }

/* enlarge lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(20,14,8,0.92); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox__inner { position: relative; background: #fff; border-radius: var(--radius-sm); max-width: 96vw; max-height: 94vh; overflow: auto; padding: 16px; }
.lightbox__close { position: absolute; top: 6px; right: 12px; z-index: 2; background: none; border: 0; font-size: 30px; line-height: 1; color: var(--color-text); cursor: pointer; }
.lightbox__stage svg { display: block; width: min(90vw, 1300px); height: auto; }
.plan-empty { padding: 48px 24px; text-align: center; color: var(--color-text-muted); display: flex; flex-direction: column; gap: 8px; }
.plan-empty b { color: var(--color-text); font-size: 16px; }
.unit { transition: opacity .15s; }
.unit.is-editable { cursor: pointer; }
/* Available-only mode: non-available rooms are dimmed and non-interactive for customers. */
.unit.is-inert { opacity: 0.4; cursor: default; pointer-events: none; }
.unit.is-editable:hover { opacity: .78; }
.unit-out { fill: none; pointer-events: none; }
.ulabel { pointer-events: none; font-family: var(--font-sans); font-weight: 700; fill: #444; paint-order: stroke; stroke: rgba(255,255,255,0.85); stroke-linejoin: round; }

aside { position: static; display: flex; flex-direction: column; gap: var(--space-4); }
/* Under the full-width plan, legend + admin sit side by side to save vertical space */
.plans-underplan { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 640px) { .plans-underplan { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); padding: var(--space-4) var(--space-5); }
.card h2 { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-text-muted); margin: 0 0 var(--space-4); }
.card h2 .muted { color: var(--color-hairline); }
.legend { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.legend-row { display: flex; align-items: center; gap: 10px; }
.legend--top { padding: 10px 14px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: var(--space-6); font-size: 13.5px; }

/* Floor selector (left) + admin controls (right) above the plan */
.plan-topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 16px; flex-wrap: wrap; margin-bottom: var(--space-4); }
.plan-topbar .seg { margin-bottom: 0; }
.admin-controls { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.admin-controls:empty { display: none; }

/* When signed in to the WMS, hide the public title + big footer to keep a clean working view */
body.is-admin .plans-head { display: none; }
/* WMS: the floor tabs, legend and toolbar stay pinned under the site header while the plan scrolls. */
/* Floor plans page: the title sits close under the menu, and the floor tabs + legend pin under
   the site header for visitors too, so the floor being shown stays in view while the plan scrolls. */
.section--plans { padding-top: 28px; }
.section--plans .plans-head { margin-bottom: var(--space-4); }
.section--plans .plan-topbar { position: sticky; top: var(--site-header-h, 0px); z-index: 90; align-items: center; background: var(--paper); padding: 8px 0; border-bottom: 1px solid var(--line); }
.section--plans .legend--top { display: none; }
.section--plans .legend--bar { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; padding: 6px 12px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.legend--bar { display: none; }
body.is-admin .legend--top { display: none; }
body.is-admin .plan-topbar { position: sticky; top: var(--site-header-h, 0px); z-index: 90; align-items: center; background: var(--paper); padding: 10px 0; border-bottom: 1px solid var(--line); }
body.is-admin .legend--bar { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; padding: 5px 10px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
body.is-admin .legend--bar .legend-row { gap: 6px; }
body.is-admin .legend--bar .sw { width: 12px; height: 12px; }
/* A slimmer pinned bar: smaller floor tabs and buttons, so it takes less of the screen. */
body.is-admin .plan-topbar { padding: 6px 0; gap: 6px 12px; }
body.is-admin .plan-topbar .seg button, body.is-admin .plan-topbar .seg-stats { padding: 6px 11px; font-size: 12px; }
body.is-admin .plan-topbar .admin-controls { gap: 5px; }
body.is-admin .plan-topbar .admin-btn { padding: 5px 10px; font-size: 12px; min-height: 0; }
body.is-admin .site-footer { display: none; }
/* Tidy WMS toolbar: no empty band above it, one button size, one accent (brick) for "on",
   red kept for Reset only, and the buttons split into an Admin group and a View group. */
body.is-admin main > .section:first-child { padding-top: 12px; }
body.is-admin .plan-topbar .admin-controls { flex-basis: 100%; justify-content: space-between; gap: 6px 16px; }
body.is-admin .plan-topbar .admin-btn { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; font-size: 12px; line-height: 1; background: #fff; color: var(--color-text); border: 1px solid var(--color-hairline); text-decoration: none; white-space: nowrap; }
body.is-admin .plan-topbar .admin-btn:hover { border-color: var(--brick); }
body.is-admin .plan-topbar .admin-btn--active { background: var(--brick); color: #fff; border-color: var(--brick); }
body.is-admin .plan-topbar .admin-btn--danger { background: #fff; color: #c0392b; border-color: rgba(192,57,43,.45); }
body.is-admin .plan-topbar .admin-btn--danger:hover { background: #c0392b; color: #fff; border-color: #c0392b; }
.admin-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.admin-group__l { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; color: var(--ink-soft); margin-right: 3px; }
.admin-group__sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }

/* "Signed in to the WMS" badge in the header */
/* Pill sits on the menu line; version floats just beneath it (absolute) so it doesn't push the pill up. */
.wms-badge-wrap { position: relative; display: inline-flex; align-items: center; align-self: center; }
.wms-badge-ver { position: absolute; top: 100%; right: 10px; margin-top: 3px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.lg-ver { margin: -6px 0 10px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; font-weight: 800; color: var(--ink); }
.wms-badge { display: inline-flex; align-items: center; gap: 6px; background: #1f7a33; color: #fff; padding: 5px 6px 5px 12px; border-radius: 100px; font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.wms-badge__link { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.wms-badge__link:hover { text-decoration: underline; }
.wms-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: #8ef0a6; box-shadow: 0 0 0 3px rgba(142,240,166,.3); flex: none; }
.wms-badge__out { background: rgba(255,255,255,.22); color: #fff; border: 0; border-radius: 100px; padding: 4px 11px; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.wms-badge__out:hover { background: rgba(255,255,255,.38); }
.sw { width: 16px; height: 16px; border-radius: 2px; }
.sw--avail { background: var(--available); opacity: .75; }
.sw--rented { background: var(--rented); opacity: .75; }
.sw--owner { background: var(--owner); opacity: .75; }
/* Locks in the room editor (2026-11-11): one row per lock. */
.lk-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.lk { display: flex; gap: 6px; align-items: center; }
.lk .lk-type { flex: 0 0 11.5em; width: 11.5em; }
.lk .lk-where { flex: 1 1 auto; width: auto; min-width: 0; }
.lk .lk-del { flex: 0 0 auto; width: auto; padding: 4px 10px; }
.lk-add { width: auto; align-self: flex-start; }
.dep__on { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
body:not(.wms-mode) .legend-row--owner { display: none; }   /* visitors never hear of owner rooms */
.sw--common { background: radial-gradient(circle, #a9a99f 1px, transparent 1.4px) 0 0 / 5px 5px, #f7f7f4; border: 1px solid rgba(154,154,154,.55); }

.list { display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow-y: auto; }
.list .hint { padding: 8px 4px; color: var(--color-text-muted); font-size: 14px; }
.row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; background: transparent; border: 0; border-bottom: 1px solid var(--color-hairline); padding: 8px 2px; text-align: left; font-family: inherit; cursor: default; }
body.is-admin .row { cursor: pointer; }
.row .rid { font-weight: 700; font-size: 14px; }
.row .rsf { font-size: 12px; color: var(--color-text-muted); }
.pill { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 999px; }
.pill.available { background: rgba(46,160,67,.16); color: #1f7a33; }
.pill.rented { background: rgba(224,102,46,.18); color: #b8481c; }

.admin-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-login { display: flex; gap: 8px; width: 100%; }
.admin-input { flex: 1; padding: 9px 11px; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; }
.admin-input:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: var(--color-accent); }
.admin-btn { background: var(--color-text); color: var(--color-bg); border: 0; padding: 9px 14px; font-weight: 600; font-size: 13px; border-radius: var(--radius-sm); cursor: pointer; }
.admin-btn--ghost { background: transparent; color: var(--color-text); border: 1px solid var(--color-hairline); }
.admin-note { font-size: 13px; color: var(--color-text-muted); }
.admin-note--on { color: #1f7a33; font-weight: 600; }
.admin-hint { font-size: 13px; color: #8a1c1c; min-height: 1em; margin: 8px 0 0; opacity: 0; transition: opacity .2s; }
.admin-hint.show { opacity: 1; }

/* full-building plans gallery */
.plan-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--space-5); }
.plan-tile { margin: 0; }
.plan-tile__btn { display: block; width: 100%; padding: 8px; background: #fff; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); cursor: pointer; transition: border-color 150ms ease; }
.plan-tile__btn:hover { border-color: var(--ochre); }
.plan-tile__btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.plan-tile__btn img { display: block; width: 100%; height: 200px; object-fit: contain; background: #fff; }
.plan-tile figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 10px; font-size: 15px; font-weight: 600; }
.plan-tile figcaption a { font-size: 12px; font-weight: 600; color: var(--color-accent); white-space: nowrap; }
.plan-tile figcaption a:hover { text-decoration: underline; }
.lightbox__stage img { display: block; width: auto; max-width: min(92vw, 1400px); max-height: 86vh; height: auto; }

/* common-status pill + swatch */
.pill.common { background: rgba(154,154,154,.18); color: #5a5a52; }
.unit.is-common { cursor: default; }
body.is-admin .unit.is-common.is-editable { cursor: pointer; }

/* ---------- Shape editor (admin only) ---------- */
.admin-btn--active { background: var(--brick); color: #fff; border-color: var(--brick); }
.admin-btn--danger { background: #c0392b; color: #fff; border-color: #c0392b; }
.admin-btn--danger:hover { background: #a5301f; }
body.editing .grid { grid-template-columns: 1fr; }
body.editing .unit { cursor: pointer; }
.shape-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-md); background: var(--paper-2);
  font-family: var(--font-sans); font-size: 14px;
}
.shape-toolbar .st-room { font-weight: 700; }
.shape-toolbar .st-dirty { color: var(--brick); font-weight: 700; }
.shape-toolbar .st-actions { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.shape-toolbar .st-hint { flex: 1 1 260px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.4; }
.st-save { background: var(--brick); border-color: var(--brick); }
.st-saved { color: #1f7a33; font-weight: 700; font-size: 12.5px; }
.shape-toolbar .st-close { margin-left: auto; }
.edit-poly { fill: rgba(154,59,39,0.12); stroke: var(--brick); cursor: move; }
.edit-handle { fill: #fff; stroke: var(--brick); cursor: grab; }
.edit-handle:hover { fill: #ffe9c8; }
.edit-handle.is-active { fill: none; stroke: var(--ink); }
/* while arming Auto-fill, let the click reach the drawing */
body.fill-arming #planBox svg, body.fill-arming #planBox svg * { cursor: crosshair; }
body.fill-arming .unit, body.fill-arming .edit-layer { pointer-events: none; }
/* draw-box tool */
body.box-arming #planBox svg, body.box-arming #planBox svg * { cursor: crosshair; }
body.box-arming .unit, body.box-arming .edit-layer { pointer-events: none; }
.box-preview { fill: rgba(154,59,39,0.14); stroke: var(--brick); stroke-dasharray: 6 5; }
.box-hint { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 6; background: var(--brick); color: #fff; padding: 10px 14px; border-radius: 8px; font-family: var(--font-sans); font-size: 14px; font-weight: 600; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,0.25); }

/* Delete-room confirmation dialog */
.confirm-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(20,14,8,0.55); z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.confirm-box { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; max-width: 440px; width: 100%; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(0,0,0,0.4); font-family: var(--font-sans); }
.confirm-box h3 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 22px; flex: none; display: flex; align-items: center; gap: 8px; }
.confirm-box p { margin: 0 0 14px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; flex: none; }
.confirm-box .add-fields { overflow-y: auto; flex: 1 1 auto; min-height: 0; padding-right: 2px; }
.confirm-box .confirm-actions { flex: none; padding-top: 14px; }
.add-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.aa-unit-row { display: flex; align-items: center; gap: 12px; }
.aa-unit-row input[type="text"] { flex: 1; }
.aa-common { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 12.5px; color: var(--ink-soft); }
.aa-common input { width: auto; }

/* Casey's welcome toast */
.welcome-toast { position: fixed; top: 24px; left: 50%; z-index: 400; transform: translateX(-50%) translateY(-14px); background: var(--ink); color: var(--paper); padding: 16px 24px; border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,0.45); max-width: 460px; text-align: center; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-sans); opacity: 0; transition: opacity .4s ease, transform .4s ease; }
.welcome-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.welcome-toast strong { font-family: var(--font-serif); font-size: 19px; }
.welcome-toast span { font-size: 14.5px; color: var(--ochre); line-height: 1.45; }
.confirm-chk { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; margin-bottom: 20px; }
.confirm-chk input { margin-top: 2px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.confirm-box #cfDelete { background: var(--brick); color: #fff; border-color: var(--brick); }
.confirm-box #cfDelete:hover { background: var(--brick-deep); }
/* hollow "add a corner" dots at each edge midpoint */
.edit-midhandle { fill: rgba(255,255,255,0.6); stroke: var(--orion-blue); stroke-dasharray: 3 3; cursor: copy; }
.edit-midhandle:hover { fill: var(--orion-blue); }

/* big editing view (Enlarge while in shape-edit mode) */
#planBox.plan--zoomed { position: fixed; inset: 12px; z-index: 150; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,.45); overflow: auto; padding: 48px 14px 14px; }
#planBox.plan--zoomed svg { width: 100%; height: auto; }
#planBox.plan--zoomed .plan-zoom { position: fixed; top: 20px; right: 26px; z-index: 151; font-size: 15px; padding: 10px 16px; background: var(--brick); }
.plan-zoom--done { background: var(--brick) !important; color: #fff; font-weight: 700; }
#planBox.plan--zoomed .plan-zoom--done { box-shadow: 0 4px 16px rgba(0,0,0,0.35); }
#planBox.plan--zoomed .shape-toolbar { position: sticky; bottom: 0; }
body.plan-zoomed { overflow: hidden; }
.zoom-hint { display: none; }
#planBox.plan--zoomed .zoom-hint { display: block; position: fixed; top: 22px; left: 26px; z-index: 151; background: rgba(35,25,15,0.86); color: #fff; padding: 9px 13px; border-radius: 7px; font-family: var(--font-sans); font-size: 13px; }
#planBox.plan--zoomed .zoom-hint b { color: var(--ochre); }

/* per-unit private record cards (admin) */
.fp-version { display: inline-flex; align-items: center; align-self: center; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--ink-soft); background: var(--paper-2); border: 1px solid var(--line); border-radius: 100px; padding: 3px 12px; }
.rent-total { font-family: var(--font-sans); font-size: 13.5px; padding: 8px 10px; margin-bottom: 8px; background: var(--paper-2); border-radius: var(--radius-sm); }
.rent-total b { color: var(--brick-deep); }
.rent-due { color: var(--brick); font-weight: 600; }
.urec { border-bottom: 1px solid var(--color-hairline); }
/* shared 5-column layout for the header row and every unit row */
.urec-head, .urec-row { display: grid; grid-template-columns: 46px minmax(0,1fr) 46px 78px 58px; gap: 8px; align-items: center; }
.urec-row { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--color-hairline); background: transparent; cursor: pointer; padding: 10px 4px; font: inherit; font-size: 13.5px; }
.urec-row:hover { background: var(--paper-2); }
.urec-row:focus-visible { outline: 2px solid var(--ochre); outline-offset: -2px; }
.uedit-box { max-width: 640px; }
/* Two-column field layout keeps the unit editor compact; falls back to scrolling
   (rather than overlapping the Close/Save bar) if content still exceeds the modal height. */
.uedit-box .add-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 16px; overflow-y: auto; }
.uedit-box .add-fields .fld--wide { grid-column: 1 / -1; }
/* Fields with an inline checkbox (deposit, tenant checks, lease start) take half a row, like the rest
   (2026-11-06, Dom: the full width was wasted space). Only a paid deposit, with its date, method and
   check # showing, gets the whole row. */
.uedit-box .add-fields .fld:has(.dep__paid:not([hidden])) { grid-column: 1 / -1; }
.uedit-box .add-fields .dep { flex-wrap: wrap; row-gap: 4px; }
.uedit-box .add-fields .dep input[type=date] { flex: 1; min-width: 0; }
@media (max-width: 560px) { .uedit-box .add-fields { grid-template-columns: 1fr; } }
.urec-head { padding: 8px 4px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .05em; font-size: 10px; color: var(--ink-soft); border-bottom: 1px solid var(--line); background: var(--paper); }
/* No inner scroll - the units list shows in full and the page scrolls if needed. */
#list { max-height: none; overflow: visible; }
.urec-head span:nth-child(3), .urec-head span:nth-child(5) { text-align: right; }
.urec__sum { padding: 9px 4px; cursor: pointer; list-style: none; font-size: 13.5px; }
.urec__sum::-webkit-details-marker { display: none; }
.urec__sum::marker { content: ''; }
.urec__id { font-weight: 700; }
.urec__nm { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.urec__sf { font-family: var(--font-serif); font-size: 12.5px; color: var(--ink-soft); text-align: right; }
.urec__rent { font-family: var(--font-serif); font-weight: 600; color: var(--brick-deep); font-size: 13px; text-align: right; }
.urec__body { display: grid; grid-template-columns: 1fr; gap: 11px; padding: 8px 4px 16px; }
.urec__foot { display: flex; gap: 8px; margin-top: 4px; }
.urec__foot .admin-btn { flex: 1; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.fld--wide { grid-column: 1 / -1; }
.fld__l { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: var(--ink-soft); }
.fld__l em { text-transform: none; letter-spacing: 0; font-style: italic; color: var(--brick); }
.fld input, .fld select, .fld textarea { padding: 7px 9px; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); font-family: inherit; font-size: 13px; background: #fff; width: 100%; }
.fld textarea { resize: vertical; }
.dep { display: flex; gap: 8px; align-items: center; }
.dep input[type=number] { flex: 1; min-width: 0; }
.dep__chk { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 12px; }
.dep__chk input { width: auto; }

/* ---------- Safety markers (admin) ---------- */
body.marking .unit { pointer-events: none; }
body.marking.has-tool #planBox svg, body.marking.has-tool #planBox svg * { cursor: crosshair; }
.mk-icon { cursor: pointer; }
.mk-icon.is-sel circle { stroke: var(--ink); }
.marker-bar { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-2); font-family: var(--font-sans); font-size: 13px; display: flex; flex-direction: column; gap: 12px; }
.mk-section { display: flex; flex-direction: column; gap: 6px; }
.mk-title { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: var(--ink-soft); }
.marker-bar--lb { position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 1001; width: min(1100px, 94vw); max-height: 42vh; overflow-y: auto; margin-top: 0; background: var(--paper); box-shadow: 0 -6px 30px rgba(0,0,0,.35); }
.lightbox--markers .lightbox__stage { padding-bottom: 46vh; }
.mk-layers { display: flex; flex-wrap: wrap; gap: 14px; }
.mk-layer { display: inline-flex; align-items: center; gap: 6px; }
.mk-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-tool { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 100px; background: #fff; cursor: pointer; font-size: 12.5px; font-family: inherit; }
.mk-tool.is-active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.mk-swatch { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.mk-swatch--sm { width: 16px; height: 16px; font-size: 10px; }
.mk-tip { background: rgba(200,146,47,.14); border: 1px solid rgba(200,146,47,.4); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 12.5px; color: var(--ink); line-height: 1.5; }
.mk-tip b { color: var(--brick-deep); }
.mk-layers { gap: 10px 18px; }
.mk-foot { flex-direction: row; align-items: center; gap: 10px; }
.mk-editor { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.mk-editor label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--ink-soft); }
.mk-editor input { padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; font-size: 13px; }
.mk-loc { font-size: 12px; color: var(--ink-soft); }
.mk-sizewrap { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); }

/* Print / export a safety plan */
#printSheet { display: none; }
@media print {
  @page { margin: 12mm; }
  html, body { height: auto !important; margin: 0 !important; background: #fff !important; }
  /* Remove everything else from the layout (not just hide it) so no blank pages trail the plan. */
  body > *:not(#printSheet) { display: none !important; }
  #printSheet { display: block; position: static; width: 100%; padding: 0; color: #000; }
  /* Force full-saturation colors/backgrounds - browsers otherwise wash them out when printing. */
  #printSheet, #printSheet * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  #printSheet svg { width: 100%; height: auto; max-height: 84vh; page-break-inside: avoid; break-inside: avoid; }
  .pl-title { font-family: var(--font-serif); font-size: 20px; margin: 0 0 8px; page-break-after: avoid; }
  .pl-legend { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-sans); font-size: 12px; page-break-inside: avoid; break-inside: avoid; }
  .pl-row { display: flex; align-items: center; gap: 6px; }
  .pl-sw { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 11px; margin-right: 4px; }
  .pl-foot { margin-top: 16px; padding-top: 10px; border-top: 1px solid #999; font-family: var(--font-sans); font-size: 11px; line-height: 1.5; color: #222; page-break-inside: avoid; }
  .pl-foot__meta { color: #666; margin-top: 2px; }
}

/* admin unit editor rows (Units panel when logged in) */
.erow { display: grid; grid-template-columns: auto 1fr 76px auto; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px solid var(--color-hairline); }
.erow__id { font-weight: 700; font-size: 13px; min-width: 42px; color: var(--color-text); }
.erow__name, .erow__sf { padding: 6px 8px; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); font-family: inherit; font-size: 13px; background: #fff; width: 100%; }
.erow__sf { text-align: right; }
.erow__name:focus, .erow__sf:focus, .erow__status:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: var(--color-accent); }
.pill-select { appearance: none; -webkit-appearance: none; border: 1px solid var(--color-hairline); border-radius: 999px; padding: 4px 22px 4px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; font-family: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6'%3E%3Cpath d='M0 0h8L4 6z' fill='%23888'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; }
.pill-select.available { background-color: rgba(46,160,67,.16); color: #1f7a33; }
.pill-select.rented { background-color: rgba(224,102,46,.18); color: #b8481c; }
.pill-select.common { background-color: rgba(154,154,154,.18); color: #5a5a52; }
.admin-hint.admin-hint--ok { color: #1f7a33; }

/* ===== Inquiry form (contact.html) ===== */

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.form-row {
  display: grid;
  gap: var(--space-5);
}
.form-row--2col { grid-template-columns: 1fr 1fr; }
.form-row--3col { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) {
  .form-row--2col,
  .form-row--3col { grid-template-columns: 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-field label {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-text);
  background: var(--paper);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  width: 100%;
}
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a3c2c' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--brick);
  box-shadow: 0 0 0 3px rgba(154,59,39,.12);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.form-required { color: var(--color-accent); margin-left: 2px; }

.form-checkboxes {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.form-checkboxes legend {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 15px;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
}

.form-field--required-check .form-check {
  font-size: 14px;
  color: var(--color-text-muted);
}

.form-submit { margin-top: var(--space-2); }

/* Status messages */
.inquiry-status {
  font-size: 15px;
  padding: 0;
  min-height: 0;
}
.inquiry-status:empty { display: none; }
.inquiry-status--success {
  background: #edfbf0;
  border: 1px solid #2EA043;
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  color: #1f7a33;
  font-weight: 600;
}
.inquiry-status--error {
  background: #fef2f2;
  border: 1px solid #e0a0a0;
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  color: #8a1c1c;
}
.inquiry-status--error a { color: #8a1c1c; font-weight: 600; text-decoration: underline; }

/* ===== History timeline ===== */

/*
  Vertical timeline - a left-rail line with dot markers and year labels.
  Each stop (.tl__stop) has a left column (.tl__marker) and a right content
  column (.tl__body). On mobile it collapses to a single column with the
  marker inline above the body.
*/

.tl {
  position: relative;
  padding-left: 0;
  margin-top: var(--space-7);
}

/* Vertical line running along the left edge of all markers */
.tl::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100px; /* aligns with center of dot column */
  width: 2px;
  background: var(--line);
}

.tl__stop {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  position: relative;
  scroll-margin-top: 90px;   /* land below the sticky header when jumped to */
}

/* History milestone graphic (clickable dates → jump to each era) */
.milestones { margin: 0 0 24px; }
.milestones__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.milestones svg { width: 100%; min-width: 720px; max-width: 820px; height: auto; margin: 0 auto; display: block; font-family: var(--font-sans); }
.ms-link { cursor: pointer; }
.ms-year { font-family: var(--font-serif); font-weight: 700; font-size: 30px; fill: #23190f; }
.ms-label { font-size: 13.5px; fill: #4a3c2c; }
.ms-card { transition: transform .16s ease; }
.ms-card-bg { transition: fill .16s ease, stroke-width .16s ease; }
.ms-link:hover .ms-card { transform: translateY(-4px); }
.ms-link:hover .ms-card-bg { fill: #fff; stroke-width: 2.5; }
.ms-link:focus-visible .ms-card-bg { stroke-width: 3; }
.ms-legend { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--ink-soft); margin-top: 14px; }
.ms-legend span { display: flex; align-items: center; gap: 7px; }
.ms-legend i { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }
/* History hero (survey map) + shared full-width feature photo */
.history-hero, .feature-photo { margin: 0; }
.history-hero img, .feature-photo img { width: 100%; display: block; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: 0 10px 30px var(--shadow); }
.history-hero figcaption, .feature-photo figcaption { margin-top: 12px; font-style: italic; color: var(--ink-soft); text-align: center; max-width: 68ch; margin-left: auto; margin-right: auto; }

/* Spotlight-on-hover photo: the same image, dimmed + softened, with a clear
   elliptical spotlight over the subject. Set --spot-img and the focus vars on
   the .spot-frame element. Desktop uses :hover; tap/keyboard toggle .is-focused. */
.spot-frame { position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 10px 30px var(--shadow); background: #2b2823; cursor: pointer; }
.spot-frame img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.spot-frame::after {
  content: ""; position: absolute; inset: -8px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(rgba(20,16,12,var(--dim-amount,0.62)), rgba(20,16,12,var(--dim-amount,0.62))),
    var(--spot-img) center / calc(100% - 16px) auto no-repeat;
  filter: sepia(0.22) contrast(0.92) brightness(0.72) blur(var(--blur-amount,3px));
  opacity: 0;
  -webkit-mask-image: radial-gradient(ellipse var(--focus-width,34%) var(--focus-height,23%) at var(--focus-x,53%) var(--focus-y,61%), transparent 0%, transparent 54%, rgba(0,0,0,0.35) 68%, black 82%);
  mask-image: radial-gradient(ellipse var(--focus-width,34%) var(--focus-height,23%) at var(--focus-x,53%) var(--focus-y,61%), transparent 0%, transparent 54%, rgba(0,0,0,0.35) 68%, black 82%);
  transition: opacity var(--transition-speed,500ms) ease;
}
.spot-frame:hover::after, .spot-frame:focus-within::after, .spot-frame.is-focused::after { opacity: 1; }
/* Delay the darkening on hover-in so a passing cursor (e.g. while scrolling)
   doesn't trigger it; fade-out stays instant (base rule has no delay). */
.spot-frame:hover::after { transition-delay: var(--hover-delay, 1200ms); }
.spot-frame button { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.spot-frame button:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
@media (prefers-reduced-motion: reduce) { .spot-frame::after { transition: none; } }
.tl__stop:last-child {
  border-bottom: 1px solid var(--line);
}

/* Light/transitional stops get muted treatment */
.tl__stop--light {
  opacity: 0.75;
}

/* "Now" stop gets a subtle warm highlight */
.tl__stop--now {
  background: rgba(154,59,39,.04);
  margin-left: -28px;
  margin-right: -28px;
  padding-left: 28px;
  padding-right: 28px;
  border-radius: var(--radius-md);
  border-top-color: transparent;
  border-bottom-color: transparent;
}

/* Marker column - holds the dot + year label, centered at the rail */
.tl__marker {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 32px;
  padding-top: 6px;
  position: relative;
}

/* The circular dot on the rail */
.tl__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ochre);
  border: 3px solid var(--paper-2);
  box-shadow: 0 0 0 2px var(--ochre);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.tl__dot--muted {
  background: var(--line);
  box-shadow: 0 0 0 2px var(--line);
}
.tl__dot--orion {
  background: var(--orion-blue);
  box-shadow: 0 0 0 2px var(--orion-blue);
}
.tl__dot--brick {
  background: var(--brick);
  box-shadow: 0 0 0 2px var(--brick);
}

/* Year label below the dot */
.tl__year {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 28px;
  color: var(--brick);
  line-height: 1;
  margin-top: 10px;
  text-align: right;
}
.tl__year--muted {
  color: var(--ink-soft);
  font-size: 22px;
}

/* Body column */
.tl__body {
  padding-top: 6px;
}

/* Era label (the date range sub-header) */
.tl__era-label {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 var(--space-3);
}
.tl__stop--light .tl__era-label {
  color: var(--ink-soft);
}
.tl__stop--now .tl__era-label {
  color: var(--ochre-deep);
}

/* Section heading inside timeline */
.tl__heading {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 var(--space-5);
  line-height: 1.08;
}

/* Media block (photo) inside a stop */
.tl__media {
  margin: 0 0 var(--space-5);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  max-width: 560px;
}
.tl__media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* Hedged / sourced note inside a stop */
.tl__hedged {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
  border-left: 3px solid var(--line);
  padding-left: var(--space-4);
  margin: var(--space-4) 0 0;
}

/* ---- Timeline responsive ---- */

@media (max-width: 760px) {
  .tl::before {
    left: 9px; /* dot width/2 */
  }

  .tl__stop {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding-left: 36px; /* room for the dot rail */
  }

  .tl__stop--now {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 52px;
    padding-right: 20px;
  }

  .tl__marker {
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
    padding-right: 0;
    padding-top: 0;
    /* Pull marker to the left rail */
    position: absolute;
    left: -36px;
    top: 48px;
    flex-direction: column;
    align-items: center;
  }

  .tl__year {
    display: none; /* year shown in era-label on mobile */
  }

  .tl__dot {
    width: 14px;
    height: 14px;
  }
}

/* discreet admin entry in the footer */
.footer-admin { display:inline-block; margin-top:10px; font-family:'Saira Condensed',sans-serif; text-transform:uppercase; letter-spacing:.14em; font-size:11px; font-weight:600; color:rgba(242,234,217,.38); transition:color .15s; }
.footer-admin:hover { color:var(--ochre); }

/* A lease group's rooms, after its name in the unit lists. */
.rooms-note { color: var(--color-text-muted); font-weight: 400; font-size: 12px; }

/* Picking rooms to group: the picked rooms' outline, and the bar under the plan. */
.unit.is-picked .unit-out { stroke: #1d4ed8; stroke-width: 4; stroke-opacity: 1; }
/* Picked rooms are unmistakable (2026-11-06, Dom): solid blue fill, a thick outline and a ✓. */
.unit.is-picked .unit-fill { fill: #3b82f6 !important; fill-opacity: .6 !important; }
.unit.is-picked .unit-out { stroke: #1d4ed8 !important; stroke-width: 6px !important; vector-effect: non-scaling-stroke; stroke-dasharray: none !important; stroke-opacity: 1 !important; }

/* Find a unit (2026-10-11): the search above the Units list, and the pulse on the room it finds. */
.ufind { position: relative; flex: 0 1 240px; min-width: 170px; }
.ufind-box { width: 100%; box-sizing: border-box; padding: 8px 10px; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fffdf8; }
.ufind-results { position: absolute; left: 0; top: calc(100% + 4px); z-index: 120; width: max(100%, 360px); max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(20,14,8,.18); display: flex; flex-direction: column; max-height: 60vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.ufind-results[hidden] { display: none; }
.ufind-results .hint { padding: 8px 10px; }
.ufind-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--color-hairline); background: transparent; text-align: left; font: inherit; font-size: 13px; cursor: pointer; }
.ufind-row:last-child { border-bottom: 0; }
.ufind-row:hover, .ufind-row:focus-visible { background: var(--paper-2, #f6f1e7); }
.ufind-id { font-weight: 700; }
.ufind-fl, .ufind-sf, .ufind-tn { color: var(--color-text-muted); }
.ufind-row .pill { margin-left: auto; }
.ufind-tn { flex-basis: 100%; }
.ufind-tenant { padding: 7px 10px 3px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); border-bottom: 1px solid var(--color-hairline); }
.ufind-tenant b { color: var(--color-text); }
.ufind-all .ufind-go { margin-left: auto; font-weight: 700; color: #1d4ed8; }
@keyframes unit-found { 0%, 100% { stroke-width: 3; } 50% { stroke-width: 12; } }
.unit.is-found .unit-out { stroke: #1d4ed8 !important; stroke-opacity: 1 !important; animation: unit-found .7s ease-in-out 6; }
.pick-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 -2px 10px rgba(0,0,0,.08); }
.pick-bar__count { font-weight: 700; }
.pick-bar__hint { color: var(--color-text-muted); font-size: 13px; flex: 1 1 auto; }
.pick-bar .admin-btn:first-of-type { margin-left: auto; }

/* Room hover box, and the (i) marker on a room whose label is too small to read at full view. */
.plan-tip { position: fixed; z-index: 200; pointer-events: none; display: flex; flex-direction: column; gap: 2px; max-width: 260px; padding: 8px 11px; background: #fff; color: var(--color-text); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 4px 14px rgba(20,14,8,.16); font-family: var(--font-sans); font-size: 12.5px; line-height: 1.35; }
.plan-tip[hidden] { display: none; }
.plan-tip strong { font-size: 13.5px; }
.plan-tip em { margin-top: 3px; color: var(--brick); font-size: 11.5px; }
.ucramped circle { fill: #1f5fa8; stroke: #fff; stroke-width: 1.5; }
.ucramped text { fill: #fff; font-family: Georgia, serif; font-style: italic; font-weight: 700; }

/* Which side of the site this is, for a signed-in admin (2026-10-10). */
.mode-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 20px; font-family: var(--font-sans); font-size: 14px; line-height: 1.35; }
.mode-banner--wms { background: #14532d; color: #fff; }
.mode-banner--preview { background: #f59e0b; color: #1c1917; }
.mode-banner__tag { font-weight: 800; letter-spacing: .14em; font-size: 13px; padding: 3px 10px; border-radius: 4px; background: rgba(255,255,255,.2); }
.mode-banner--preview .mode-banner__tag { background: rgba(0,0,0,.14); }
.mode-banner__txt { flex: 1; min-width: 200px; }
.mode-banner__btn { padding: 6px 14px; border-radius: 100px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.mode-banner--wms .mode-banner__btn { background: #fff; color: #14532d; }
.mode-banner--preview .mode-banner__btn { background: #1c1917; color: #fff; }
@media (max-width: 600px) { .mode-banner { padding: 8px 16px; font-size: 13px; } }

/* The floor plan's version, small, bottom-right of the plan (2026-10-10). */
.plan-version { position: absolute; right: 14px; bottom: 12px; z-index: 2; font-family: var(--font-sans); font-size: 11px; color: var(--ink-soft); background: rgba(255,255,255,.85); padding: 2px 8px; border-radius: 4px; pointer-events: none; }

/* Lease files in the unit editor popup */
.lf { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.lf__head { margin-bottom: 6px; }
.lf__list { display: grid; gap: 6px; }
.lf__row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-2); }
.lf__name { font-weight: 600; word-break: break-word; flex: 1 1 200px; min-width: 0; }
.lf__meta { font-size: 12px; color: var(--muted, #6b6253); }
.lf__cur { color: #2e7d32; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
.lf__act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.lf__act .admin-btn { padding: 5px 10px; font-size: 12px; }
.lf__sure { font-size: 12px; font-weight: 600; color: #991b1b; }
.lf__empty { margin: 0; font-size: 13px; color: var(--muted, #6b6253); }
.lf__err { margin: 8px 0 0; padding: 8px 10px; border: 2px solid #b91c1c; border-radius: 6px; background: #fdecec; color: #991b1b; font-weight: 700; font-size: 13px; }
.lf__add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lf__add select { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fffdf8; }
.lf__hint { margin: 6px 0 0; font-size: 12px; color: var(--muted, #6b6253); }

/* ---- Tenant accounts (Reports -> Tenants, and the line in a unit's editor) ---- */
.acct-line { margin: 0 0 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-2); font-size: 14px; }
.acct-line a { font-weight: 700; }
.acct-note { display: block; font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.acct-box { max-height: calc(100vh - 32px); overflow-y: auto; }
.acct-box > * { flex-shrink: 0; }   /* the box scrolls as a whole; nothing in it is squashed */
.acct-box .add-fields { flex-shrink: 0; overflow: visible; }
.acct-spaces { flex-shrink: 0; max-height: 45vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 10px 10px; background: #fffdf8; }
.acct-find { width: 100%; box-sizing: border-box; margin: 0 0 8px; padding: 8px 10px; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fffdf8; }
.acct-floor { border-bottom: 1px solid var(--line); padding: 2px 0; }
.acct-floor:last-child { border-bottom: 0; }
/* The floor being looked at stays pinned at the top of the list while its rooms scroll (Dom, 2026-10-11). */
.acct-floor summary { cursor: pointer; padding: 8px 0; list-style: none; display: flex; align-items: baseline; gap: 8px; position: sticky; top: 0; z-index: 1; background: #fffdf8; }
.acct-floor summary::-webkit-details-marker { display: none; }
.acct-floor summary::before { content: '▸'; display: inline-block; width: 12px; transition: transform .15s; }
.acct-floor[open] summary::before { transform: rotate(90deg); }
.acct-floor__name { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.acct-floor__count { font-size: 13px; color: var(--ink-soft); }
.acct-floor.is-missing .acct-floor__name { color: #991b1b; }
.acct-floor .acct-space { padding-left: 20px; }
.acct-space { display: flex; align-items: baseline; gap: 6px; padding: 4px 0; font-size: 14px; cursor: pointer; }
.acct-space.is-taken { opacity: .55; cursor: not-allowed; }
.acct-space input { flex: none; }
.acct-space[hidden], .acct-floor[hidden] { display: none; }

/* Tenant editor: List / Map switch, and the map to pick rooms on (2026-10-11). */
.acct-view { display: inline-flex; align-self: flex-start; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; }
.acct-view__btn { font: inherit; font-size: 13px; font-weight: 700; padding: 6px 14px; border: 0; background: #fffdf8; color: var(--ink); cursor: pointer; }
.acct-view__btn.is-on { background: var(--ink); color: var(--paper); }
.acct-mapview[hidden], .acct-listview[hidden], .acct-spaces[hidden] { display: none; }
.acct-map__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.acct-map__tab { font: inherit; font-size: 13px; padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fffdf8; cursor: pointer; }
.acct-map__tab.is-on { border-color: var(--ink); background: var(--paper-2); font-weight: 700; }
.acct-map__tab b { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 5px; border-radius: 9px; background: #1f5fa8; color: #fff; font-size: 11px; text-align: center; }
.acct-map { max-height: 55vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.acct-map svg { display: block; width: 100%; height: auto; }
.acct-map__common { fill: rgba(154,154,154,.28); }
.acct-map__room { cursor: pointer; }
.acct-map__room polygon { fill: var(--available); fill-opacity: .35; stroke: var(--available); }
.acct-map__room:hover polygon, .acct-map__room:focus polygon { fill-opacity: .6; }
.acct-map__room:focus { outline: none; }
.acct-map__room.is-on polygon { fill: #1f5fa8; fill-opacity: .55; stroke: #1f5fa8; }
.acct-map__room.is-taken { cursor: not-allowed; }
.acct-map__room.is-taken polygon { fill: #8a8178; fill-opacity: .45; stroke: #6b6253; }
.acct-map__room text { text-anchor: middle; dominant-baseline: middle; font-family: var(--font-sans); font-weight: 800; fill: #23190f; stroke: #fff; paint-order: stroke; pointer-events: none; }
.acct-map__room.is-on text { fill: #fff; stroke: #1f5fa8; }
.acct-map__hint { margin: 6px 0 0; }
.acct-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
.acct-key--on { background: #1f5fa8; }
.acct-key--taken { background: #8a8178; }

/* Tenants table: one line per floor in the Spaces column (2026-10-11). */
.acct-tbl th:nth-child(2), .acct-tbl td:nth-child(2) { text-align: left; }
.acct-search { max-width: 640px; margin: 0 0 10px; }
.acct-search .acct-find { margin-bottom: 4px; }
.acct-findnote { margin: 0; min-height: 1.2em; }
.acct-tbl tr[hidden] { display: none; }
/* Fits the screen (2026-11-28, Dom): long names and lists wrap onto a second line instead of
   pushing the table wider, so there is no sideways scroll. If a narrow window still needs one, the
   table box is never taller than the window, so its scroll bar is always in view (not at the very
   bottom of a long list), and the column names stay on top while you scroll. */
@media (min-width: 641px) {
  .stats-scroll:has(> .acct-tbl) { max-height: calc(100vh - 120px); overflow: auto; }
  .acct-tbl th { white-space: normal; position: sticky; top: 0; z-index: 1; background: var(--paper); vertical-align: bottom; }
  .acct-tbl th, .acct-tbl td { padding: 8px 7px; }
  .acct-tbl td:first-child { white-space: normal; min-width: 150px; max-width: 210px; overflow-wrap: anywhere; }
  .acct-tbl td:nth-child(2) { white-space: normal; max-width: 200px; }
  .acct-tbl .acct-sp { white-space: normal; }
  .acct-tbl td:nth-child(9), .acct-tbl td:nth-child(10), .acct-tbl td:nth-child(11) { white-space: normal; min-width: 80px; max-width: 120px; }
}
.acct-sp { display: block; white-space: nowrap; line-height: 1.5; }
.acct-sp b { font-weight: 700; }

/* Reports -> Lease template (2026-10-11). */
.lt-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 16px; }
.lt-upload__btn { cursor: pointer; }
.lt-upload__btn.is-busy { opacity: .6; pointer-events: none; }
.lt-note { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius-sm); background: #fff4dc; border: 1px solid #e8c983; font-size: 14px; }
.lt-sent { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius-sm); background: #e6f4e8; border: 1px solid #9ccaa3; font-weight: 700; }
.lt-tbl th, .lt-tbl td { text-align: left; }
.lt-acts { white-space: nowrap; }
.lt-acts .admin-btn { margin-right: 6px; text-decoration: none; display: inline-block; }
.lt-acts .admin-btn[disabled] { opacity: .45; cursor: not-allowed; }
.lt-acts .lt-del.is-armed { background: #b3261e; color: #fff; border-color: #b3261e; }

/* Lease template: Sent leases list (2026-10-11). */
.lt-h { margin: 36px 0 12px; }
.lt-wait { color: #8a5a00; font-weight: 700; }
.lt-link { font: inherit; font-size: 13px; background: none; border: 0; padding: 0 0 0 6px; color: #1f5fa8; text-decoration: underline; cursor: pointer; }
.lt-reply + .lt-reply { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.lt-file { margin-left: 6px; white-space: nowrap; }
.lt-msgtext { white-space: pre-wrap; font: inherit; font-size: 13px; margin: 6px 0 0; padding: 8px 10px; background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius-sm); max-width: 520px; }

/* Online lease signing: the public page (sign-lease.html) and the WMS section (2026-10-11). */
.sl-wrap { max-width: 860px; }
.sl-h { margin: 6px 0 14px; }
.sl-steps { margin: 0 0 12px; padding-left: 22px; line-height: 1.7; }
.sl-msg { max-width: 640px; padding: 40px 0; }
.sl-doc { margin: 18px 0 28px; max-height: 70vh; overflow: auto; padding: 22px 26px; background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; line-height: 1.6; }
.sl-doc p { margin: 0 0 12px; }
.sl-title { text-align: center; font-size: 17px; margin: 6px 0 14px; }
.sl-term { color: #1f3f78; }
.sl-blank { padding: 0 4px; border-radius: 3px; background: #fff1b8; color: #7a5a00; font-weight: 700; }
.sl-blank.is-filled { background: #e3f1e5; color: #1d5a2a; }
.sl-form { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.sl-form .h3 { margin: 0 0 12px; }
.sl-form .h3 + .sl-grid, .sl-form .sl-consent { margin-bottom: 14px; }
.sl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
@media (max-width: 640px) { .sl-grid { grid-template-columns: 1fr; } .sl-doc { padding: 16px; } }
.sl-fld input, .sl-fld textarea { font-size: 15px; padding: 9px 10px; }
.sl-err, .lo-ferr { color: #b3261e; font-size: 13px; font-weight: 700; }
.sl-ssn-note { margin: 10px 0 22px; }
.sl-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; cursor: pointer; }
.sl-consent input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.sl-sigfld { max-width: 420px; margin: 14px 0 16px; }
.sl-sig { font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive; font-size: 22px !important; }
.sl-formerr { color: #b3261e; font-weight: 700; }
.lo-box { max-width: 720px; }
.lo-st { font-weight: 700; color: #6b6253; }
.lo-st--wait { color: #8a5a00; }
.lo-st--you { color: #1f5fa8; }
.lo-kv { border-collapse: collapse; margin: 0 0 14px; font-size: 14px; }
.lo-kv th { text-align: left; padding: 4px 14px 4px 0; color: var(--ink-soft); font-weight: 600; vertical-align: top; white-space: nowrap; }
.lo-kv td { padding: 4px 0; }
.lt-acts .lo-void.is-armed { background: #b3261e; color: #fff; border-color: #b3261e; }
.lt-hidden td { opacity: .6; }

/* Streets and a north arrow around the floor plan drawing (2026-10-11). */
.plan-frame { position: relative; display: grid; grid-template-columns: 26px 1fr; grid-template-rows: 1fr 26px; padding-top: 34px; }
.plan-frame__map { grid-column: 2; grid-row: 1; min-width: 0; }
.plan-street { display: flex; align-items: center; justify-content: center; font-family: var(--font-label, sans-serif); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #4a3f31; }
.plan-street span { padding: 2px 10px; background: #f3efe6; border-radius: 3px; white-space: nowrap; }
.plan-street--left { grid-column: 1; grid-row: 1; }
.plan-street--left span { writing-mode: vertical-rl; transform: rotate(180deg); padding: 10px 2px; }
.plan-street--bottom { grid-column: 2; grid-row: 2; }
.plan .plan-compass, .lightbox__stage .plan-compass { position: absolute; top: 2px; left: 30px; width: 58px; height: 34px; pointer-events: none; }
.lightbox__stage .plan-frame { background: #fff; }
body.is-admin .plan-topbar .ufind-box { padding: 5px 9px; font-size: 12.5px; }

/* ---- WMS: more room for the plan (2026-10-20, "we got to get more real estate") ----
   Admin workspace only; visitors' pages are untouched. A thinner header, banner and toolbar,
   the plan using the full window width and never taller than the window, and in Markers mode
   the layer list as a narrow panel down the left instead of a block under the plan. */
body.is-admin .site-header__inner { max-width: none; padding: 3px 16px; }
body.is-admin .site-header .mark { width: 28px; height: 28px; font-size: 13px; }
body.is-admin .mode-banner { padding: 2px 16px; font-size: 12px; gap: 8px; }
body.is-admin .mode-banner__tag { font-size: 10.5px; padding: 1px 7px; }
body.is-admin .mode-banner__btn { padding: 1px 10px; font-size: 11.5px; }
body.is-admin main > .section:first-child { padding-top: 4px; }
body.is-admin .section--plans .container { max-width: none; padding-left: 12px; padding-right: 12px; }
body.is-admin .plan-topbar { padding: 3px 0; gap: 3px 10px; margin-bottom: 6px; }
body.is-admin .plan-topbar .seg button, body.is-admin .plan-topbar .seg-stats { padding: 3px 9px; font-size: 11.5px; }
body.is-admin .plan-topbar .admin-controls { gap: 3px 12px; }
body.is-admin .plan-topbar .admin-group { gap: 3px; }
body.is-admin .plan-topbar .admin-btn { height: 23px; padding: 0 8px; font-size: 11.5px; }
body.is-admin .plan-topbar .ufind-box { padding: 3px 8px; font-size: 12px; }
body.is-admin .legend--bar { padding: 2px 8px; font-size: 11.5px; }
body.is-admin .plan { padding: 4px; }
body.is-admin .plan-zoom { top: 8px; right: 8px; padding: 4px 9px; font-size: 12px; }
/* The whole plan in view: never taller than the window under the pinned bars. The drawing keeps
   its shape and centers in the space (SVG "meet"), so clicks and markers land where they did. */
body.is-admin { --plan-fit-h: calc(100vh - var(--site-header-h, 0px) - var(--plan-topbar-h, 0px) - 100px); }
body.is-admin .plan > .plan-frame { width: fit-content; max-width: 100%; margin: 0 auto; grid-template-columns: 26px auto; }
body.is-admin .plan > .plan-frame .plan-frame__map svg { width: auto; height: var(--plan-fit-h); max-width: 100%; }
body.is-admin .plan > .plan-frame--tall { width: auto; grid-template-columns: 26px minmax(0, 1000px); justify-content: center; }
body.is-admin .plan > .plan-frame--tall .plan-frame__map svg { width: 100%; height: auto; }

/* Markers mode: layers on the left, plan on the right. */
body.is-admin.marking .plan { display: grid; grid-template-columns: 280px minmax(0, 1fr);   /* wider so layer names fit (2026-11-06, Dom) */ column-gap: 8px; align-items: start; }
body.is-admin.marking .plan > .plan-frame { grid-column: 2; grid-row: 1; }
body.is-admin.marking .plan > .marker-bar {
  grid-column: 1; grid-row: 1; margin-top: 0; padding: 8px; gap: 8px; font-size: 12px;
  position: sticky; top: calc(var(--site-header-h, 0px) + var(--plan-topbar-h, 0px) + 6px);
  max-height: calc(100vh - var(--site-header-h, 0px) - var(--plan-topbar-h, 0px) - 16px); overflow-y: auto;
}
body.is-admin.marking .marker-bar .mk-layers { flex-direction: column; flex-wrap: nowrap; gap: 2px; }
body.is-admin.marking .marker-bar .mk-layer { gap: 5px; line-height: 1.25; }
body.is-admin.marking .marker-bar .mk-tip { padding: 5px 7px; font-size: 11px; line-height: 1.4; }
body.is-admin.marking .marker-bar .mk-foot { flex-direction: column; align-items: stretch; gap: 5px; }
body.is-admin.marking .marker-bar .mk-foot .admin-btn { padding: 4px 8px; font-size: 11.5px; }
body.is-admin.marking .marker-bar .mk-sizewrap input { width: 100%; }

/* ---- WMS: one toolbar row (2026-10-20) ----
   Floor tabs, the three modes, Tools and View menus, Find a unit and the legend share one line;
   the green banner hides once the page scrolls. */
body.is-admin.banner-hidden .mode-banner--wms { display: none; }
body.is-admin .plan-topbar { flex-wrap: nowrap; justify-content: flex-start; align-items: center; }
body.is-admin .plan-topbar .seg { order: 1; flex: none; }
body.is-admin .plan-topbar .admin-controls { order: 2; flex: 0 1 auto; flex-basis: auto; justify-content: flex-start; }
body.is-admin .plan-topbar .ufind { order: 3; margin-left: auto; }
body.is-admin .plan-topbar .legend--bar { order: 4; flex: none; }
body.is-admin .plan-topbar .admin-group { flex-wrap: nowrap; }
@media (max-width: 1100px) { body.is-admin .plan-topbar { flex-wrap: wrap; } }
.wms-dd { position: relative; display: inline-block; }
.wms-dd > summary { list-style: none; cursor: pointer; user-select: none; }
.wms-dd > summary::-webkit-details-marker { display: none; }
.wms-dd[open] > summary { border-color: var(--brick) !important; }
.wms-dd__menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 120; min-width: 190px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(35,25,15,.18); display: flex; flex-direction: column; }
.wms-dd__item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px; border: 0; border-radius: 4px; background: none; font: inherit; font-size: 12.5px; color: var(--color-text); text-align: left; text-decoration: none; cursor: pointer; white-space: nowrap; }
.wms-dd__item:hover { background: var(--paper-2); }
.wms-dd__item--danger { color: #c0392b; }
.wms-dd__item--danger:hover { background: #c0392b; color: #fff; }
.wms-dd__chk { display: inline-flex; width: 14px; height: 14px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 3px; font-size: 11px; color: #fff; flex: none; }
.wms-dd__item[aria-checked="true"] .wms-dd__chk { background: var(--brick); border-color: var(--brick); }
.wms-dd__sep { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }

/* ---- WMS: marker panel rows, history, header (2026-10-20) ---- */
.mk-rows { display: flex; flex-direction: column; gap: 1px; }
.mk-row { display: flex; align-items: center; gap: 4px; }
.mk-row .mk-vis { margin: 0; flex: none; }
.marker-bar .mk-row .mk-tool { flex: 1; min-width: 0; gap: 5px; padding: 2px 6px; border-radius: 4px; border-color: transparent; background: none; font-size: 11.5px; text-align: left; }
.marker-bar .mk-row .mk-tool:hover { background: #fff; border-color: var(--line); }
.marker-bar .mk-row .mk-tool.is-active { background: #fff; border-color: var(--brick); box-shadow: 0 0 0 1px var(--brick); }
.mk-tool__l { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-count { font-size: 10px; font-weight: 700; color: var(--ink-soft); background: var(--paper); border-radius: 100px; padding: 0 6px; }
.mkh-list { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow-y: auto; margin: 8px 0; }
.mkh-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--line); }
body.has-tool .plan svg { cursor: crosshair; }
/* Version next to the badge, not hanging under it where the toolbar covered it. */
.wms-badge-wrap { gap: 8px; }
.wms-badge-ver { position: static; margin: 0; order: -1; }
.wms-preview { font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: #14532d; text-decoration: none; padding: 4px 10px; border: 1px solid rgba(20,83,45,.35); border-radius: 100px; white-space: nowrap; }
.wms-preview:hover { background: #14532d; color: #fff; }

/* WMS: the green button in the header line says where you are; no banner, no line. */
.wms-badge__view { text-decoration: none; display: inline-flex; align-items: center; }

/* Tools/View sat 1-2px low: a block <details> put its button on a text baseline. As a flex box
   it lines up with the other buttons exactly. */
.wms-dd { display: inline-flex; align-items: center; vertical-align: middle; }
/* Edit form: the scrolling field area clipped the left edge of each box's hover/focus border.
   A little room on every side keeps the whole border inside the scroll area. */
.confirm-box .add-fields { padding: 3px 6px 3px 3px; }

/* Paste from ChatGPT: the box to paste into, the boxes it filled (yellow) and its summary. */
.paste-box { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); font-family: ui-monospace, Consolas, monospace; font-size: 12px; line-height: 1.45; resize: vertical; }
.fld.is-filled input, .fld.is-filled select, .fld.is-filled textarea { background: #fff6c2; border-color: #d4a72c; }
.fld.is-filled .dep__chk { background: #fff6c2; border-radius: 4px; }
.paste-note { margin: 0 0 10px; padding: 8px 12px; background: #fff6c2; border: 1px solid #d4a72c; border-radius: var(--radius-sm); font-size: 12.5px; line-height: 1.45; }
.paste-note ul { margin: 4px 0 0 18px; padding: 0; }
.gpt-steps { margin: 0 0 10px 18px; padding: 0; font-size: 13px; line-height: 1.5; }
#gptCopy { margin-top: 8px; }
.gpt-copy-name { padding: 2px 8px; font-size: 11.5px; margin-left: 4px; vertical-align: middle; }

/* Room form (2026-10-20): deposit payment details, default-rent hint, extra charges. */
.dep--pay { flex-wrap: wrap; }
.dep--pay .f-deposit { width: 110px; flex: none; }
.dep__paid { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dep__paid[hidden] { display: none; }
.dep__paid .f-depdate { width: 140px; }
.dep__paid .f-depmethod { width: auto; }
.dep__paid .f-depref { width: 110px; }
.rent-hint { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-soft); }
.chg-list { display: flex; flex-direction: column; gap: 6px; }
.chg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-2); }
.chg .chg-label { flex: 1 1 180px; min-width: 140px; }
.chg .chg-amount { width: 100px; }
.chg .chg-amount[readonly] { background: var(--paper-2); }
.chg .chg-date { width: 140px; }
.chg-calc { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.chg-calc input { width: 72px; }
.chg-del { border: 0; background: none; color: #c0392b; font-size: 14px; cursor: pointer; padding: 2px 6px; }
.chg-add { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chg-add .admin-btn { padding: 4px 10px; font-size: 12px; }
.ss-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.ss-rates > .fld__l { grid-column: 1 / -1; }
.ss-rates .fld { font-size: 12.5px; }
.chg.is-filled { background: #fff6c2; border-color: #d4a72c; }
.paste-file { display: inline-flex; margin-top: 8px; cursor: pointer; }
.paste-file-name { margin-left: 8px; font-size: 12px; color: var(--ink-soft); }

/* Edit map's big view starts BELOW the site header (2026-10-20): the header sat on top of it and
   hid the "Draw and drag rooms" hint and the Done editing button. The version line is hidden
   while editing, where it sat over the shape buttons. */
#planBox.plan--zoomed { top: calc(var(--site-header-h, 0px) + 8px); }
#planBox.plan--zoomed .plan-zoom { top: calc(var(--site-header-h, 0px) + 16px); }
#planBox.plan--zoomed .zoom-hint { top: calc(var(--site-header-h, 0px) + 18px); }
#planBox.plan--zoomed .plan-version { display: none; }
.mk-all { padding-bottom: 3px; margin-bottom: 3px; border-bottom: 1px solid var(--line); font-size: 12px; gap: 6px; cursor: pointer; }
.mk-swatch--sq { border-radius: 4px; }

/* Markers/Labels panel: groups, each with its own size slider (2026-10-20). */
.mk-group { padding: 4px 0 2px; border-top: 1px solid var(--line); }
.mk-group:first-child { border-top: 0; }
.mk-group__h { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin: 2px 0 3px; }
.mk-group__h span:first-child { flex: 1; }
.mk-gsize { width: 64px; }
.mk-gpct { width: 34px; text-align: right; font-weight: 600; text-transform: none; letter-spacing: 0; }
/* Fit the group rows in the 280px panel: no clipped % and no sideways scroll. */
body.is-admin.marking .plan > .marker-bar { overflow-x: hidden; }
.mk-group__h { gap: 4px; letter-spacing: .03em; }
.mk-group__h span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-gsize { width: 50px; flex: none; }
.mk-gpct { width: 32px; flex: none; font-size: 10px; }

/* Fire escape plan (2026-10-20). On screen: rooms dimmed so routes and safety markers stand out. */
body.escaping .plan .unit { opacity: .45; }
.esc-route { cursor: pointer; }
.esc-route.is-sel { stroke: #2563eb; }   /* selected = blue, routes are orange */
.esc-here { cursor: grab; }
.esc-here.is-sel circle { stroke: #2563eb; }
.esc-bar .mk-tool { display: flex; width: 100%; gap: 6px; align-items: center; padding: 4px 6px; margin-bottom: 4px; border-radius: 4px; font-size: 12px; text-align: left; }
.esc-bar .esc-finish, .esc-bar .esc-del { width: 100%; margin-top: 4px; }
.esc-star { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 12px; padding: 2px 0; }
.esc-star span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esc-star .admin-btn { padding: 2px 8px; }
.esc-bar select { width: 100%; }
.pl-sw--sq { border-radius: 3px !important; }
.pl-line { display: inline-block; width: 28px; height: 5px; background: #15803d; border-radius: 3px; margin-right: 6px; }
@media print {
  .esc-page { page-break-after: always; break-after: page; }
  .esc-page:last-child { page-break-after: auto; break-after: auto; }
  .esc-sheet svg { max-height: 66vh !important; }
  .esc-title { color: #b91c1c; font-size: 30px; text-align: center; letter-spacing: .06em; margin: 0; }
  .esc-sub { text-align: center; font-family: var(--font-sans); font-size: 14px; margin: 2px 0 8px; }
  .esc-howto { margin-top: 8px; padding: 6px 10px; border: 2px solid #b91c1c; border-radius: 6px; font-family: var(--font-sans); font-size: 13px; text-align: center; }
  .esc-sheet .pl-legend { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 8px; }   /* centered (2026-11-04, Dom) */
  .esc-sheet .pl-foot { margin-top: 8px; }
}
/* Fire escape printout: plain grey rooms, so the green routes and red star are what stand out. */
.esc-sheet svg .unit polygon, .esc-sheet svg .unit rect { fill: #eceff1 !important; fill-opacity: 1 !important; stroke: #78838c !important; }
.esc-sheet svg .unit .unit-out { stroke: #78838c !important; }
.esc-handle { cursor: move; }
.esc-bar .mk-tool[disabled] { opacity: .45; cursor: not-allowed; }
.esc-need { margin: 2px 0 6px; }
.esc-bar .mk-title { display: block; margin-top: 4px; }
.esc-size { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 6px; margin-bottom: 8px; padding-right: 12px; font-size: 12px; }
.esc-size label { font-weight: 700; }
.esc-size__box { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; }
.esc-size__box input { width: 50px; padding: 3px 4px; border: 1px solid var(--line); border-radius: 6px; font: inherit; text-align: right; }
.esc-size input[type=range] { grid-column: 1 / -1; width: 100%; margin: 2px 0 0; }
/* The scale under the slider: 10% at the left end, 100% at the right, the rest where they fall. */
.esc-size__scale { grid-column: 1 / -1; position: relative; height: 13px; margin: 0 8px; font-size: 9.5px; color: var(--ink-soft); }
.esc-size__scale span { position: absolute; transform: translateX(-50%); }
.esc-colors { display: flex; gap: 6px; margin-top: 4px; }
.esc-color { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.esc-color.is-on { box-shadow: 0 0 0 2px var(--ink); }
/* Fire escape plan: its own dark red button at the far right of the toolbar. */
/* Just left of Find a unit, about a button's width clear of the white buttons (2026-10-20). */
body.is-admin .plan-topbar #escTop { order: 3; flex: none; margin-left: 80px; }
body.is-admin .plan-topbar .ufind { order: 4; }
body.is-admin .plan-topbar .legend--bar { order: 5; }
body.is-admin .plan-topbar .esc-top-btn { background: #991b1b; color: #fff; border-color: #991b1b; font-weight: 700; }
body.is-admin .plan-topbar .esc-top-btn:hover { background: #7f1d1d; border-color: #7f1d1d; }
body.is-admin .plan-topbar .esc-top-btn.is-on { background: #7f1d1d; box-shadow: 0 0 0 2px #fecaca; }

/* Print the floor plan: a Print button in the Enlarge view; the printed page. */
.lightbox__print { position: absolute; top: 10px; right: 56px; z-index: 2; }
@media print {
  .plan-sheet .esc-sub { text-align: left; font-family: var(--font-sans); font-size: 13px; margin: 0 0 8px; }
  .plan-sheet .plan-frame { display: grid; }
  .plan-sheet svg { max-height: 72vh !important; }
  .plan-sheet .pl-legend { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
}
.pl-sw--common { background: #f4f2ec radial-gradient(#9a9a9a 1px, transparent 1.2px) 0 0 / 4px 4px; border: 1px solid #9a9a9a; }

/* Management -> Visitors (2026-10-21). */
.vis-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 12px; }
.vis-tiles--one { grid-template-columns: minmax(150px, 320px); margin-top: 12px; }
.vis-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; }
.vis-tile__l { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: var(--ink-soft); }
.vis-tile__n { font-family: var(--font-serif); font-size: 34px; line-height: 1.1; margin: 4px 0 2px; color: var(--ink); }
.vis-tile__s { font-size: 12.5px; color: var(--ink-soft); }
.vis-h { font-family: var(--font-serif); font-size: 22px; margin: 26px 0 10px; }
.vis-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.vis-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-soft); }
.vis-form input { padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 14px; }
.vis-chart { width: 100%; height: 200px; margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.vis-key { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.vis-sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-left: 8px; }
.vis-pages { border-collapse: collapse; min-width: 280px; font-size: 14px; }
.vis-pages td { padding: 5px 12px 5px 0; border-bottom: 1px solid var(--line); }
.vis-pages td:last-child { text-align: right; font-weight: 600; }
.esc-mk { cursor: grab; }
.esc-mk.is-sel circle, .esc-mk.is-sel rect { stroke: #2563eb; }
.esc-bar .esc-select.is-active { border-color: #475569; box-shadow: 0 0 0 1px #475569; }
/* Exit signs: red rectangles with EXIT on them (2026-10-21). */
.mk-swatch.mk-swatch--sign, .pl-sw.pl-sw--sign { width: auto; min-width: 30px; padding: 0 4px; border-radius: 2px; font-size: 8px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.vis-places { display: flex; flex-wrap: wrap; gap: 8px 40px; align-items: flex-start; }
.vis-pages th { text-align: right; font-size: 11px; font-weight: 600; color: var(--ink-soft); padding: 0 0 4px 12px; }
.vis-pages td + td { padding-left: 12px; }
.vis-dl { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.vis-dl .btn { font-size: 13px; padding: 8px 14px; }

/* Visitors summary (2026-10-21): headline number + 30-day trend; phone friendly. */
.vis-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 16px 10px; margin-bottom: 14px; }
.vis-hero__l { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: var(--ink-soft); }
.vis-hero__n { font-family: var(--font-serif); font-size: 46px; line-height: 1.05; color: var(--ink); }
.vis-hero__s { font-size: 13px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.vis-hero__chg { font-weight: 600; color: var(--ink); }
.vis-trend { position: relative; margin-top: 10px; width: 100%; touch-action: pan-y; }
.vis-trend svg { display: block; width: 100%; height: auto; overflow: visible; cursor: crosshair; }
.vis-trend__x { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
.vis-tip { position: absolute; top: -6px; transform: translateY(-100%); background: var(--ink); color: var(--paper); font-size: 12px; line-height: 1.35; padding: 6px 9px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 2; }
@media (max-width: 560px) {
  .vis-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .vis-tile { padding: 10px 12px; }
  .vis-tile__n { font-size: 26px; }
  .vis-hero__n { font-size: 38px; }
  .vis-places { flex-direction: column; gap: 0; }
  .vis-place, .vis-pages { width: 100%; min-width: 0; }
  .vis-form { gap: 8px; }
  .vis-form label { flex: 1 1 130px; }
  .vis-dl .btn { flex: 1 1 100%; }
}
/* Management tabs wrap on a phone instead of pushing the page sideways (2026-10-21). */
@media (max-width: 640px) {
  .report-tabs { display: flex; flex-wrap: wrap; max-width: 100%; }
  .report-tab { flex: 1 1 auto; text-align: center; padding: 8px 10px; border-bottom: 1px solid var(--color-hairline); }
}
/* Phones: the header's WMS badge fits beside the logo (2026-10-21). */
@media (max-width: 480px) {
  .wms-badge-ver, .wordmark__sub { display: none; }
  .wms-badge { font-size: 11.5px; padding: 4px 4px 4px 9px; gap: 4px; }
  .wms-badge__out { padding: 3px 8px; font-size: 11px; }
  .site-header__inner { gap: 8px; padding-left: 12px; padding-right: 12px; }
}

/* ===== Phones (2026-10-21): "make this extremely mobile friendly" ===== */
@media (max-width: 640px) {
  /* Typing never makes an iPhone zoom in (it zooms on text under 16px). */
  input, select, textarea { font-size: 16px !important; }
  /* Finger-sized buttons. */
  .btn, .admin-btn, .wms-dd__item, .report-tab, .mk-tool { min-height: 40px; }
  .container { padding-left: 14px; padding-right: 14px; }
  .h1 { font-size: 36px; }
  /* The WMS banner stays one slim line. */
  .mode-banner__txt { display: none; }
  .mode-banner { padding: 4px 12px; }

  /* Tables become cards: one card per row, each value with its column's name. */
  .stats-scroll { overflow: visible; }
  table.stats-table.has-labels, table.stats-table.has-labels tbody, table.stats-table.has-labels tfoot { display: block; width: 100%; }
  table.stats-table.has-labels thead { display: none; }
  table.stats-table.has-labels tr { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; margin-bottom: 10px; }
  table.stats-table.has-labels td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; white-space: normal; text-align: right; padding: 7px 0; border-bottom: 1px solid var(--line); }
  table.stats-table.has-labels td:last-child { border-bottom: 0; }
  table.stats-table.has-labels td:first-child { font-weight: 700; font-size: 15px; text-align: left; }
  table.stats-table.has-labels td::before { content: attr(data-label); font-family: var(--font-label); text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; color: var(--ink-soft); text-align: left; flex: none; }
  table.stats-table.has-labels td[data-label=""]::before { content: none; }
  table.stats-table.has-labels tfoot tr { background: var(--paper-2); }

  /* Pop-up boxes use the whole phone. */
  .confirm-modal { padding: 8px !important; align-items: flex-end; }
  .confirm-box { max-width: none !important; width: 100%; max-height: 94vh; padding: 16px; border-radius: 14px; }
  .confirm-actions { flex-wrap: wrap; gap: 8px; }
  .confirm-actions .admin-btn { flex: 1 1 auto; }
  .uedit-box .add-fields { grid-template-columns: 1fr !important; }
  .dep--pay .f-deposit { width: 100%; }
  .dep__paid { width: 100%; }
  .dep__paid > * { flex: 1 1 120px; }
  .chg .chg-label { flex: 1 1 100%; }

  /* Floor plan WMS: the Markers / Fire escape panel sits above the plan, not squeezed beside it. */
  body.is-admin.marking .plan { display: block; }
  body.is-admin.marking .plan > .marker-bar { position: static; max-height: none; margin-bottom: 10px; }
  body.is-admin.marking .marker-bar .mk-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
  body.is-admin .plan-topbar { flex-wrap: wrap; }
  body.is-admin .plan-topbar #escTop { margin-left: 0; }
  body.is-admin .plan-topbar .ufind { flex: 1 1 100%; margin-left: 0; }
  .wms-dd__menu { position: fixed; left: 8px; right: 8px; top: auto; }
}
.vis-tile--wms { background: #f3f7f4; border-color: #cfe0d4; }
.vis-chart2 { margin-top: 12px; }

/* WMS floor plans: the ☰ menu at every width; the public links live inside it (2026-10-21). */
body.wms-mode .nav-toggle { display: block; order: 3; margin-left: 4px; }
body.wms-mode .site-nav {
  position: fixed; top: 100%; left: auto; right: 0; width: min(360px, 100vw); height: 100vh; height: 100dvh;
  z-index: 200; background: var(--paper); flex-direction: column; align-items: flex-start; gap: 0;
  padding: 24px; transform: translateX(100%); transition: transform 250ms ease; overflow-y: auto;
  box-shadow: -12px 0 30px rgba(0,0,0,.12);
}
body.wms-mode .site-nav.is-open { transform: translateX(0); }
body.wms-mode .site-nav a { font-family: var(--font-serif); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); border-radius: 0; }
body.wms-mode .site-nav a[aria-current="page"]::after { display: none; }
body.wms-mode .site-nav a[data-wms-link] { color: var(--brick); }
body.wms-mode .wms-badge-wrap { margin-left: auto; }

/* Mobile Access: signed in / out at a glance, a friendlier sign-in (2026-10-21). */
.ac-status { display: flex; align-items: center; gap: 8px; margin: 14px 0 10px; font-family: var(--font-sans); font-size: 14px; }
.ac-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ac-dot--on { background: #1f7a33; box-shadow: 0 0 0 3px rgba(31,122,51,.2); }
.ac-dot--off { background: #9a9a9a; box-shadow: 0 0 0 3px rgba(154,154,154,.2); }
.ac-out { margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 100px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; min-height: 36px; }
.ac-login { max-width: 380px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.ac-login__lock { font-size: 28px; line-height: 1; }
.ac-login__h { font-family: var(--font-serif); font-size: 22px; margin: 8px 0 4px; }
.ac-login__pw { display: flex; gap: 6px; margin-top: 10px; }
.ac-login__pw .ac-search { flex: 1; margin: 0; }
.ac-login__show { background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 12px; font: inherit; font-size: 13px; cursor: pointer; }
.ac-login .btn { width: 100%; margin-top: 10px; min-height: 46px; font-size: 16px; }
.ac-controls[hidden] { display: none !important; }

/* Unit tours (2026-10-21): the edit-form section and the viewer. */
.tour-sec { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.tour-list { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tour-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.tour-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tour-add .admin-btn { cursor: pointer; }
.tour-progress { position: relative; height: 22px; margin-top: 8px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 100px; overflow: hidden; }
.tour-progress[hidden] { display: none; }
.tour-progress__bar { position: absolute; inset: 0 auto 0 0; width: 0; background: #1f7a33; transition: width .2s; }
.tour-progress__txt { position: relative; display: block; text-align: center; font-size: 11.5px; line-height: 22px; font-weight: 600; }
.tour-msg { margin-top: 6px; }
.tour-modal { position: fixed; inset: 0; z-index: 500; background: rgba(15,12,8,.86); display: flex; align-items: center; justify-content: center; padding: 12px; }
.tour-box { width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 8px; }
.tour-head { display: flex; align-items: center; gap: 8px; color: #fff; font-family: var(--font-sans); font-size: 15px; }
.tour-close { margin-left: auto; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 50%; width: 40px; height: 40px; font-size: 18px; cursor: pointer; }
.tour-stage { background: #000; border-radius: 10px; overflow: hidden; }
.tour-video { display: block; width: 100%; max-height: 75vh; background: #000; }
.tour-pano { width: 100%; height: min(70vh, 640px); }
.tour-nav { display: flex; align-items: center; justify-content: center; gap: 12px; color: #fff; font-size: 13px; }
.tour-nav .admin-btn { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); min-width: 48px; }
@media (max-width: 640px) { .tour-modal { padding: 0; } .tour-box { height: 100%; justify-content: center; padding: 8px; } .tour-pano { height: 62vh; } }

/* Notes (2026-10-21): phone first. */
.note-form { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.note-form textarea, .note-edit { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; line-height: 1.45; background: #fff; resize: vertical; }
.note-form .btn { align-self: flex-start; min-height: 46px; padding: 0 24px; font-size: 15px; }
.notes-h { font-family: var(--font-serif); font-size: 22px; margin: 26px 0 10px; }
.notes-h span, .notes-done summary span { font-family: var(--font-sans); font-size: 13px; color: var(--ink-soft); }
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.note { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.note.is-done { opacity: .7; }
.note__text { font-size: 15px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.note__meta { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.note__acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.notes-done { margin-top: 20px; max-width: 640px; }
.notes-done summary { cursor: pointer; font-family: var(--font-serif); font-size: 20px; margin-bottom: 10px; }
.notes-msg { color: #1f7a33; font-weight: 600; margin: 10px 0 0; }
.ac-out { text-decoration: none; color: inherit; display: inline-flex; align-items: center; }
.ac-out + .ac-out { margin-left: 6px; }
@media (max-width: 640px) { .note-form .btn { align-self: stretch; } }
/* Phones (2026-10-21): pop-ups sit in the middle of what is actually visible. Pinned to the bottom,
   the iPhone's browser toolbar covered the password box. dvh = the visible height, toolbars excluded. */
@media (max-width: 640px) {
  .confirm-modal { align-items: center !important; padding: 12px !important; height: 100vh; height: 100dvh; }
  .confirm-box { max-height: 86vh; max-height: 86dvh; overflow-y: auto; }
  .login-box { margin: auto 0; }
}

/* Launcher /app (2026-10-21): one link for the phone. */
body.launch { background: var(--paper); min-height: 100vh; min-height: 100dvh; }
.launch__main { max-width: 560px; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 16px 28px; }
.launch__head { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; }
.launch__name { font-family: var(--font-serif); font-size: 26px; font-weight: 700; line-height: 1.1; }
.launch__sub { color: var(--ink-soft); font-size: 15px; }
.launch__ver { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; font-weight: 800; color: var(--ink); margin: 2px 0; }
.launch__status { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); margin: 0 0 14px; }
.launch__list { display: flex; flex-direction: column; gap: 12px; }
.launch__card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--ink); box-shadow: 0 2px 8px rgba(35,25,15,.05); }
.launch__card:active { transform: scale(.99); }
.launch__ico { font-size: 30px; line-height: 1; flex: none; }
.launch__card b { display: block; font-size: 18px; margin-bottom: 3px; }
.launch__card b + span { display: block; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.launch__tip { font-size: 12.5px; color: var(--ink-soft); margin-top: 18px; line-height: 1.5; }

/* Tickets (2026-10-21). */
.tk-where-in { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: #fff; }
.tk-tabs { display: flex; gap: 8px; margin: 22px 0 10px; max-width: 640px; }
.tk-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 100px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 40px; }
.tk-tabs button.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tk-tabs span { opacity: .7; font-weight: 400; margin-left: 4px; }
.tk-tabs .tk-new { margin-left: auto; background: var(--color-accent, #b5651d); border-color: var(--color-accent, #b5651d); color: #fff; }
.tk-add__btns { display: flex; gap: 10px; flex-wrap: wrap; }
#tkForm { margin-bottom: 8px; }
.tks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.tk { background: #fff; border: 1px solid var(--line); border-left: 5px solid #9a9a9a; border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.tk--open { border-left-color: #c8102e; } .tk--scheduled { border-left-color: #2563eb; } .tk--in_progress { border-left-color: #d97706; }
.tk--done { border-left-color: #1f7a33; opacity: .8; } .tk--cancelled { opacity: .6; }
.tk__top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12px; margin-bottom: 4px; }
.tk__st { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.tk__urgent { color: #c8102e; font-weight: 700; }
.tk__date { margin-left: auto; color: var(--ink-soft); }
.tk__date.is-late { color: #c8102e; font-weight: 700; }
.tk__what { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.tk__where, .tk__who { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.tk-edit { max-width: 620px !important; }
.tk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; overflow-y: auto; }
.tk-fields .fld--wide, .tk-sub, .tk-call, .tk-urgent { grid-column: 1 / -1; }
.tk-fields textarea, .tk-fields input:not([type=checkbox]), .tk-fields select { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 14px; background: #fff; }
.tk-sub { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
/* Checkboxes in a ticket sit on the left with their words (2026-11-03, Dom); Urgent is red and bold. */
.tk-fields .dep__chk { justify-self: start; font-size: 14px; gap: 8px; }
.tk-fields .dep__chk input { width: 18px; height: 18px; margin: 0; }
.tk-urgent { color: #c81e28; font-weight: 800; font-size: 16px !important; }
.tk-call { display: flex; gap: 8px; }
.tk-log { grid-column: 1 / -1; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.tk-log ul { list-style: none; margin: 4px 0 0; padding: 0; }
.tk-log li { padding: 3px 0; border-bottom: 1px solid var(--line); }
.tk-log li span { color: var(--ink-soft); margin-right: 6px; }
.tk-err { color: var(--brick); font-size: 13px; min-height: 1em; margin: 6px 0; }
@media (max-width: 640px) { .tk-fields { grid-template-columns: 1fr; } }

/* WMS Updates (was What's new, 2026-10-22): the running work list. */
.wn-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 680px; }
.wn-add input[name=text] { flex: 1 1 260px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: #fff; }
.wn-icon-pick { padding: 9px 8px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; background: #fff; }
.wn-top { flex-basis: 100%; }
.wn-h { font-size: 17px; margin: 26px 0 8px; display: flex; gap: 8px; align-items: baseline; }
.wn-h span { font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.wn-list { list-style: none; margin: 0; padding: 0; max-width: 680px; display: flex; flex-direction: column; gap: 6px; }
.wn { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; min-height: 44px; }
.wn.is-drag { box-shadow: 0 6px 20px rgba(0,0,0,.18); border-color: var(--ink); position: relative; z-index: 2; }
.wn-grip { cursor: grab; touch-action: none; user-select: none; color: var(--ink-soft); font-size: 20px; padding: 4px 6px; line-height: 1; }
.wn-n { font-size: 12px; color: var(--ink-soft); min-width: 1.3em; text-align: right; }
.wn-ico { font-size: 18px; flex: none; }
.wn-text { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 6px 2px; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; overflow-wrap: anywhere; }
.wn-btns { display: flex; gap: 4px; flex: none; }
.wn-btns button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; cursor: pointer; color: var(--ink-soft); }
.wn-btns button:disabled { opacity: .3; cursor: default; }
.wn-btns .wn-done { color: #1f7a33; font-size: 18px; font-weight: 700; border-color: #b9dcc1; background: #f1faf3; }
.wn-day { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.wn--done { background: #f7f5f0; min-height: 38px; }
.wn--done .wn-text { color: var(--ink-soft); font-size: 14px; }
.wn-undo { background: none; border: 0; color: var(--brick); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0 4px; }
.wn-edit input[name=text] { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; margin: 10px 0 4px; }
.wn-icons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.wn-icon-btn { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 2px; font-size: 20px; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.wn-icon-btn small { font-size: 10.5px; color: var(--ink-soft); }
.wn-icon-btn.is-on { border-color: var(--ink); background: #f1ece2; box-shadow: inset 0 0 0 1px var(--ink); }
.wn-remove { color: var(--brick) !important; margin-right: auto; }
@media (max-width: 640px) { .wn-n { display: none; } .wn-btns button { width: 34px; } }
/* WMS Updates: Done folded, grouped by version (2026-10-22). */
.wn-donebox > summary, .wn-ver > summary { cursor: pointer; list-style: none; }
.wn-donebox > summary::-webkit-details-marker, .wn-ver > summary::-webkit-details-marker { display: none; }
.wn-donebox > summary::before, .wn-ver > summary::before { content: '▸'; display: inline-block; width: 1em; color: var(--ink-soft); transition: transform .15s; }
.wn-donebox[open] > summary::before, .wn-ver[open] > summary::before { transform: rotate(90deg); }
.wn-ver { max-width: 680px; margin: 6px 0; }
.wn-ver > summary { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.wn-ver > summary span { font-size: 13px; color: var(--ink-soft); }
.wn-ver > .wn-list { margin: 6px 0 10px 14px; }
.wn-day-sm { font-size: 12px; color: var(--ink-soft); flex: none; white-space: nowrap; }
/* The Done button is an empty box with the word Done - it no longer looks already ticked. */
.wn-btns .wn-done { width: auto; padding: 0 10px 0 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); background: #fff; border-color: var(--line); }
.wn-box { width: 16px; height: 16px; border: 2px solid #8a8a8a; border-radius: 4px; display: inline-block; box-sizing: border-box; }
.wn-btns .wn-done:hover .wn-box { border-color: #1f7a33; background: #e8f5eb; }
/* WMS Updates (was What's new): lead line over the add box, and the Done pop-up. */
.wn-lead { flex-basis: 100%; margin: 0 0 2px; font-size: 14px; color: var(--ink-soft); }
.wn-lead b { color: var(--ink); }
.wn-splash { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(20,20,20,.25); animation: wnIn .18s ease-out; padding: 16px; }
.wn-splash.is-out { opacity: 0; transition: opacity .3s; }
.wn-splash__box { background: #fff; border-radius: 18px; padding: 26px 30px; text-align: center; max-width: 340px; box-shadow: 0 16px 50px rgba(0,0,0,.25); }
.wn-splash__tick { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: #1f7a33; color: #fff; font-size: 38px; font-weight: 700; line-height: 64px; }
.wn-splash__h { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.wn-splash__t { font-size: 15px; color: var(--ink); line-height: 1.4; }
.wn-splash__v { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
@keyframes wnIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
/* /app launcher: Close button (2026-10-22). */
.launch__main { position: relative; }
.launch__close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 16px; border: 1px solid var(--line); background: #fff; border-radius: 100px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; min-height: 40px; }
.launch__closehint { background: #fff8e6; border: 1px solid #ecd9a6; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin: 0 0 12px; }
.launch__closehint[hidden] { display: none; }
.launch__head { padding-right: 96px; }
.site-nav .nav-app { font-weight: 700; }
/* /app: add to home screen (2026-10-22). */
.ins { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.ins[hidden] { display: none; }
.ins__h { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.ins__btns { display: flex; gap: 10px; }
.ins__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #faf8f3; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.ins__btn svg { width: 22px; height: 22px; }
.ins__btn[data-ins=android] svg { color: #3ddc84; }
.ins__btn.is-mine { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.ins__how { margin-top: 12px; font-size: 14px; line-height: 1.5; }
.ins__how[hidden], .ins__done[hidden] { display: none; }
.ins__how p { margin: 0 0 6px; }
.ins__how ol { margin: 0; padding-left: 20px; }
.ins-share { width: 18px; height: 18px; vertical-align: -3px; color: #2563eb; }
.ins__done { margin: 12px 0 0; color: #1f7a33; font-size: 14px; }
/* Tickets: type, floor chips, unit, reported by (2026-10-22). */
.tk-add { max-width: 640px; display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.tk-add textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; }
.tk-add .btn { align-self: flex-start; }
.tk-fields--add { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.tk-fields--add select, .tk-fields--add input:not([type=checkbox]) { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: #fff; }
.tk-f-wide { grid-column: 1 / -1; }
.tk-fields .fld__l i { font-style: normal; font-weight: 400; opacity: .7; }
.tk-floors { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tk-chip { border: 1px solid var(--line); background: #faf8f3; border-radius: 100px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; min-height: 40px; }
.tk-chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tk-unit-fld[hidden] { display: none; }
.tk-rep__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 4px; }
.tk-rep__ten { margin-top: 6px; display: inline-flex; }
.tk-rep__note { display: block; font-size: 12.5px; color: #1f7a33; margin-top: 4px; }
.tk__cat { background: #f1ece2; border-radius: 100px; padding: 2px 9px; font-weight: 600; color: var(--ink); }
.tk__ten { font-size: 11px; background: #e8f0fb; color: #2456a6; border-radius: 100px; padding: 1px 7px; margin-left: 4px; }
.tk__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tk__tags .tk__ten { margin-left: 0; white-space: nowrap; }
.tk__who { overflow-wrap: anywhere; }
@media (max-width: 640px) { .tk-fields--add { grid-template-columns: 1fr; } .tk-rep__row { grid-template-columns: 1fr; } }
/* Tickets: age, notes, folded work fields (2026-10-22). */
.tk__age { color: var(--ink-soft); }
.tk-h-age { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-left: 8px; }
.tk-more { border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; }
.tk-more > summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.tk-more > summary i { font-style: normal; font-weight: 400; opacity: .7; }
.tk-more[open] > summary { margin-bottom: 10px; }
.tk-add > .fld textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; }
.tk-notes textarea { width: 100%; box-sizing: border-box; }
.tk-notes__list { list-style: none; margin: 6px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tk-notes__list li { background: #fffbea; border: 1px solid #efe2b0; border-radius: 10px; padding: 8px 10px; font-size: 14px; line-height: 1.45; }
.tk-notes__list li span { display: block; font-size: 11.5px; color: var(--ink-soft); margin-bottom: 2px; }
details.tk-log > summary { cursor: pointer; }
/* Tickets: floors as one connected row of rectangles, divided by lines (2026-10-22). */
.tk-floors { display: flex; flex-wrap: nowrap; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #faf8f3; }
.tk-floors .tk-chip { flex: 1 1 0; min-width: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 6px 4px; min-height: 38px; font-size: 12.5px; font-weight: 600; line-height: 1.15; background: transparent; white-space: normal; text-align: center; }
.tk-floors .tk-chip:first-child { border-left: 0; }
.tk-floors .tk-chip.is-on { background: var(--ink); color: var(--paper); }
.tk-floors .tk-chip.has-spot.is-on { box-shadow: inset 0 0 0 3px #2e9b4f; }
.tk-spot-hint { margin: 6px 0 0; font-size: 13px; color: #2e7d46; }
.tk-spot { margin-top: 8px; }
.tk-spot__do { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: #2e7d46; }
.tk-spot .sm__scroll { max-height: calc(88vh - 250px); }
@media (max-width: 420px) { .tk-floors .tk-chip { font-size: 11.5px; padding: 5px 2px; } }
/* Who's doing the work: vendor contact line and the new-vendor boxes. */
.tk-vinfo { margin: -4px 0 0; font-size: 13px; color: var(--ink-soft); }
.tk-vinfo:empty { display: none; }
.tk-vinfo a { color: var(--ink); font-weight: 600; text-decoration: none; }
.tk-newv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: #f4f8ff; border: 1px solid #cddcf5; border-radius: 10px; padding: 10px; }
.tk-newv[hidden] { display: none; }
.tk-newv__h { grid-column: 1 / -1; font-size: 12.5px; font-weight: 700; color: #2456a6; }
.tk-newv input { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 16px; background: #fff; }
@media (max-width: 640px) { .tk-newv { grid-template-columns: 1fr; } }
/* Vendors page (2026-10-22). */
.vn-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 760px; }
.vn-bar input[type=search], .vn-bar select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: #fff; flex: 1 1 180px; min-width: 0; }
/* Vendors as a table, one row each (2026-11-04, Dom: like a contact list, no cards, no emoji). */
.vnt { width: 100%; max-width: 1100px; margin-top: 16px; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 14px; }
.vnt th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); background: #faf7f1; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.vnt td { padding: 11px 14px; border-bottom: 1px solid #efe9de; vertical-align: top; overflow-wrap: anywhere; }
.vnt tbody tr:last-child td { border-bottom: 0; }
.vnt tbody tr { cursor: pointer; }
.vnt tbody tr:hover td, .vnt tbody tr:focus-visible td { background: #fbf8f3; }
.vnt a { color: var(--ink); text-decoration: none; }
.vnt a:hover { text-decoration: underline; }
.vnt__work { color: var(--ink-soft); font-size: 13px; }
.vnt__st { white-space: nowrap; }
.vn__name { font-weight: 700; font-size: 15px; }
.vn__who { color: var(--ink-soft); font-size: 13px; margin-top: 2px; }
.vn__none { color: #b3aa9d; }
.vn__sub { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.vn__off { font-size: 11px; font-weight: 600; border: 1px solid #d9cfc0; border-radius: 4px; padding: 0 5px; margin-left: 6px; color: #8a7f70; vertical-align: 1px; }
.vn--off td, .vn--off a, .vn--off .vn__name, .vn--off .vn__ok, .vn--off .vn__no { color: #9a9184 !important; }
@media (max-width: 720px) {
  /* Phones: each vendor stacks into a short block; the column names go in front of the values. */
  .vnt, .vnt tbody, .vnt tr, .vnt td { display: block; width: 100%; }
  .vnt thead { display: none; }
  .vnt tbody tr { padding: 10px 14px; border-bottom: 1px solid #efe9de; }
  .vnt tbody tr:last-child { border-bottom: 0; }
  .vnt td { padding: 2px 0; border: 0; }
  .vnt td[data-l]::before { content: attr(data-l); display: inline-block; width: 64px; font-size: 12px; color: var(--ink-soft); }
  .vnt__st .vn__sub { display: inline; margin-left: 6px; }
}
.vn-edit { max-width: 620px !important; }
.vn-trades { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 10px; margin-top: 4px; }
.vn-trade { display: flex; align-items: center; gap: 6px; font-size: 13.5px; padding: 4px 0; cursor: pointer; }
.vn-trades .vn-trade input { width: auto !important; flex: none; margin: 0; padding: 0; }
.vn-trades .vn-trade span { display: inline; font-size: 13.5px; }
.vn-trades .vn-trade { flex-direction: row; justify-content: flex-start; }
/* Green WMS button: "Go to ▾" menu (2026-10-22). */
.wms-go { position: relative; display: inline-flex; }
.wms-go > summary { list-style: none; cursor: pointer; white-space: nowrap; }
.wms-go > summary::-webkit-details-marker { display: none; }
.wms-go__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 300; min-width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 6px; display: flex; flex-direction: column; }
.wms-go__menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.wms-go__menu a:hover { background: #f1ece2; }
/* Required fields (2026-10-26): a red * beside the label, like other software, and "* Required" under the fields. */
.req { color: #c8102e; font-weight: 700; margin-left: 2px; }
.req-note { font-size: 12px; color: var(--color-text-muted); margin: 10px 0 0; }
.tk-newv input[name=vCompany]::placeholder { color: var(--brick); opacity: .8; }
/* Tours how-to page (2026-10-22). */
.th { max-width: 640px; }
.th-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.5; }
.th-btn { margin-top: 8px; }
.th-tips { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 14.5px; line-height: 1.5; }
.th-tips p { margin: 6px 0; }
/* 🎥 / 📷 on rooms with a tour or photos (2026-10-22). */
.umedia { cursor: pointer; }
.umedia circle { fill: #fff; stroke: #23190f; stroke-width: 1.2; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.35)); }
.umedia:hover circle { fill: #fff5d6; }
.tour-add { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.tour-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; cursor: pointer; }
.tour-pick small { flex: 1 1 200px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; }
.tour-photo { max-width: 100%; max-height: 100%; object-fit: contain; display: block; margin: auto; }

/* Room edit form (2026-10-22): the whole form scrolls; Tour & photos is a compact strip. */
.uedit-scroll { overflow-y: auto; flex: 1 1 auto; min-height: 0; padding-right: 2px; }
.confirm-box .uedit-scroll .add-fields { overflow: visible; flex: none; }
.tm-sum { font-weight: 600; text-transform: none; letter-spacing: 0; margin-left: 6px; color: var(--ink); }
.tm-strip { list-style: none; margin: 6px 0 8px; padding: 0 0 4px; display: flex; gap: 6px; overflow-x: auto; }
.tm-tile { position: relative; flex: none; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #e9e2d3; border: 1px solid var(--line); display: grid; place-items: center; }
.tm-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-ico { font-size: 26px; }
.tm-del { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; line-height: 22px; padding: 0; cursor: pointer; }
.tm-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-btns .admin-btn { cursor: pointer; }

/* Tour viewer: Play slideshow (2026-10-22). */
.tour-play { margin-left: 8px; }
.tour-play.is-on { background: #1f7a33; border-color: #1f7a33; }
.tour-nav { flex-wrap: wrap; }

/* Bid requests (2026-10-22). */
.tk-bid { background: #f4f8ff; border: 1px solid #cddcf5; border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.tk-bid[hidden] { display: none; }
.vn-defaults { margin-top: 16px; max-width: 960px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.vn-defaults > summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.vn-defaults > summary span { font-weight: 400; font-size: 13px; color: var(--ink-soft); margin-left: 6px; }
.vn-def-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 16px; margin-top: 12px; }
.vn-def { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.vn-def span { flex: 1 1 50%; }
.vn-def select { flex: 1 1 50%; min-width: 0; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; background: #fff; }
/* Phones: the green WMS button fits (2026-10-22) - "WMS · Go ▾ · Log out". */
@media (max-width: 520px) {
  .wms-badge__txt { font-size: 0; }
  .wms-badge__txt::after { content: 'WMS'; font-size: 11px; }
  .wms-go__to { display: none; }
  .wms-badge { gap: 3px; }
}
.tk-add .fld__l i { font-style: normal; font-weight: 400; opacity: .7; text-transform: none; }

/* Fire escape plan: a floating bar while drawing a route (2026-10-22) - Finish & save is never hidden. */
.esc-draftbar { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 400; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; background: #fff; border: 2px solid #b91c1c; border-radius: 14px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100vw - 24px); }
.esc-draftbar__txt { font-size: 13px; font-weight: 700; color: #b91c1c; }
.esc-draftbar button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 42px; }
.esc-draftbar .esc-draftbar__go { background: #1f7a33; border-color: #1f7a33; color: #fff; font-size: 15px; }
.esc-draftbar .esc-draftbar__go:disabled { opacity: .45; cursor: default; }
/* The plan never selects text (2026-10-22): double-clicking a route to add a corner used to paint the room numbers blue. */
body.escaping svg, body.editing svg, body.marking svg, .plan-wrap svg, .lightbox svg { -webkit-user-select: none; user-select: none; }
.esc-saved { font-size: 12px; color: #1f7a33; margin: 0 0 6px; }
.esc-printnote { font-size: 11.5px; line-height: 1.4; color: var(--ink-soft); margin: 4px 0 6px; }

/* Fire Escape Plan: Undo / Redo side by side (2026-10-22). */
.esc-undo-row { display: flex; gap: 6px; }
.esc-undo-row .admin-btn { flex: 1; }
.esc-undo-row .admin-btn:disabled, .esc-draftbar button:disabled { opacity: .4; cursor: default; }
/* Fire Escape Plan legend: start dot + dotted line (2026-10-22). */
.pl-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 3px; vertical-align: middle; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #999; }
.pl-route { flex: none; width: 64px !important; height: 20px !important; max-height: 20px !important; margin-right: 6px; vertical-align: middle; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.pl-line--dots { background: none !important; border-top: 3px dotted currentColor; height: 0 !important; }

/* Tour viewer loading bar (2026-10-22). */
.tour-stage { position: relative; }
.tour-load { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; width: min(320px, 80%); background: rgba(0,0,0,.72); color: #fff; border-radius: 12px; padding: 14px 16px; text-align: center; font-size: 14px; transition: opacity .3s; pointer-events: none; }
.tour-load.is-done { opacity: 0; }
.tour-load__track { height: 8px; background: rgba(255,255,255,.2); border-radius: 100px; overflow: hidden; margin-bottom: 8px; }
.tour-load__bar { height: 100%; width: 4%; background: #4ade80; border-radius: 100px; transition: width .3s; }
.tour-load__bar.is-busy { width: 35%; animation: tourBusy 1.1s ease-in-out infinite; }
@keyframes tourBusy { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
/* In the WMS, everything on the plan shows a crosshair, never a hand or grab cursor (2026-10-25). */
body.is-admin #planBox svg, body.is-admin #planBox svg * { cursor: crosshair !important; }
/* Zoom buttons for close work (2026-10-25): big, fixed on the right edge, above the enlarged view. */
.zoom-ctl { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 1001; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 20px rgba(35,25,15,.18); }
.zoom-ctl button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: 700 20px/1 var(--font-sans); cursor: pointer; }   /* smaller (2026-11-06, Dom) */
.zoom-ctl button:hover { background: var(--paper-2); }
.zoom-ctl .zoom-ctl__fit { width: 40px; height: 26px; font-size: 12px; }
.zoom-ctl span { font: 800 11.5px/1 var(--font-sans); color: var(--ink); }
.zoom-ctl__tip { width: 80px; padding-top: 6px; border-top: 1px solid var(--line); font: 500 11px/1.35 var(--font-sans); color: var(--ink); text-align: center; }
.zoom-ctl__tip b:first-child { display: block; margin-bottom: 3px; font-size: 12px; }
@media (max-width: 600px), (hover: none) { .zoom-ctl__tip { display: none; } }   /* phones: drag with a finger */
.zoom-ctl input[type=range] { writing-mode: vertical-lr; direction: rtl; width: 22px; height: 110px; margin: 2px 0; accent-color: #2456a6; cursor: pointer; }
@media (max-width: 600px) { .zoom-ctl input[type=range] { height: 100px; } }
body.is-admin.zoom-space #planBox svg, body.is-admin.zoom-space #planBox svg *, body.is-admin.zoom-space #planLightbox svg, body.is-admin.zoom-space #planLightbox svg * { cursor: grab !important; }
body.is-admin.zoom-panning #planBox svg, body.is-admin.zoom-panning #planBox svg *, body.is-admin.zoom-panning #planLightbox svg, body.is-admin.zoom-panning #planLightbox svg * { cursor: grabbing !important; }
@media print { .zoom-ctl { display: none !important; } }

/* A popup that can be dragged aside (2026-10-25): lighter backdrop so the plan shows through, title is the handle. */
.confirm-modal.is-movable { background: rgba(20,14,8,0.18); }
.confirm-box .drag-handle { cursor: move; user-select: none; }
/* No "drag to move" label (2026-10-27): the box is grabbed anywhere, like a window. */
.confirm-box.is-dragging { user-select: none; cursor: move; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
/* The space whose editor is open, outlined blue on the plan (shows on green and orange alike). */
.unit.is-editing .unit-out { stroke: #1d4ed8; stroke-width: 5px; vector-effect: non-scaling-stroke; stroke-opacity: 1; stroke-dasharray: none; }
.unit.is-editing > :first-child { fill-opacity: 0.85; }

/* Edit map on a phone (2026-10-25): the buttons were one ragged column and the hint covered
   "Done editing". Now: the hint is dropped (it talks about Esc and the top-right), the room line
   sits on one row, the tools are an even 3-across grid with Save & close full width, and the
   zoom buttons are a small row up top instead of covering the tools. */
@media (max-width: 700px) {
  #planBox.plan--zoomed .zoom-hint { display: none; }
  .shape-toolbar { gap: 8px; padding: 10px; font-size: 13px; }
  .shape-toolbar #stAdd { flex: none; padding: 8px 12px; }
  .shape-toolbar .st-room { flex: 1 1 auto; min-width: 0; }
  .shape-toolbar .st-actions { flex: 1 1 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .shape-toolbar .st-actions:empty { display: none; }
  .shape-toolbar .st-actions .admin-btn { width: 100%; margin: 0; padding: 9px 4px; font-size: 13px; line-height: 1.2; white-space: normal; text-align: center; }
  .shape-toolbar .st-close { margin-left: 0; }
  .shape-toolbar .st-done { grid-column: 1 / -1; padding: 11px 4px; font-size: 15px; }
  body.plan-zoomed .zoom-ctl { top: calc(var(--site-header-h, 0px) + 64px); right: 8px; transform: none; flex-direction: row; padding: 5px; gap: 4px; border-radius: 10px; }
  body.plan-zoomed .zoom-ctl button { width: 38px; height: 38px; font-size: 22px; }
  body.plan-zoomed .zoom-ctl .zoom-ctl__fit { width: auto; height: 38px; padding: 0 9px; font-size: 13px; }
  body.plan-zoomed .zoom-ctl span { min-width: 38px; text-align: center; font-size: 12px; }
  body.plan-zoomed .zoom-ctl input[type=range] { writing-mode: horizontal-tb; direction: ltr; width: 110px; height: 28px; margin: 0 2px; }
}

/* WMS on a phone (2026-10-25): the admin buttons sat on one unwrapped row 500px wide, so the page
   slid sideways and things were cut off at the right. They wrap now, a menu that opens near the
   right edge opens leftwards, and nothing can push the page wider than the screen. */
@media (max-width: 700px) {
  body.is-admin .plan-topbar .admin-group { flex-wrap: wrap; }
  body.is-admin .plan-topbar .admin-controls { max-width: 100%; }
  .wms-dd__menu { max-width: calc(100vw - 24px); }
  .wms-dd__item { white-space: normal; }
  .admin-group .wms-dd:last-child .wms-dd__menu, #ddView .wms-dd__menu { left: auto; right: 0; }
  html, body.is-admin { overflow-x: clip; }
}
/* Selected marker in Markers/Labels (2026-10-25): blue ring like the Fire Escape Plan, so it's clear which one the arrow keys move. */
.mk-icon.is-sel circle, .mk-icon.is-sel rect { stroke: #2563eb; stroke-width: 3px; vector-effect: non-scaling-stroke; }
/* Management tabs in three labelled groups (2026-10-26): Leasing, Building, Website & WMS. */
.report-groups { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.report-group { display: flex; flex-direction: column; gap: 6px; }
.report-group__h { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text); }
.report-group__h em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--color-text-muted); }
.report-groups .report-tabs { margin: 0; }
@media (max-width: 700px) { .report-groups, .report-group { width: 100%; } }
/* Management pages (2026-10-26): every button the size of the tabs - "+ New tenant" and "Back to floor plans" were twice as big. */
body:has(.report-groups) main .btn { font-family: var(--font-sans); font-weight: 600; font-size: 13px; padding: 9px 16px; letter-spacing: .03em; text-transform: none; line-height: 1.2; box-shadow: none; border-radius: var(--radius-sm); }
body:has(.report-groups) main .btn:hover { transform: none; box-shadow: none; }
/* Sent leases notes and follow-up (2026-10-26). */
.lt-notescell { min-width: 180px; max-width: 280px; }
.lt-snote { white-space: pre-wrap; font-size: 13px; margin-bottom: 4px; }
.lt-fu { font-size: 12px; font-weight: 600; color: var(--color-text-muted); margin-bottom: 4px; }
.lt-fu--due { color: #b45309; }
.lo-mapview[hidden] { display: none; }
.lo-mapview { margin-top: 8px; }
.lo-mapview .acct-map__room.is-taken { cursor: pointer; }   /* a rented room can still be picked for a new lease */
/* Long pop-ups with a map scroll as a whole (2026-10-26): they were taller than the screen and cut off. */
.lo-box, .acct-box { overflow-y: auto; }
.lo-box > *, .acct-box > * { flex-shrink: 0; }
.lo-box .add-fields, .acct-box .add-fields { overflow: visible; flex: none; }
/* The way back to the phone app menu shows on phone-size screens only (2026-10-26). */
@media (min-width: 701px) { .site-nav .nav-app { display: none; } }
/* Management pages (2026-10-26): every section heading the same - Leases had big ones, WMS Updates small ones. */
body:has(.report-groups) main .container > div h2, body:has(.report-groups) main h2.lt-h, body:has(.report-groups) main h2.lp-title, body:has(.report-groups) main h2.vis-h, body:has(.report-groups) main h2.wn-h { font-family: var(--font-serif); font-size: 22px; font-weight: 600; line-height: 1.25; margin: 32px 0 10px; }
/* Send a lease: Paste from ChatGPT (2026-10-26). */
.lo-gpt { margin: 10px 0 0; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; background: #fffdf8; }
.lo-gpt summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.lo-gpt textarea, .lo-gpttext { width: 100%; box-sizing: border-box; margin-top: 8px; font: 13px/1.4 var(--font-sans); }

/* Management -> Printable forms (2026-10-26): cards with a small preview; the sheet itself prints full size. */
.pf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pf-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px; }
.pf-card__h { font-family: var(--font-serif); font-size: 18px; margin: 12px 0 4px; }
.pf-thumb { height: 300px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; position: relative; }
.pf-thumb__in { width: 760px; transform: scale(.31); transform-origin: top left; position: absolute; top: 8px; left: 8px; pointer-events: none; }
.pf-sheet { font-family: var(--font-sans); color: #111; background: #fff; padding: 28px 34px; }
.pf-brand { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: #c8102e; margin: 0; }
.pf-sign { text-align: center; }
.pf-sign__h { font-family: var(--font-serif); font-size: 46px; line-height: 1.1; margin: 10px 0 12px; }
.pf-sign__sub { font-size: 20px; line-height: 1.4; max-width: 600px; margin: 0 auto 18px; }
.pf-qr { width: 380px; height: 380px; margin: 0 auto; }
.pf-qr svg { width: 100%; height: 100%; display: block; }
.pf-sign__where { font-family: var(--font-serif); font-size: 32px; margin: 16px 0 2px; }
.pf-sign__url { font-size: 15px; color: #444; margin: 0 0 20px; }
.pf-form__h { font-family: var(--font-serif); font-size: 32px; margin: 6px 0 8px; }
.pf-form p { font-size: 14px; line-height: 1.45; margin: 0 0 10px; }
.pf-form h3 { font-size: 15px; margin: 16px 0 6px; }
.pf-req { color: #c8102e; }
.pf-small { font-size: 12px !important; margin-top: 10px !important; }
.pf-opts { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 14px; }
.pf-opts--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 26px; }
.pf-opts span { display: inline-flex; align-items: center; gap: 8px; }
.pf-box { width: 15px; height: 15px; border: 1.5px solid #222; border-radius: 2px; flex: none; display: inline-block; }
.pf-line { display: inline-block; flex: 1; min-width: 160px; border-bottom: 1px solid #222; height: 18px; }
.pf-line--full { display: block; width: 100%; height: 26px; }
.pf-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.pf-log { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 12px; }
.pf-log th, .pf-log td { border: 1px solid #333; padding: 4px 5px; text-align: center; }
.pf-log th { background: #f1f1f1; font-weight: 700; }
.pf-log td { height: 30px; }
.pf-log th:nth-child(7) { width: 30%; }
.pf-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px !important; padding-top: 8px; border-top: 1px solid #999; font-size: 11px !important; color: #444; }
#printSheet.pf-print { display: none; }
@media print {
  #printSheet.pf-print { display: block; }
  #printSheet.pf-print .pf-sheet { padding: 0; }
  #printSheet.pf-print .pf-log th { background: #f1f1f1 !important; }
}

/* Sign-in box (2026-10-27, Dom): centred, the lock in front of the heading, the version small at the bottom right. */
.ac-login { position: relative; margin-left: auto; margin-right: auto; }
.ac-login__h { display: flex; align-items: center; gap: 8px; }
.ac-login__h .ac-login__lock { font-size: .95em; }
.ac-login__ver { position: absolute; right: 14px; bottom: 8px; margin: 0; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.ac-login .ac-login__err { margin-bottom: 6px; }
.launch .ac-login { max-width: none; }
/* Signed out on /app, the version is in the sign-in box instead of under the name. */
.launch__main:has(#launchLogin .ac-login) #launchVer { display: none; }

/* Phones: the WMS version in the bottom right corner of every page and pop-up (2026-10-27). */
.wms-ver-tag { display: none; }
@media (max-width: 700px) {
  .wms-ver-tag { display: block; position: fixed; right: 8px; bottom: calc(6px + env(safe-area-inset-bottom)); z-index: 100000; pointer-events: none;
    font-family: var(--font-label); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 800; color: var(--ink);
    background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 100px; padding: 2px 9px; }
}

/* Room editor (2026-10-27): a value that can't be changed here is plain text, not a greyed-out box. */
.f-fixed { display: block; padding: 8px 0 4px; font-size: 15px; font-weight: 600; color: var(--ink); }
.acct-open { margin-left: 8px; font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; color: var(--brick); text-decoration: underline; }
.confirm-box .ask-err:not([hidden]) { margin: 6px 0 2px; padding: 8px 10px; border: 2px solid #b91c1c; border-radius: 6px; background: #fdecec; color: #991b1b; font-weight: 700; }

/* Management groups, colour coded (2026-10-27, Dom): each group in its own coloured frame, its heading
   centred over its buttons, and each button's word centred. Leasing green, Building amber, Website & WMS blue. */
.report-group { --grp: #2f7d4f; --grp-bg: #eef7f1; align-items: center; border: 2px solid var(--grp); background: var(--grp-bg); border-radius: 12px; padding: 8px 10px 10px; }
.report-group:nth-child(2) { --grp: #b26a00; --grp-bg: #fdf4e6; }
.report-group:nth-child(3) { --grp: #2b5fa8; --grp-bg: #edf3fb; }
.report-group__h { text-align: center; color: var(--grp); }
.report-groups .report-tabs { border-color: var(--grp); background: #fff; }
.report-groups .report-tab { text-align: center; border-right-color: var(--grp); }
.report-groups .report-tab.is-active { background: var(--grp); color: #fff; }
@media (max-width: 700px) {
  .report-groups .report-tabs { width: 100%; }
  .report-groups .report-tab { display: flex; align-items: center; justify-content: center; }
}
.report-groups { margin-top: 16px; gap: 14px 16px; }
/* All three groups on one row on a computer (2026-10-27, Dom: "too wrapping"): slimmer buttons, and the
   heading wraps to its buttons' width instead of making the frame wider. Phones stack them, centred. */
.report-group { padding: 6px 8px 8px; }
.report-group__h { width: 0; min-width: 100%; line-height: 1.3; font-size: 11.5px; }
.report-group__h em { font-size: 11.5px; }
.report-groups .report-tab { padding: 6px 11px; font-size: 12.5px; letter-spacing: .01em; }
@media (max-width: 700px) {
  .report-groups { justify-content: center; }
  .report-group { width: 100%; max-width: 460px; margin: 0 auto; }
  .report-group__h { width: auto; }
  .report-groups .report-tab { padding: 8px 6px; }
}
.report-group { justify-content: space-between; }

/* Pop-ups (2026-10-27): the scrolling field area keeps a little room on every side, so a box's
   highlight (focus ring) is never cut off at the left, right, top or bottom. */
.confirm-box .tk-fields, .confirm-box .add-fields, .confirm-box .ask-body { padding: 5px 8px 8px; margin-left: -8px; margin-right: -8px; }
.confirm-box .tk-err:empty { display: none; }

/* WMS ☰ menu (2026-10-27): the public pages sit under a "Public website" heading. */
.nav-pubhead { display: none; }
body.wms-mode .nav-pubhead { display: block; margin-top: 6px; padding: 8px 16px 2px; border-top: 1px solid var(--line); font-family: var(--font-label); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: var(--ink-soft); }
/* The room editor scrolls in .uedit-scroll, not its fields (2026-10-27): the room goes on the scroller. */
.confirm-box .uedit-scroll { padding: 5px 8px 8px; margin-left: -8px; margin-right: -8px; }
.confirm-box .uedit-scroll .add-fields { padding: 0; margin-left: 0; margin-right: 0; }

/* Pop-ups that scroll as a whole (Edit tenant, Send a lease): the title stays put at the top (2026-10-27). */
.lo-box > h3, .acct-box > h3 { position: sticky; top: -22px; z-index: 3; margin-top: -22px; padding: 22px 0 10px; background: var(--paper); border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .lo-box > h3, .acct-box > h3 { top: -16px; margin-top: -16px; padding-top: 16px; } }

/* "N characters left" under a notes box (2026-10-27). */
.char-left { display: block; margin-top: 3px; text-align: right; font-family: var(--font-sans); font-size: 11.5px; font-weight: 500; color: var(--ink-soft); text-transform: none; letter-spacing: 0; }
.char-left.is-low { color: #b91c1c; font-weight: 700; }

/* Every pop-up (2026-10-27, Dom): the buttons at the bottom (Close, Delete, Save...) stay in view
   while it scrolls, and so does its title. Pop-ups whose fields scroll inside already keep both. */
.confirm-box > h3 { position: sticky; top: -22px; z-index: 3; margin-top: -22px; padding-top: 22px; background: var(--paper); }
.confirm-box > .confirm-actions { position: sticky; bottom: -22px; z-index: 3; margin-bottom: -22px; padding: 12px 0 22px; background: var(--paper); border-top: 1px solid var(--line); }
@media (max-width: 700px) {
  .confirm-box > h3 { top: -16px; margin-top: -16px; padding-top: 16px; }
  .confirm-box > .confirm-actions { bottom: -16px; margin-bottom: -16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
.acct-box .a-notes { min-height: 88px; resize: vertical; }
/* Delete a tenant: its own warning pop-up (2026-10-27). */
.del-box { border-top: 6px solid #b91c1c; max-width: 480px; }
.del-box h3 { color: #991b1b; }
.del-box .del-go { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.del-box .del-go:hover { background: #991b1b; }
.confirm-actions .req-note--foot { margin: 0 auto 0 0; align-self: center; font-size: 12px; }
.acct-box .add-fields + .fld__l { margin-top: 4px !important; }
.acct-key--free { background: var(--available); opacity: .55; }

/* Management -> Revenue (2026-10-27): radio buttons and the filter in labelled boxes. */
.rv-ctl { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 18px; }
.rv-set { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 6px 12px 10px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 14px; }
.rv-set legend { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: var(--ink-soft); padding: 0 4px; }
.rv-set label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.rv-set input[type=date] { padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; }
.rv-set--wide { flex-basis: 100%; }
.rv-tbl tfoot td { border-top: 2px solid var(--ink); }
.rv-def { color: var(--brick); font-weight: 700; }
@media (max-width: 700px) { .rv-set { flex-basis: 100%; } .rv-set--wide label { flex-basis: 100%; } }
.rv-set--proj legend { color: var(--brick); font-weight: 700; }
/* Revenue: every row opens that unit (2026-10-27). */
.rv-row { cursor: pointer; }
.rv-row:hover td { background: #f6efe0; }
.rv-open { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); }
.rv-open:hover { color: var(--brick); }
/* Revenue: sortable headings, tenants table (2026-10-27) */
.rv-sort { all: unset; cursor: pointer; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; white-space: nowrap; }
.rv-sort:hover, .rv-sort.is-on { color: var(--ink); }
.rv-sort:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }
.rv-sort span { font-size: 10px; opacity: .7; }
.rv-h { margin: 34px 0 10px; font-size: 22px; }
.rv-set select { padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; max-width: 260px; }
.rv-set:disabled { opacity: .45; }
.rv-tile--one { border-color: var(--brick); }
/* Edit map: which group a room is in; grouped rooms marked (2026-10-27) */
.st-group { font-size: 13px; padding: 2px 8px; border-radius: 999px; background: #e8eefb; color: #2b5fa8; white-space: nowrap; }
.st-group--none { background: transparent; color: var(--ink-soft); }
.st-tip { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.st-del { color: #b91c1c; border-color: #e7b4b4; }
.unit.is-grouped .unit-out { stroke-dasharray: 10 6; }
/* Unit editor: the tenant is picked from a list (2026-10-27) */
.fld-tenant { display: flex; flex-direction: column; gap: 6px; }
.fld-tenant .ta-newrow input, .fld-tenant .f-tenant { width: 100%; }
.ta-rename { all: unset; cursor: pointer; align-self: flex-start; font-size: 13px; color: var(--brick); text-decoration: underline; }
.ta-rename:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }
/* Who to call: the tenant's point of contact (2026-10-27) */
.fld-poc { display: flex; flex-direction: column; gap: 4px; }
.fld-poc .f-fixed a { color: var(--brick); font-weight: 600; }
.ac-call { color: var(--brick); font-weight: 700; white-space: nowrap; }
/* Grouped rooms: status colour inside, a border colour per group (2026-10-28) */
.unit.is-grouped .unit-out { stroke-dasharray: none; }
.sw--group, .pl-sw--group { background: rgba(224,102,46,.45); border: 3px solid #6a3fb5; box-sizing: border-box; }
/* A grouped room's "🔗 group name" line (2026-10-28) */
.ulabel-grp { fill: #3f2a86; font-weight: 700; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-linejoin: round; }
/* Edit units: saved sf doesn't match the shape (2026-10-28) */
.st-sfwarn { color: #7a2c1d; font-size: 13px; }
/* The suite pop-up: a name for each room (2026-10-28) */
.suite-names { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px 12px; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 14px; }
.suite-names legend { font-weight: 700; padding: 0 4px; }
.suite-names .fld { display: flex; flex-direction: column; gap: 4px; }
/* The suite pop-up: a small map of its rooms, numbered (2026-10-28) */
.suite-maps { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.suite-map { margin: 0; flex: 1 1 160px; max-width: 260px; }
.suite-map svg { width: 100%; height: 150px; display: block; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.suite-map figcaption { font-size: 12px; text-align: center; color: var(--ink-2, #555); }
.sm-room { cursor: pointer; }
.sm-room polygon, .sm-room rect { fill: rgba(224,102,46,.55); stroke: #6a3fb5; stroke-width: 3; vector-effect: non-scaling-stroke; }
.sm-room text { fill: #14331d; font-weight: 800; paint-order: stroke; stroke: #fff; stroke-width: 3; vector-effect: non-scaling-stroke; }
.sm-room.is-hl polygon, .sm-room.is-hl rect, .sm-room:hover polygon, .sm-room:hover rect { fill: #ffd24a; stroke-width: 5; }
/* Revenue: top tenants leaderboards (2026-10-28) */
.rv-boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 20px; }
.rv-board { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; }
.rv-board h3 { margin: 0 0 8px; font-size: 16px; }
.rv-board h3 small { font-weight: 400; color: var(--ink-2, #666); }
.rv-board ol { margin: 0; padding-left: 26px; }
.rv-board li { padding: 6px 0; border-top: 1px solid var(--line); }
.rv-board li:first-child { border-top: 0; }
.rv-board li { display: list-item; }
.rv-board li > span, .rv-board li > b { display: inline-block; vertical-align: top; }
.rv-board li > span { width: calc(100% - 110px); }
.rv-board li > b { width: 110px; text-align: right; }
.rv-board__n small { display: block; color: var(--ink-2, #666); font-size: 12px; }
/* Revenue: point of contact under the company (2026-10-28) */
.rv-poc { display: block; font-size: 12px; font-weight: 400; color: var(--ink-2, #666); }
/* Tenant editor: a suite listed on the floor of its other rooms (2026-10-28) */
.acct-space--linked b::before { content: '🔗 '; }
/* Rent: $/sf beside it; the tenant editor's rents (2026-10-28) */
.rent-persf { display: block; font-size: 13px; color: var(--brick); margin-top: 3px; }
.acct-rents { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px 10px; margin: 12px 0; }
.acct-rents legend { font-weight: 700; padding: 0 4px; }
.acct-rents legend em { font-weight: 400; }
.acct-rent { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 6px 0; border-top: 1px solid var(--line); }
.acct-rent:first-of-type { border-top: 0; }
.acct-rent__l small { color: var(--ink-2, #666); }
.acct-rent__in { display: inline-flex; align-items: center; gap: 6px; }
.acct-rent__in input { width: 120px; }
.a-persf { color: var(--brick); min-width: 80px; }
/* Tenant editor: their spaces on top, the rest folded by floor (2026-10-28) */
.acct-mine { margin-bottom: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-2); }
.acct-mine .acct-space { display: block; padding: 4px 0; }
/* The suite pop-up: one column per floor - its map, then its rooms stacked (2026-10-28) */
.suite-names { display: block; }
.suite-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 18px; }
.suite-col { display: flex; flex-direction: column; gap: 8px; }
.suite-col .suite-map { max-width: none; flex: none; }
/* Access & Keys: a search box that looks like one, with a Search button (2026-10-29) */
.ac-searchform { position: relative; display: flex; gap: 8px; flex: 1 1 280px; margin: 0; }
.ac-searchform .ac-search { margin: 0; flex: 1; padding-left: 40px; }
.ac-searchform__icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 16px; pointer-events: none; }
.ac-searchform__go { flex: none; }

/* Ticket date box: empty shows a calendar and "Pick a date" (2026-11-03, Dom). */
.tk-date { position: relative; display: block; }
.tk-date input { cursor: pointer; }
.tk-date.is-empty input { color: transparent; }
.tk-date.is-empty::before { content: '📅  Pick a date'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink, #222); font-size: 15px; font-weight: 600; }
.tk-date.is-empty input:focus { color: inherit; }
.tk-date.is-empty:focus-within::before { content: none; }

/* Ticket: "Getting it fixed" section and its pop-up (2026-11-03, Dom). */
.tk-fix { grid-column: 1 / -1; border-top: 3px solid var(--ink, #222); margin-top: 12px; padding-top: 12px; }
.tk-fix__h { display: block; font-family: var(--font-serif); font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.tk-fix__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.tk-pop { position: fixed; inset: 0; z-index: 1200; background: rgba(20,14,8,.45); display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.tk-pop[hidden] { display: none; }
.tk-pop__box { max-width: 520px; }
.tk-pop__x { margin-left: auto; flex: none; width: 40px; height: 40px; border: 1px solid #cfc8bd; border-radius: 50%; background: #fff; font-size: 18px; line-height: 1; cursor: pointer; color: #333; }
.tk-pop__x:hover { background: #f4f1ec; }
.tk-vpop { z-index: 1300; }
.tk-spot__key { display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.tk-actions [data-save-only] { margin-left: auto; }
.tk-mail { display: flex; flex-direction: column; gap: 10px; }
.tk-mail.confirm-box { max-width: 640px; }
.tk-mail input, .tk-mail textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: 14px/1.45 var(--font-sans); background: #fff; }
.tk-mail__h { font-size: 14px; }
.tk-mail .tk-mail__s { font-weight: 700; }
.tk-mail textarea.tk-mail__b { resize: vertical; min-height: 200px; }
.tk-vpop .confirm-box { max-width: 480px; }
.tk-vnote { margin: 10px 0 0; color: #2456a6; }
.tk-vok, .vn__ok { color: #2e7d46; font-weight: 700; white-space: nowrap; }
.tk-vno { color: #8a6d3b; font-weight: 600; white-space: nowrap; }
.vn__no { color: #c2410c; font-weight: 700; white-space: nowrap; }
.vn__ok, .vn__no { font-size: 13.5px; }
.vn-verify { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 0; }
.acct-verify--ask { background: #fff4e5; border: 2px solid #c2410c; border-radius: 10px; padding: 10px 12px; }
.acct-verify__ask { flex-basis: 100%; color: #7c2d12; font-size: 14.5px; }
select option.tk-opt-new { font-weight: 700; color: #2456a6; }
.tk-pop__box .confirm-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.tk-bidnote { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #eef7f0; font-size: 14px; line-height: 1.45; }
.tk-bidnote:empty { display: none; }
.tk-bidnote.is-off { background: #fff4e5; }
.tk-addmail { display: flex; gap: 8px; margin-top: 8px; }
.tk-addmail input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 14px; }
.admin-btn.is-off { opacity: .5; }
.tk-bidnote.is-flash { animation: tkFlash .9s ease 1; }
@keyframes tkFlash { 0%, 50% { box-shadow: 0 0 0 3px #c81e28; } 100% { box-shadow: 0 0 0 0 transparent; } }
.tk__no { font-weight: 800; font-size: 13px; color: var(--ink, #222); margin-right: 2px; }

/* Tenants: Pays cash (2026-11-05, Dom). */
.acct-cash { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: 2px; }
.acct-cash .confirm-chk { margin-bottom: 0; }
.acct-cash__mail:has(input:disabled) { color: #9a9184; }
.acct-tag { font-size: 11px; font-weight: 600; border: 1px solid #d9cfc0; border-radius: 4px; padding: 0 5px; margin-left: 4px; color: #6b6255; vertical-align: 1px; }

/* Invoice (2026-11-05, Dom): one tenant, one month, printed or saved as a PDF. */
.inv-box { max-width: 760px; width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow-y: auto; }
.inv-preview { border: 1px solid var(--line); border-radius: 8px; padding: 24px; margin: 12px 0; background: #fff; }
.inv-sheet { color: #1f1b16; font-size: 14px; line-height: 1.45; }
.inv-top { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.inv-co { font-weight: 800; font-size: 18px; }
.inv-meta { text-align: right; }
.inv-title { font-weight: 800; font-size: 24px; letter-spacing: .08em; }
.inv-to { margin-bottom: 14px; }
.inv-l { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #6b6255; }
.inv-for { font-weight: 600; margin: 0 0 8px; }
.inv-tbl { width: 100%; border-collapse: collapse; }
.inv-tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6b6255; border-bottom: 2px solid #1f1b16; padding: 6px 8px; }
.inv-tbl td { padding: 7px 8px; border-bottom: 1px solid #e6dfd3; }
.inv-tbl .inv-n { text-align: right; white-space: nowrap; }
.inv-tbl tfoot td { font-weight: 800; border-bottom: 0; border-top: 2px solid #1f1b16; font-size: 15px; }
.inv-note { margin: 12px 0 0; color: #4a443c; }
@media (max-width: 560px) { .inv-top { flex-direction: column; } .inv-meta { text-align: left; } .inv-preview { padding: 14px; } }

/* Close X in the top right corner of every pop-up (2026-11-06, Dom). */
.confirm-box.has-pop-x { position: relative; }
.confirm-box > h3 > .pop-x { position: static; margin-left: auto; align-self: flex-start; color: #333; font-family: var(--font-sans); font-weight: 400; }
.pop-x { position: absolute; top: 10px; right: 10px; z-index: 4; flex: none; width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center; border: 1px solid #cfc8bd; border-radius: 6px; background: #fff; color: #333; font-size: 16px; line-height: 1; cursor: pointer; }
.pop-x:hover { background: #f4f1ec; border-color: #b8afa2; }
.pop-x:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }
.uedit-box .add-fields > .suite-names { grid-column: 1 / -1; margin: 4px 0; }   /* room names near the top of a group's editor (2026-11-06) */

/* "Where it is" map at the top of the Rent and Tenants editors (2026-11-06, Dom). */
.uloc { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 8px 10px 6px; margin: 0 0 12px; }
.uloc__h { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.uloc__floors { display: flex; flex-wrap: wrap; gap: 10px; }
.uloc__floor { flex: 1 1 200px; margin: 0; min-width: 0; }
.uloc__floor svg { display: block; width: 100%; height: 220px; background: #faf8f4; border-radius: 4px; }
.uloc__floor figcaption { font-size: 12.5px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.uloc__floor figcaption a { margin-left: auto; font-weight: 600; }
.uloc__room { fill: rgba(154,154,154,.12); stroke: #9a9488; }
.uloc__room.is-on { fill: rgba(220,38,38,.45); stroke: #b91c1c; animation: ulocPulse 1.6s ease-in-out infinite; }
@keyframes ulocPulse { 50% { fill: rgba(220,38,38,.18); } }
@media (prefers-reduced-motion: reduce) { .uloc__room.is-on { animation: none; } }
.uloc__num { text-anchor: middle; dominant-baseline: middle; font-family: var(--font-sans); font-weight: 800; fill: #fff; stroke: #7f1d1d; paint-order: stroke; }
.add-fields > .uloc-slot { grid-column: 1 / -1; }
.add-fields > .uloc-slot:empty { display: none; }

/* Rent table: All units / Only groups / Only single rooms (2026-11-06, Dom). */
.rent-show { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 0 0 10px; }
.rent-show button { font: inherit; font-size: 13px; padding: 6px 12px; border: 0; border-right: 1px solid var(--line); background: #fffdf8; cursor: pointer; }
.rent-show button:last-child { border-right: 0; }
.rent-show button.is-on { background: var(--ink); color: var(--paper); font-weight: 700; }
.rent-show small { opacity: .7; margin-left: 3px; }

body.is-admin.marking .plan > .marker-bar .mk-tool__l { white-space: normal; overflow: visible; line-height: 1.25; }   /* long names wrap instead of being cut off (2026-11-06) */
.acct-rent-total { margin: 8px 0 4px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; }   /* a tenant's total rent (2026-11-06) */
.acct-rent-total b { font-size: 16px; }

/* Rent editor: Delete room sits on the left, away from Save (2026-11-06, Dom). */
.confirm-actions > .re-del { margin-right: auto; }

/* Rent table: the header row (System unit # ...) stays pinned under the site header while the page scrolls
   (2026-11-06, Dom). No scroll box around it, or the pin would follow the box instead of the page. */
.rent-scroll { overflow: visible; }
.rent-scroll thead th { position: sticky; top: var(--site-header-h, 0px); z-index: 2; background: var(--paper); box-shadow: inset 0 -1px 0 var(--line); }

/* Markers/Labels panel: save status and Close at the top (2026-11-06, Dom). */
.marker-bar .mk-top { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.mk-save { font-size: 12px; font-weight: 700; color: #15803d; }
.mk-save--saving { color: var(--ink-soft); }
.mk-save--error { color: #b91c1c; }
.marker-bar .mk-top .mk-close { padding: 4px 10px; font-size: 12px; }

/* The picking bar stands out and names the picked rooms (2026-11-06, Dom). */
.pick-bar { background: #eff6ff; border: 2px solid #1d4ed8; }
.pick-bar__count { color: #1d4ed8; font-size: 15px; }

/* Room editor in sections on a 6-column grid (2026-11-06, Dom: "messy, not aligned - make it professional").
   Every label is one line, hints sit under the box, and every box is the same height, so rows line up. */
.uedit-box { max-width: 720px; }
.uedit-box .add-fields { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 16px; }
.uedit-box .add-fields > * { grid-column: 1 / -1; }
.uedit-box .add-fields > .fld--2 { grid-column: span 2; }
.uedit-box .add-fields > .fld--3 { grid-column: span 3; }
.uedit-box .add-fields > .fld--4 { grid-column: span 4; }
.uedit-box .add-fields > .fld--6, .uedit-box .add-fields > .fld-poc { grid-column: 1 / -1; }
.ue-sec { font-family: var(--font-label); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--line); padding: 0 0 5px; margin-top: 10px; }
.uedit-box .add-fields > .ue-sec:first-of-type, .uedit-box .add-fields > .uloc-slot + .ue-sec { margin-top: 0; }
.uedit-box .fld__l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uedit-box .fld__h { font-size: 11.5px; color: var(--ink-soft); line-height: 1.3; }
.uedit-box .fld input:not([type=checkbox]), .uedit-box .fld select { height: 36px; box-sizing: border-box; }
.uedit-box .fld .f-fixed { min-height: 36px; display: flex; align-items: center; padding: 0 10px; background: var(--paper-2); border: 1px dashed var(--line); border-radius: var(--radius-sm); box-sizing: border-box; }
.uedit-box .fld-poc .f-fixed { display: block; padding: 8px 10px; }
.uedit-box .lease-end { min-height: 36px; display: flex; align-items: center; font-size: 13px; }
.uedit-box .add-fields .dep { flex-direction: column; align-items: stretch; gap: 6px; }
.uedit-box .add-fields .dep > .dep__chk { align-self: flex-start; }
.uedit-box .add-fields .fld:has(.dep__paid:not([hidden])) { grid-column: span 2; }
.uedit-box .dep__paid { display: grid; grid-template-columns: 1fr; gap: 6px; width: 100%; }
.uedit-box .dep__paid > * { width: 100% !important; }
.ue-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; min-height: 36px; align-items: center; }
.ue-checks .dep__chk { font-size: 13px; }
@media (max-width: 560px) {
  .uedit-box .add-fields { grid-template-columns: 1fr 1fr !important; }
  .uedit-box .add-fields > * { grid-column: 1 / -1 !important; }
  .uedit-box .add-fields > .fld--2 { grid-column: span 1 !important; }
}
.uedit-box .add-fields .dep--pay .f-deposit { width: 100%; flex: none; }

/* Tenant editor (2026-11-10, Dom): a rented space's name opens the map on that room; each space has its
   lease start and end typed in from the signed lease. */
.acct-rent { display: block; }
.acct-rent__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; }
.acct-lease { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 6px 0 2px; font-size: 13.5px; }
.acct-lease label { display: inline-flex; align-items: center; gap: 6px; }
.acct-lease input { height: 32px; box-sizing: border-box; }
.acct-locate { font: inherit; font-weight: 700; padding: 0; border: 0; background: none; color: #1f5fa8; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.acct-locate:hover { color: var(--ink); }
.acct-map__room.is-flash polygon { animation: acct-flash .8s ease-in-out 4; stroke-width: 6px; }
@keyframes acct-flash { 0%, 100% { fill: #1f5fa8; fill-opacity: .55; } 50% { fill: #f5c400; fill-opacity: .9; } }

.lf__notcur { color: #b3261e; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }   /* signed lease, dates say not current (2026-11-10) */
/* A signed lease's period: starts + months, set when uploading or later (2026-11-10). */
.lf__period { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 8px 0 0; font-size: 13.5px; }
.lf__period[hidden] { display: none; }
.lf__period label { display: inline-flex; align-items: center; gap: 6px; }
.lf__period input { height: 32px; box-sizing: border-box; }
.lf__period .lf__pmonths { width: 70px; }
.lf__setp { font: inherit; font-size: 12.5px; padding: 0; border: 0; background: none; color: #1f5fa8; text-decoration: underline; cursor: pointer; }
/* Coterminous (2026-11-10): one shared lease row for all of a tenant's spaces, or one per space. */
.acct-coterm { margin: 4px 0 6px; font-size: 14px; }
.acct-lease--shared { padding: 6px 0 10px; border-bottom: 1px solid var(--line); }
.acct-rents:not(.is-coterm) .acct-lease--shared, .acct-rents.is-coterm .acct-rent .acct-lease { display: none; }
.acct-lease .a-llen { width: 64px; }
.acct-lease select { height: 32px; }
/* Lead lease + addendum (2026-11-10): which space a lease is for; adding a space = an addendum. */
.acct-lead { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.lf__for { margin: 8px 0 0; font-size: 13.5px; }
.lf__for[hidden], .lf__note[hidden] { display: none; }
.lf__note { margin: 8px 0 0; padding: 8px 10px; font-size: 13px; background: var(--paper-2); border-left: 3px solid #1f5fa8; border-radius: var(--radius-sm); }
.lf__note--warn { border-left-color: #c2410c; background: #fff4e5; }
.acct-addnote { margin: 8px 0; padding: 8px 10px; font-size: 13.5px; background: #fff4e5; border-left: 3px solid #c2410c; border-radius: var(--radius-sm); }

/* Leases on each space (2026-11-10, Dom): lease or addendum, its files under it. */
.acct-rent { padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.acct-rent:last-of-type { border-bottom: 0; }
.acct-rent .lf { margin-top: 8px; padding-top: 8px; }
.acct-ltype { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.acct-ltype select { font: inherit; font-weight: 400; padding: 5px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fffdf8; }
.acct-lease.is-follower label:has(.a-llen) { display: none; }
.acct-addrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.acct-addrow:has(.a-hasadd:empty) .a-hasadd { display: none; }
.a-hasadd { font-weight: 600; }
.acct-lease.is-follower .acct-addrow { display: none; }
.a-addpick select { font: inherit; padding: 3px 6px; }
.lf__row--old { opacity: .72; }
.lf__row--old .lf__name { text-decoration: line-through; }
.add-ask { max-width: 560px; }
.add-ask__opt { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-2); cursor: pointer; }
.add-ask__opt input[type="radio"] { margin-top: 4px; }
.add-ask__opt select { font: inherit; padding: 3px 6px; }
.add-ask__dl { margin-top: 8px; }
.ls-tbl td { vertical-align: top; }
.ls-old { text-decoration: line-through; opacity: .75; }

/* WMS floor plan on a phone (2026-11-11, Dom): the floor tabs (with Management) and the color key ran
   off the right edge; they wrap onto the next line now. Dropdown menus open across the screen, and
   the plan's version line sits under the plan instead of on top of the street name. */
@media (max-width: 700px) {
  body.is-admin .plan-topbar .seg { display: flex; flex: 1 1 100%; max-width: 100%; }
  body.is-admin .plan-topbar .seg > * { flex: 1 1 auto; text-align: center; }
  body.is-admin .plan-topbar .legend--bar { flex: 1 1 100%; max-width: 100%; }
  body.is-admin .plan-topbar .wms-dd__menu { position: fixed; left: 12px; right: 12px; top: auto; max-width: none; }
  .plan-version { position: static; display: block; margin: 6px 4px 0; text-align: right; background: none; padding: 0; }
}
