/* =================================================================
   Project Better Spaces - styles
   Design language: architectural drawing set / site-plan drafting.
   Ink on paper, hairline rules, one working accent (signal orange),
   harbor blue for structural UI chrome. No cards-with-shadows kit.
   ================================================================= */

:root {
  --ink: #10222B;
  --ink-soft: #3C5560;
  --paper: #EFEFE9;
  --paper-raised: #F7F7F2;
  --harbor: #1F5673;
  --harbor-deep: #123244;
  --signal: #C1571E;
  --signal-deep: #9C4416;
  --line: #C7CDC6;
  --line-strong: #9AA6A0;
  --white: #FFFFFF;

  /* One typeface across the whole site: Bahnschrift Light. It ships with
     Windows but not with phones, and Microsoft doesn't license it for
     embedding, so Barlow (a free DIN-derived face, loaded from Google
     Fonts) stands in for it on iOS/Android. The three tokens are kept so
     display / body / label roles can be split again later if wanted. */
  --font-display: "Bahnschrift Light", Bahnschrift, Barlow, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Bahnschrift Light", Bahnschrift, Barlow, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Bahnschrift Light", Bahnschrift, Barlow, "Helvetica Neue", Arial, sans-serif;

  --footer-h: 36px;

  --radius: 3px;
}

* { box-sizing: border-box; }

/* Every screen on this site is shown and hidden with the `hidden` attribute.
   The browser's own rule for that is [hidden] { display: none }, which an ID
   selector such as #screen-login { display: flex } outranks - so without
   this line, `hidden` silently does nothing here. That was the login bug:
   the password was accepted, the team screen appeared a full viewport
   *below* the login screen, and nothing seemed to happen. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
}

body {
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

button, input {
  font-family: inherit;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---- shared bits -------------------------------------------------- */

.sheet-tick {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 16px;
  text-align: center;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 15px;
  flex: none;
}

.btn {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  border-radius: var(--radius);
  padding: 13px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--signal);
  color: var(--white);
}
.btn-primary:hover { background: var(--signal-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.screen {
  min-height: 100%;
  width: 100%;
}

/* =================================================================
   SCREEN 1 - LOGIN
   ================================================================= */

#screen-login {
  position: relative;
  z-index: 1;               /* above the fixed splash media */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--footer-h));
  padding: 24px;
  overflow: hidden;
}

.login-media {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.login-media video {
  position: relative;
  z-index: 1;          /* above the fallback, below the scrim */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Sits BEHIND the video, so it only shows when there's no video to paint
   (missing file, decode failure, reduced-data mode). It must not be given
   a higher stacking order than the video or it hides it permanently. */
.login-media-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, var(--harbor-deep) 0%, var(--harbor) 55%, #2C6E8E 100%);
}
.login-media-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(16,34,43,0.55) 0%, rgba(16,34,43,0.72) 100%);
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--paper-raised);
  border: 1px solid rgba(16,34,43,0.15);
  border-radius: var(--radius);
  padding: 36px 32px 28px;
}

.login-mark { margin-bottom: 28px; }

.login-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin: 8px 0 14px;
}

.login-title {
  font-size: 34px;
  line-height: 1.05;
  color: var(--ink);
}

.login-sub {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.login-label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

.login-input {
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  margin-bottom: 10px;
}
.login-input:focus-visible {
  outline: 2px solid var(--harbor);
  outline-offset: 1px;
  border-color: var(--harbor);
}

.login-submit { margin-top: 4px; }

.login-error {
  color: var(--signal-deep);
  font-size: 13px;
  margin-top: 10px;
}

.login-footnote {
  margin-top: 20px;
  font-size: 12px;
  color: var(--ink-soft);
}

/* =================================================================
   SCREEN 2 - TEAM SELECT
   ================================================================= */

#screen-team {
  position: relative;
  z-index: 1;               /* above the fixed splash media */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--footer-h));
  padding: 24px;
}

.team-card {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - var(--footer-h) - 48px);
  overflow-y: auto;
  background: var(--paper-raised);
  border: 1px solid rgba(16,34,43,0.15);
  border-radius: var(--radius);
  padding: 32px;
}

.team-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin: 8px 0 6px;
}

.team-title { font-size: 24px; margin-bottom: 8px; }
.team-sub { color: var(--ink-soft); font-size: 14px; }

.team-list { margin: 22px 0; }

.team-block {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.team-block:first-child { border-top: none; padding-top: 4px; }

.team-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15.5px;
  color: var(--ink);
  margin-bottom: 10px;
}

.subteam-heading {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  margin: 12px 0 6px;
}
.subteam-heading:first-of-type { margin-top: 4px; }

.shift-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shift-option {
  padding: 9px 14px;
  font-size: 13.5px;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}
.shift-option:hover { border-color: var(--signal); color: var(--signal-deep); }
.shift-option:focus-visible { outline: 2px solid var(--harbor); outline-offset: 1px; }

.team-skip { width: 100%; }

/* =================================================================
   APP SHELL
   ================================================================= */

#app { height: calc(100vh - var(--footer-h)); display: flex; flex-direction: column; }

.app-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  height: 58px;
  flex: none;
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
  /* The header is a flex item, so this z-index makes it a stacking context
     that caps everything inside it - including the Buildings & spaces
     dropdown when it hangs down over the map. Leaflet paints its panes at
     400-700 and controls at 1000, so the header has to sit above those. */
  z-index: 1100;
}

.app-header-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.app-header-titles { line-height: 1.2; min-width: 0; }
.app-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14.5px;
  white-space: nowrap;
}
.app-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.app-header-nav {
  display: flex;
  gap: 2px;
  margin-left: 12px;
}
.nav-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13.5px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-btn:hover { color: var(--ink); }
.nav-btn.is-active { color: var(--ink); border-bottom-color: var(--signal); }

/* Full-colour badge logo - needs more height than a wordmark to stay legible,
   and no opacity knock-back (it reads as washed out rather than subtle). */
.app-logo { height: 40px; width: auto; display: block; flex: none; }

/* The logo on the landing and team cards, in place of the drafting cross. */
.brand-mark { height: 52px; width: auto; display: block; margin-bottom: 4px; }

.view { position: relative; flex: 1; min-height: 0; overflow: auto; }

/* ---- map view -------------------------------------------------- */

#view-map { padding: 0; overflow: hidden; }
#map { position: absolute; inset: 0; background: #dfe3e0; }

/* ---- the two things you can do from the map --------------------- */
/* Most people arrive here by scanning a QR code on a noticeboard, so both
   routes (a building, or the timeline) have to be obvious at a glance on a
   phone - not tucked behind the header nav. */

.map-actions {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: min(340px, calc(100% - 32px));
}

.map-actions-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
  box-shadow: 0 1px 0 rgba(16,34,43,0.04);
}

.btn-timeline {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 10px 14px;
  border: 1px solid var(--harbor-deep);
  border-radius: var(--radius);
  background: var(--harbor);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(16,34,43,0.22);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-timeline:hover { background: var(--harbor-deep); }
.btn-timeline:active { transform: translateY(1px); }
.btn-timeline:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* Tiny bar-chart glyph, so the button reads as "schedule" without words. */
.btn-timeline-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 20px;
  flex: none;
}
.btn-timeline-bars i { height: 4px; background: rgba(255,255,255,0.55); border-radius: 1px; }
.btn-timeline-bars i:nth-child(1) { width: 100%; background: var(--signal); }
.btn-timeline-bars i:nth-child(2) { width: 65%; }
.btn-timeline-bars i:nth-child(3) { width: 42%; }

.btn-timeline-text { min-width: 0; }
.btn-timeline-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.btn-timeline-text small {
  display: block;
  font-size: 11.5px;
  line-height: 1.35;
  color: rgba(255,255,255,0.78);
}
.btn-timeline-go { margin-left: auto; flex: none; font-size: 16px; opacity: 0.8; }

/* Leaflet building outline styling handled via JS options, but tweak popups/controls */
.leaflet-control-attribution { font-size: 10px; }

/* ---- generic section views (viz / faq) -------------------------- */

.section-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--signal-deep);
  margin-bottom: 8px;
}
.section-title {
  font-size: 26px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.viz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.viz-empty, .faq-empty {
  color: var(--ink-soft);
  font-size: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 24px;
}

.media-tile {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper-raised);
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

.media-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  background-image: linear-gradient(45deg, var(--paper) 25%, transparent 25%, transparent 75%, var(--paper) 75%),
                     linear-gradient(45deg, var(--paper) 25%, transparent 25%, transparent 75%, var(--paper) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  color: var(--ink-soft);
  text-align: center;
  padding: 12px;
}
.media-placeholder .mp-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  word-break: break-word;
}

.viz-caption { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }

/* ---- faq list ---------------------------------------------------- */

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq-q {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  margin-bottom: 6px;
}
.faq-a { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }

/* =================================================================
   BUILDING DETAIL PANEL
   ================================================================= */

.panel-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--signal-deep);
  background: #FBEFE7;
  border-radius: 2px;
  padding: 4px 8px;
  margin-bottom: 12px;
}

.panel-title {
  font-size: 24px;
  padding-right: 40px;
  margin-bottom: 20px;
}

.panel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.panel-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12.5px;
  color: var(--ink-soft);
  padding: 9px 4px;
  margin-right: 14px;
  cursor: pointer;
}
.panel-tab:hover { color: var(--ink); }
.panel-tab.is-active { color: var(--ink); border-bottom-color: var(--signal); }

.panel-pane { display: none; }
.panel-pane.is-active { display: block; }

.panel-copy {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
}

.panel-photo-grid, .panel-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.layout-notes { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 12px; line-height: 1.55; }

/* =================================================================
   RESPONSIVE
   ================================================================= */


/* ---- timeline (gantt) ------------------------------------------- */
/* Fixed label column + horizontally scrolling chart. Row heights are
   driven by these variables and must stay in sync on both sides, or the
   labels drift out of line with their bars. */

:root {
  --gantt-label-w: 196px;
  --gantt-row-h: 40px;
  --gantt-group-h: 30px;
  --gantt-axis-h: 44px;
}

.gantt-draft {
  margin-top: 14px;
  padding: 10px 14px;
  border-left: 3px solid var(--signal);
  background: rgba(193,87,30,0.09);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}
.gantt-intro {
  margin-top: 12px;
  max-width: 62ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.gantt-empty { margin-top: 16px; font-size: 13.5px; color: var(--ink-soft); }

.gantt-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px 0 12px;
}
.gantt-key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
}
.gantt-key::before {
  content: "";
  width: 16px;
  height: 11px;
  border-radius: 2px;
  border: 1px solid rgba(31,86,115,0.42);
  background: rgba(31,86,115,0.14);
}
.gantt-key.is-done::before { background: var(--harbor-deep); border-color: var(--harbor-deep); }
.gantt-key.is-active::before {
  background: linear-gradient(90deg, var(--harbor) 0 55%, rgba(31,86,115,0.14) 55% 100%);
}
.gantt-key.is-todo::before {
  background: repeating-linear-gradient(45deg, transparent 0 3px, rgba(31,86,115,0.22) 3px 6px);
}
.gantt-key.is-move::before {
  width: 11px; height: 11px;
  border: none; border-radius: 0;
  background: var(--signal);
  transform: rotate(45deg);
}

.gantt-frame {
  display: flex;
  border: 1px solid var(--line-strong);
  background: var(--paper-raised);
}

.gantt-labels {
  flex: none;
  width: var(--gantt-label-w);
  border-right: 1px solid var(--line-strong);
  background: var(--paper-raised);
}
.gantt-corner { height: var(--gantt-axis-h); border-bottom: 1px solid var(--line-strong); }

.gantt-group {
  display: flex;
  align-items: center;
  height: var(--gantt-group-h);
  padding: 0 12px;
  border-top: 1px solid var(--line-strong);
  background: rgba(16,34,43,0.045);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.gantt-group-track {
  height: var(--gantt-group-h);
  border-top: 1px solid var(--line-strong);
  background: rgba(16,34,43,0.045);
}

.gantt-label {
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--gantt-row-h);
  padding: 0 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.25;
  color: var(--ink);
}
.gantt-label-btn {
  width: 100%;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  border-left: none;
  border-right: none;
  border-bottom: none;
}
.gantt-label-btn:hover { color: var(--signal); background: rgba(193,87,30,0.06); }
.gantt-label-btn:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; }

.gantt-label-team { font-size: 11.5px; color: var(--ink-soft); }
.gantt-label-team.is-mine { color: var(--ink); font-weight: 400; background: rgba(193,87,30,0.08); }
.gantt-you {
  margin-left: auto;
  flex: none;
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--signal);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gantt-scroll { flex: 1; min-width: 0; overflow-x: auto; }
.gantt-canvas { position: relative; }

.gantt-axis { height: var(--gantt-axis-h); border-bottom: 1px solid var(--line-strong); }
.gantt-axis-row { display: flex; }
.gantt-year, .gantt-month {
  flex: none;
  overflow: hidden;
  font-family: var(--font-mono);
  color: var(--ink-soft);
  border-left: 1px solid var(--line);
}
.gantt-year:first-child, .gantt-month:first-child { border-left: none; }
.gantt-year {
  height: 21px;
  display: flex;
  align-items: center;
  padding-left: 6px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  background: rgba(16,34,43,0.03);
}
.gantt-month {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  letter-spacing: 0.04em;
}
.gantt-month span { overflow: hidden; }

.gantt-plot { position: relative; }
.gantt-gridline {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
  opacity: 0.7;
  pointer-events: none;
}
.gantt-today {
  position: absolute;
  top: 0; bottom: 0;
  width: 0;
  border-left: 1.5px dashed var(--signal);
  z-index: 4;
  pointer-events: none;
}
.gantt-today span {
  position: absolute;
  top: 2px;
  left: 3px;
  padding: 1px 5px;
  background: var(--signal);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gantt-track {
  position: relative;
  height: var(--gantt-row-h);
  border-top: 1px solid var(--line);
}
.gantt-track.is-mine { background: rgba(193,87,30,0.08); }

.gantt-bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  min-width: 3px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border: 1px solid rgba(31,86,115,0.45);
  border-radius: 2px;
  background: rgba(31,86,115,0.14);
  z-index: 2;
}
.gantt-bar.is-todo {
  background: repeating-linear-gradient(45deg, transparent 0 4px, rgba(31,86,115,0.2) 4px 8px);
}
.gantt-bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--harbor);
  border-radius: 1px;
}
.gantt-bar.is-done .gantt-bar-fill { background: var(--harbor-deep); }
.gantt-bar-text {
  position: relative;
  z-index: 1;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
  color: var(--ink);
}
/* On a fully-filled bar the text sits over solid harbor-deep, so it flips. */
.gantt-bar.is-done .gantt-bar-text { color: var(--white); }

.gantt-move {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 3;
}
.gantt-move.is-flip { transform: translate(-100%, -50%); flex-direction: row-reverse; }
.gantt-move-dot {
  flex: none;
  width: 11px;
  height: 11px;
  background: var(--signal);
  transform: rotate(45deg);
}
.gantt-move.is-mine .gantt-move-dot { box-shadow: 0 0 0 4px rgba(193,87,30,0.25); }
.gantt-move-label {
  flex: none;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-raised);
  font-family: var(--font-mono);
  font-size: 10.5px;
  white-space: nowrap;
  color: var(--ink);
}
.gantt-move-label em { font-style: normal; color: var(--ink-soft); }
.gantt-move.is-mine .gantt-move-label { border-color: var(--signal); font-weight: 400; }

@media (max-width: 640px) {
  .login-card { padding: 28px 22px 22px; }
  .login-title { font-size: 28px; }
  .team-list { grid-template-columns: 1fr; }
  .app-header { gap: 10px; padding: 0 12px; }
  .app-header-nav { margin-left: 4px; }
  .nav-btn { padding: 8px 7px; font-size: 12.5px; }
  .app-subtitle { display: none; }
  .panel { width: 100vw; }
  .panel-photo-grid, .panel-layout-grid { grid-template-columns: 1fr; }

  /* Map: let the two actions span the width so they're thumb-sized. */
  .map-actions { left: 12px; right: 12px; bottom: 12px; max-width: none; }

  /* Timeline: narrower labels, and a hint that the chart scrolls. */
  :root { --gantt-label-w: 112px; --gantt-row-h: 44px; }
  .section-inner { padding: 28px 14px 64px; }
  /* The chart is the tightest thing on the page - let it use the full
     screen width rather than sitting inside the section's gutters. */
  #gantt .gantt-frame {
    margin-left: -14px;
    margin-right: -14px;
    border-left: 0;
    border-right: 0;
  }
  .gantt-label-btn { font-size: 12px; }
  .gantt-label-team { font-size: 10.5px; }
  .gantt-label { padding: 0 8px; }
  .gantt-group { padding: 0 8px; }
  .gantt-you { display: none; }
  .gantt-label-team.is-mine::after {
    content: "\2190 you";
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--signal);
  }
}

/* ---- timeline: move window, milestones, TBC ---------------------- */
/* Added after the mobile block deliberately - these are additions to the
   gantt rules above, and the 640px overrides don't touch them. */

.gantt-window {
  position: absolute;
  top: 0; bottom: 0;
  background: rgba(193,87,30,0.10);
  border-left: 1px solid rgba(193,87,30,0.55);
  border-right: 1px solid rgba(193,87,30,0.55);
  pointer-events: none;
  z-index: 1;
}
.gantt-window-tab {
  position: absolute;
  top: 0;
  height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--signal);
  overflow: visible;
  pointer-events: none;
}
.gantt-window-tab span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

/* An unconfirmed programme shouldn't look like a committed one. */
.gantt-bar.is-tbc {
  border-style: dashed;
  border-color: var(--line-strong);
  background: repeating-linear-gradient(45deg, transparent 0 5px, rgba(16,34,43,0.12) 5px 10px);
}
.gantt-bar.is-tbc .gantt-bar-text { color: var(--ink-soft); }

.gantt-milestone {
  position: absolute;
  top: 0; bottom: 0;
  width: 0;
  border-left: 1px dashed var(--harbor);
  z-index: 2;
}
.gantt-milestone span {
  position: absolute;
  top: 3px;
  left: 4px;
  max-width: 150px;
  padding: 1px 5px;
  background: var(--harbor);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gantt-milestone.is-flip span { left: auto; right: 4px; }

/* "Somewhere inside the move window" - honest about a day that isn't set. */
.gantt-move-span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--signal);
  border-radius: 2px;
  background: rgba(193,87,30,0.22);
  z-index: 3;
}
.gantt-move-span.is-mine { background: var(--signal); }
.gantt-move-span-label {
  position: absolute;
  left: calc(100% + 8px);
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-raised);
  font-family: var(--font-mono);
  font-size: 10.5px;
  white-space: nowrap;
  color: var(--ink);
}
.gantt-move-span.is-mine .gantt-move-span-label { border-color: var(--signal); font-weight: 400; }
.gantt-move-span-label em { font-style: normal; color: var(--ink-soft); }

.gantt-move-none {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-soft);
}

.gantt-key.is-window::before {
  background: rgba(193,87,30,0.18);
  border-color: rgba(193,87,30,0.6);
}
.gantt-key.is-milestone::before {
  background: var(--harbor);
  border-color: var(--harbor);
}

/* ---- layout PDF link -------------------------------------------- */

.layout-pdf {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 120ms ease, background-color 120ms ease;
}
.layout-pdf:hover { border-color: var(--signal); background: rgba(193,87,30,0.05); }
.layout-pdf:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.layout-pdf-icon {
  flex: none;
  padding: 5px 7px;
  border-radius: 2px;
  background: var(--signal);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.layout-pdf strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
}
.layout-pdf small { display: block; font-size: 11.5px; color: var(--ink-soft); }

/* ---- map couldn't load its KML ---------------------------------- */

.map-problem {
  position: absolute;
  z-index: 15;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100% - 32px));
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
  background: var(--paper-raised);
  box-shadow: 0 4px 18px rgba(16,34,43,0.18);
}
.map-problem strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 15px;
}
.map-problem span {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.map-problem code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 1px 4px;
  border-radius: 2px;
  background: rgba(16,34,43,0.07);
  color: var(--ink);
  word-break: break-all;
}

/* ---- password field + show/hide --------------------------------- */

.login-input-wrap {
  position: relative;
  display: block;
  margin-bottom: 10px;
}
/* The input carried the bottom margin before it was wrapped; the wrapper
   owns the spacing now, or there's a double gap. */
.login-input-wrap .login-input {
  width: 100%;
  margin-bottom: 0;
  padding-right: 72px;   /* clear of the Show button */
}
.login-reveal {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease;
}
.login-reveal:hover { border-color: var(--ink); color: var(--ink); }
.login-reveal:focus-visible { outline: 2px solid var(--harbor); outline-offset: 1px; }

/* Shown only when the page failed to boot - see the safety net in index.html. */
.boot-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--signal);
  background: rgba(193,87,30,0.09);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
}

/* ---- site footer ------------------------------------------------- */
/* Fixed to the bottom on every screen. The screens above reserve
   --footer-h so nothing sits underneath it (Leaflet's attribution,
   the map's action buttons, the team list). z-index clears Leaflet. */
.site-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--footer-h);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 12px;
  background: var(--paper-raised);
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.site-footer img { height: 22px; width: auto; display: block; }

/* ---- building / space pages ------------------------------------ */

.building-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-raised);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease;
}
.building-back:hover { border-color: var(--ink); color: var(--ink); }
.building-back:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
#view-building .section-title { margin-bottom: 18px; }

@media (max-width: 640px) {
  /* Five nav items won't fit beside the title on a phone: let the nav
     scroll sideways, and drop the menu down full-width under the header
     (fixed, so the scrolling nav can't clip it). */
  .app-header-nav { flex: 1; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav-btn { flex: none; white-space: nowrap; }
  .app-title { font-size: 13px; }
}

/* ---- layout versions (Layout tab) ------------------------------- */

.layout-versions { display: grid; gap: 12px; margin: 14px 0 6px; }
.layout-version {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 14px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 120ms ease;
}
.layout-version:hover { border-color: var(--signal); }
.layout-version.is-latest { border-color: var(--harbor); }
.layout-version-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border: 1px solid var(--line);
  background: var(--paper);
}
.layout-version-nothumb {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.layout-version-text { display: block; min-width: 0; }
.layout-version-flag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 1px 6px;
  border-radius: 2px;
  background: var(--harbor);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.layout-version strong { display: block; font-weight: 400; font-size: 15px; line-height: 1.3; }
.layout-version-meta { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-soft); }
.layout-version-note { display: block; margin-top: 8px; font-size: 13px; line-height: 1.5; }

/* ---- recent updates (landing page) ------------------------------ */

.updates-intro { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); }
.updates-list { display: grid; gap: 14px; margin-top: 22px; }
.update {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
  background: var(--paper-raised);
}
.update-date {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.update-title { margin-top: 4px; font-size: 18px; font-weight: 300; line-height: 1.25; }
.update-text { margin-top: 8px; font-size: 14px; line-height: 1.55; }
.update-link {
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease;
}
.update-link:hover { border-color: var(--signal); color: var(--signal-deep); }

@media (max-width: 640px) {
  /* Header title stacks on a phone: Project / Better / Spaces. */
  .app-title { font-size: 12px; line-height: 1.05; }
  .app-title span { display: block; }
  .layout-version { grid-template-columns: 1fr; }
  .layout-version-thumb { aspect-ratio: 16 / 10; }
}

/* ---- Buildings & Spaces finder (modal) --------------------------- */

.finder {
  position: fixed;
  inset: 0;
  z-index: 1300;             /* above the header (1100) and footer (1200) */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px 16px;
  background: rgba(16,34,43,0.45);
}
.finder-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: 84vh;
  padding: 18px;
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(16,34,43,0.3);
}
.finder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.finder-title { font-size: 20px; }
.finder-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.finder-close:hover { border-color: var(--ink); color: var(--ink); }
.finder-search {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;            /* 16px stops iOS zooming the page on focus */
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.finder-search:focus-visible { outline: 2px solid var(--harbor); outline-offset: 1px; border-color: var(--harbor); }
.finder-count {
  margin: 10px 2px 6px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.finder-results {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 0;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}
.finder-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 8px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  cursor: pointer;
}
.finder-item:hover,
.finder-item:focus-visible { background: rgba(193,87,30,0.08); outline: none; }
.finder-item strong { display: block; font-weight: 400; font-size: 15px; }
.finder-item small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-soft); }
.finder-empty { padding: 14px 8px; font-size: 13.5px; color: var(--ink-soft); }

@media (max-width: 640px) {
  /* Full-screen sheet on a phone; the keyboard needs the room. */
  .finder { padding: 0; align-items: stretch; }
  .finder-panel { max-width: none; max-height: none; height: 100%; border: 0; border-radius: 0; }
}

/* ---- timeline: works bars, completion, last/first day ----------- */

.gantt-bar.is-works {
  justify-content: flex-start;
  background: rgba(31,86,115,0.16);
  border-color: rgba(31,86,115,0.45);
}
.gantt-bar.is-start-tbc {
  border-style: dashed;
  background: repeating-linear-gradient(45deg, transparent 0 5px, rgba(31,86,115,0.16) 5px 10px);
}
.gantt-bar.is-start-tbc .gantt-bar-text { color: var(--ink-soft); }

.gantt-done {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 3;
}
.gantt-done-dot {
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--harbor-deep);
  transform: rotate(45deg);
}
.gantt-done-label {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-raised);
  font-size: 10.5px;
  white-space: nowrap;
}

.gantt-move.is-last .gantt-move-dot { background: var(--harbor); }
.gantt-move.is-first .gantt-move-dot { background: var(--signal); }
.gantt-move.is-last .gantt-move-label { border-color: rgba(31,86,115,0.5); }
.gantt-move.is-first .gantt-move-label { border-color: rgba(193,87,30,0.55); }
.gantt-gap {
  position: absolute;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(16,34,43,0.22);
}

.gantt-key.is-works::before { background: rgba(31,86,115,0.16); border-color: rgba(31,86,115,0.45); }
.gantt-key.is-complete::before {
  width: 11px; height: 11px; border: none; border-radius: 0;
  background: var(--harbor-deep); transform: rotate(45deg);
}
.gantt-key.is-last::before {
  width: 11px; height: 11px; border: none; border-radius: 0;
  background: var(--harbor); transform: rotate(45deg);
}
.gantt-key.is-first::before {
  width: 11px; height: 11px; border: none; border-radius: 0;
  background: var(--signal); transform: rotate(45deg);
}

/* ---- timeline: building rows that unfold into their teams ------- */

.gantt-label-bld {
  gap: 0;
  padding: 0 4px 0 0;
  background: rgba(31,86,115,0.06);
}
.gantt-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 6px 0 10px;
  border: none;
  background: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.gantt-toggle:hover .gantt-bld-name { color: var(--signal); }
.gantt-toggle:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; }
.gantt-caret {
  flex: none;
  width: 0; height: 0;
  border-left: 5px solid var(--ink-soft);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 120ms ease;
}
.gantt-toggle[aria-expanded="true"] .gantt-caret { transform: rotate(90deg); }
.gantt-bld-name { flex: none; }
.gantt-bld-count {
  flex: none;
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 9px;
  background: var(--harbor);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.gantt-open {
  flex: none;
  width: 26px;
  height: 26px;
  margin-left: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper-raised);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.gantt-open:hover { border-color: var(--signal); color: var(--signal); }

/* Team rows sit indented under their building. */
.gantt-label-team[data-parent] {
  padding-left: 24px;
  border-left: 3px solid rgba(31,86,115,0.35);
}
.gantt-label-team[data-parent].is-mine { border-left-color: var(--signal); }

@media (max-width: 640px) {
  .gantt-toggle { padding-left: 6px; gap: 5px; font-size: 12px; }
  .gantt-bld-count { display: none; }          /* the caret says it unfolds */
  .gantt-open { width: 22px; height: 22px; margin-left: 2px; }
  .gantt-label-team[data-parent] { padding-left: 12px; }
}

/* ---- avatar (change your team) ---------------------------------- */

.app-header-right { margin-left: auto; flex: none; display: flex; align-items: center; }
.avatar-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.avatar-btn svg { width: 19px; height: 19px; fill: var(--ink-soft); }
.avatar-btn.has-team { border-color: var(--harbor); background: rgba(31,86,115,0.08); }
.avatar-btn.has-team svg { fill: var(--harbor); }
.avatar-btn:hover { border-color: var(--signal); }
.avatar-btn:hover svg { fill: var(--signal); }
.avatar-btn:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

.team-current {
  margin-top: 10px;
  padding: 8px 12px;
  border-left: 3px solid var(--harbor);
  background: rgba(31,86,115,0.07);
  font-size: 13.5px;
}
.team-cancel { width: 100%; margin-top: 8px; }

@media (max-width: 640px) {
  .avatar-btn { width: 30px; height: 30px; }
  .avatar-btn svg { width: 17px; height: 17px; }
}

/* ---- your team strip under the header --------------------------- */

.team-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 6px 20px;
  background: rgba(31,86,115,0.08);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.team-bar-label {
  flex: none;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.team-bar-text { min-width: 0; }
.team-bar-change {
  flex: none;
  margin-left: auto;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 11.5px;
  cursor: pointer;
}
.team-bar-change:hover { border-color: var(--signal); color: var(--signal); }

/* Timeline team labels: team as a caption, shift beneath. */
.gantt-label-team {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  overflow: hidden;
  line-height: 1.2;
}
.gantt-team-group {
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.gantt-team-name { display: inline-flex; align-items: center; gap: 6px; }
.gantt-label-team .gantt-you { margin-left: 0; }

@media (max-width: 640px) {
  .team-bar { padding: 6px 12px; font-size: 11.5px; gap: 8px; }
  .team-bar-label { display: none; }
  .gantt-team-group { font-size: 8.5px; }
  .gantt-team-name { font-size: 10.5px; }
}

@media (max-width: 640px) {
  /* Team rows on a phone: the long names need a taller row. Both the label
     and its track take the same height, so the columns stay aligned. */
  .gantt-label-team, .gantt-track-team { height: 56px; }
  .gantt-label-team { padding-right: 6px; }
  .gantt-team-name { line-height: 1.15; }
  /* The inline badge fits now; the "<- you" suffix would add a line. */
  .gantt-label-team .gantt-you { display: inline-block; }
  .gantt-label-team.is-mine::after { content: none; }

  /* The strip must never be wider than the screen: let its parts wrap. */
  .team-bar { flex-wrap: wrap; row-gap: 4px; }
  .team-bar-text { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
}

/* Completion labels near the right edge sit to the left of their diamond. */
.gantt-done.is-flip { transform: translate(-100%, -50%); flex-direction: row-reverse; }

/* ---- timeline: common name under the building number ------------ */

.gantt-bld-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.gantt-bld-caption {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 300;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gantt-label-btn {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  overflow: hidden;
  line-height: 1.15;
}
.gantt-label-btn .gantt-bld-caption { max-width: 100%; }
@media (max-width: 640px) {
  .gantt-bld-caption { font-size: 9.5px; }
}
