* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f3f5f7;
  color: #172d36;
  font:
    16px system-ui,
    sans-serif;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #142f38;
  color: white;
  padding: 20px 5vw;
}
header strong {
  font-size: 23px;
}
header span {
  color: #8ce6c9;
}
small {
  letter-spacing: 0.1em;
  font-size: 11px;
}
.layout {
  max-width: 1350px;
  margin: auto;
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 85vh;
}
aside {
  padding: 30px 20px;
  border-right: 1px solid #dce4e6;
}
aside p,
.muted {
  color: #4c646b;
  font-size: 14px;
}
nav {
  display: grid;
  gap: 8px;
  margin-bottom: 25px;
}
main {
  min-width: 0;
  padding: 35px clamp(18px, 4vw, 55px);
}
h1 {
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.045em;
  margin: 8px 0;
}
h2 {
  margin-top: 0;
  font-size: 22px;
}
section {
  background: white;
  border: 1px solid #dce4e6;
  border-radius: 16px;
  padding: 22px;
  margin: 16px 0;
}
.hero {
  background: #dff5ed;
}
.tag {
  display: inline-block;
  background: #fff;
  color: #175942;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.grid section {
  margin: 0;
}
label {
  display: block;
  font-weight: 600;
  margin: 10px 0;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #aebfc3;
  border-radius: 8px;
  background: white;
  color: inherit;
  font: inherit;
  margin-top: 5px;
}
textarea {
  min-height: 70px;
}
input[type="checkbox"] {
  display: inline;
  width: auto;
}
button,
.button {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  padding: 10px 13px;
  background: #17634f;
  color: white;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  margin: 3px 4px 3px 0;
}
button.secondary {
  background: #e3eeeb;
  color: #194b42;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #e98740;
  outline-offset: 2px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.logo,
.photo {
  max-width: 140px;
  max-height: 110px;
  border-radius: 8px;
}
.notice {
  background: #fff4d9;
  padding: 10px;
  border-radius: 8px;
}
.map {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: 8px;
}
.line {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg {
  background: #eff5f4;
  padding: 8px 12px;
  border-radius: 8px;
}
.pin {
  display: inline-block;
  width: 160px;
  height: 160px;
}
@media (max-width: 650px) {
  .layout {
    display: block;
  }
  aside {
    border: 0;
    padding: 12px 18px;
  }
  aside p {
    display: none;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
  }
  main {
    padding-top: 5px;
  }
}
#toast {
  position: fixed;
  bottom: 18px;
  right: 18px;
  left: 18px;
  max-width: 760px;
  margin: auto;
  background: #173b32;
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  z-index: 1100;
  box-shadow: 0 8px 30px #0003;
}
dialog {
  border: 1px solid #b4c7c0;
  border-radius: 16px;
  max-width: 480px;
  width: calc(100% - 30px);
}
dialog::backdrop {
  background: #102a35aa;
}
#login-error {
  color: #9b2525;
}
#account span {
  font-size: 13px;
  overflow-wrap: anywhere;
}
#connection {
  font-size: 13px;
  color: #476760;
}
.map[hidden] {
  display: none;
}
.notifications {
  border-left: 4px solid #267456;
}
.leaflet-container {
  font-family: inherit;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
input,
textarea {
  max-width: 100%;
}
.photo {
  max-width: 100%;
  max-height: 240px;
}
header {
  gap: 12px;
  flex-wrap: wrap;
}
#invite-link {
  min-height: 100px;
}
#app {
  padding-bottom: 100px;
}
.bell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  vertical-align: middle;
  background: #e3eeeb;
  color: #173b32;
}
.bell svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bell span {
  min-width: 23px;
  line-height: 23px;
  border-radius: 50%;
  background: #ae381c;
  color: white;
  font-size: 12px;
  font-weight: 750;
}
.tenant-pages {
  display: grid;
  gap: 6px;
  border-top: 1px solid #cbdad4;
  padding-top: 14px;
  margin-top: 8px;
}
.tenant-pages button {
  font-size: 14px;
}
#account {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
/* Area navigation and task-focused pages. */
body {
  background: #f2f5f7;
  color: #1c343d;
}
header {
  padding: 18px max(24px, calc((100vw - 1440px) / 2));
  min-height: 84px;
  background: #12333d;
}
.layout {
  max-width: 1480px;
  grid-template-columns: 254px minmax(0, 1fr);
}
aside {
  background: #f9fbfb;
  padding: 32px 20px;
  border-right: 1px solid #dce5e7;
}
main {
  padding: 30px 36px 100px;
  min-width: 0;
}
h1 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}
section {
  padding: 25px;
  border-color: #e1e8eb;
  border-radius: 17px;
  box-shadow: 0 3px 12px #173a4505;
}
h2 {
  font-size: 21px;
}
p {
  line-height: 1.6;
}
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
}
.area-label {
  font-size: 10px !important;
  color: #648087 !important;
  font-weight: 750;
  letter-spacing: 0.12em;
  margin: 0 10px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 12px;
  margin: 0;
  background: transparent;
  color: #4a646b;
  text-align: left;
  font-size: 14px;
  font-weight: 650;
  border-radius: 10px;
}
.nav-item:hover {
  background: #eaf2f0;
}
.nav-item.active {
  background: #17634f;
  color: white;
  box-shadow: 0 4px 12px #17634f15;
}
nav {
  gap: 5px;
  margin-bottom: 28px;
}
.page-heading {
  margin: 5px 0 24px;
}
.page-heading small {
  color: #56816f;
  font-weight: 750;
}
.page-heading p {
  color: #61777e;
  margin-bottom: 0;
}
.hero {
  background: linear-gradient(120deg, #e1f3eb, #edf7f3);
  border: 1px solid #d2e7dc;
}
.hero small {
  color: #3c7562;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 20px 0;
}
.stat {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: white;
  color: #1c343d;
  border: 1px solid #dfe7e9;
  padding: 22px;
  text-align: left;
  border-radius: 15px;
  margin: 0;
}
.stat strong {
  font-size: 34px;
  line-height: 1.1;
}
.stat span {
  grid-row: 2;
  font-size: 13px;
  margin-top: 10px;
  color: #627980;
}
.stat .icon {
  color: #26745d;
  grid-column: 2;
  grid-row: 1/3;
  width: 30px;
  height: 30px;
}
.activity-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.activity-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 17px;
  background: white;
  color: #244049;
  border: 1px solid #dbe5e7;
  border-radius: 13px;
  margin: 0;
  flex-wrap: wrap;
}
.activity-choice > span:first-of-type {
  flex: 1;
  min-width: 100px;
}
.activity-choice small {
  display: block;
  letter-spacing: 0;
  color: #72858a;
  margin-top: 5px;
  font-weight: 450;
}
.activity-choice .logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.chosen {
  border-color: #248365 !important;
  background: #edf7f2 !important;
  color: #174e3b !important;
}
.activity-heading {
  display: flex;
  gap: 21px;
  align-items: center;
}
.activity-heading h1 {
  margin: 6px 0 10px;
}
.activity-heading .logo {
  width: 90px;
  max-height: 90px;
  object-fit: contain;
}
.activity-mark {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: #e3f2eb;
  display: grid;
  place-items: center;
  color: #286a54;
}
.activity-mark .icon {
  width: 38px;
  height: 38px;
}
.activity-card {
  padding: 29px;
}
.activity-card small {
  color: #668177;
}
.description {
  max-width: 750px;
  color: #536c74;
}
.activity-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 20px 0;
  margin: 12px 0;
  border-block: 1px solid #e4ebed;
}
.activity-details dt {
  font-weight: 700;
  font-size: 13px;
  color: #31524c;
}
.activity-details dd {
  margin: 5px 0 0;
  color: #5d747b;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dce7e4;
  padding: 11px 13px;
  border-radius: 10px;
  text-decoration: none;
  color: #245c4c;
  font-size: 14px;
  background: #f7faf9;
}
.contact-link:hover {
  background: #e9f5ef;
}
.activity-actions {
  padding-top: 4px;
}
.chat-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.chat-layout > section {
  margin: 0;
}
.conversation-list {
  padding: 10px;
  display: grid;
  gap: 7px;
}
.conversation {
  display: grid;
  gap: 5px;
  padding: 15px;
  background: #f9fbfb;
  color: #2e454e;
  text-align: left;
  border: 1px solid #e4eaec;
  margin: 0;
}
.conversation span {
  font-size: 13px;
  font-weight: 450;
}
.conversation small {
  letter-spacing: 0;
  color: #647c82;
}
.conversation-heading {
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e9eb;
}
.conversation-heading h2 {
  margin-bottom: 5px;
}
.conversation-heading p {
  margin: 0 0 8px;
  color: #637980;
}
.message-list {
  padding: 20px 0;
  min-height: 220px;
  max-height: 500px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.message {
  background: #f0f4f5;
  padding: 12px 15px;
  border-radius: 12px;
  max-width: 90%;
  align-self: flex-start;
  overflow-wrap: anywhere;
}
.message.own {
  background: #dff2e8;
  align-self: flex-end;
}
.message strong {
  font-size: 12px;
  color: #46665b;
}
.message p {
  margin: 5px 0 0;
  font-size: 14px;
}
.conversation-body form {
  padding-top: 14px;
  border-top: 1px solid #e2e9eb;
}
.request-actions {
  margin-top: 18px;
  border-top: 1px solid #e7edef;
  padding-top: 12px;
}
#tenant-label {
  font-size: 13px;
}
#connection {
  margin-top: 16px;
  font-size: 12px;
}
.tag {
  background: #e6f3ed;
  color: #23634b;
  font-size: 12px;
}
.availability-tag--available {
  background: #dcf3e7;
  color: #145638;
}
.availability-tag--busy {
  background: #ffedcb;
  color: #754400;
}
.availability-tag--offline {
  background: #fbe4e5;
  color: #8c2530;
}
.availability-tag--unknown {
  background: #e9edf0;
  color: #455660;
}
button,
.button {
  font-size: 14px;
}
input,
select,
textarea {
  font-size: 15px;
  padding: 12px;
  border-color: #c8d6da;
}
label {
  font-size: 13px;
  color: #35545a;
}
#account {
  justify-content: flex-end;
}
#account span {
  font-size: 12px;
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  main {
    padding: 25px 22px 100px;
  }
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .conversation-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat .icon {
    display: none;
  }
  .activity-heading .logo,
  .activity-mark {
    width: 62px;
    height: 62px;
  }
}
@media (max-width: 650px) {
  header {
    padding: 16px 20px;
  }
  .layout {
    display: block;
  }
  aside {
    padding: 15px 15px 8px;
    border-right: 0;
    border-bottom: 1px solid #dee7e9;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
  }
  .area-label {
    display: block;
    flex-basis: 100%;
    margin: 0 4px 4px !important;
  }
  .nav-item {
    width: auto;
    padding: 10px;
    font-size: 12px;
    gap: 6px;
    flex: 1 0 auto;
    justify-content: center;
  }
  .nav-item .icon {
    width: 18px;
    height: 18px;
  }
  main {
    padding: 20px 15px 100px;
  }
  .activity-card,
  section {
    padding: 20px;
  }
  .activity-details {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .activity-heading {
    gap: 12px;
  }
  .activity-heading h1 {
    font-size: 28px;
  }
  .activity-heading small {
    font-size: 10px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    grid-template-columns: auto 1fr;
    gap: 15px;
    padding: 17px;
  }
  .stat span {
    grid-row: 1;
    margin: 0;
  }
  .stat strong {
    font-size: 28px;
  }
  .conversation-list {
    grid-template-columns: 1fr;
  }
  .contact-link {
    flex: 1;
    min-width: 110px;
    justify-content: center;
  }
  #account {
    gap: 5px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .activity-choice {
    padding: 14px;
  }
  #tenant-label {
    margin: 12px 0;
  }
  #connection {
    margin: 8px 4px;
    font-size: 11px;
  }
}

.team-stats {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
  margin-bottom: 0;
}
.team-stat,
.team-card {
  border-inline-start: 4px solid var(--team-accent, #627980);
}
.team-stat .icon {
  color: var(--team-accent, #627980);
}
.team-available {
  --team-accent: #16704e;
}
.team-busy {
  --team-accent: #a4422d;
}
.team-travel {
  --team-accent: #946100;
}
.team-off {
  --team-accent: #627980;
}
.team-card .tag {
  color: var(--team-accent, #627980);
}
.team-card h2 {
  margin-top: 12px;
}

.team-report {
  background: white;
  border: 1px solid #dfe7e9;
  border-radius: 15px;
  padding: 18px;
}
.team-report h3 { margin-top: 0; }

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
#mobile-menu, #install-app[hidden] { display: none; }
@media (max-width: 650px) {
  header {
    padding: 12px max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left));
    gap: 8px;
    flex-wrap: wrap;
  }
  header strong { font-size: 19px; }
  .header-actions { gap: 4px; }
  #account { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; }
  #account > span { display: none; }
  .mobile-menu-ready #mobile-menu { display: inline-flex; align-items: center; }
  .mobile-menu-ready #app-nav:not([data-open]) { display: none; }
  #app-nav nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  #app-nav .nav-item { width: 100%; min-width: 0; justify-content: flex-start; text-align: left; }
  #app-nav .area-label { grid-column: 1 / -1; }
  button, .button { min-height: 44px; }
  input, textarea, select { font-size: 16px; max-width: 100%; }
  fieldset, form, .grid > *, section { min-width: 0; }
  main, section { overflow-wrap: anywhere; }
  main { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  dialog { max-height: 88dvh; overflow: auto; }
  .activity-mark { flex-shrink: 0; }
}

.legal-page { max-width: 900px; margin-inline: auto; }
.legal-page h2 { margin-top: 1.7em; }
.legal-page li { margin-block: 0.45em; }
.legal-draft {
  background: #fff7e2;
  border: 1px solid #eddbaa;
  border-radius: 10px;
  padding: 12px;
}
.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid #dce4e6;
}
.legal-footer a, .legal-links a, .legal-page a { color: #175942; }

.showcase-editor,
.showcase-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 38px);
  align-items: start;
}
.showcase-hero {
  align-items: center;
  padding: clamp(24px, 5vw, 64px);
}
.showcase-hero > div:only-child {
  grid-column: 1 / -1;
}
.showcase-dark {
  background: #1c2822;
  color: #fff9eb;
  border-color: #1c2822;
}
.showcase-light {
  background: #f4f0e6;
  color: #20352a;
  border-color: #d8e4db;
}
.showcase-hero small {
  display: block;
  color: inherit;
}
.showcase-logo {
  display: block;
  width: 100px;
  height: 78px;
  object-fit: contain;
  margin-bottom: 12px;
}
.showcase-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}
.showcase-gallery,
.showcase-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 12px;
}
.showcase-services {
  padding: 0;
  list-style: none;
}
.showcase-services li {
  padding: 14px;
  background: #e8f1ec;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.showcase-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}
.tenant-poster {
  padding: clamp(16px, 4vw, 48px);
  text-align: center;
  border: 1px solid;
  outline: 1px solid #85a992;
  outline-offset: -9px;
  overflow-wrap: anywhere;
}
.tenant-poster .showcase-logo {
  margin-inline: auto;
}
.tenant-poster h2,
.poster-headline {
  font-family: Georgia, serif;
}
.tenant-poster h2 {
  font-size: clamp(24px, 3.5vw, 42px);
  margin: 8px 0;
}
.poster-headline {
  font-size: clamp(18px, 2.4vw, 26px);
  margin-bottom: 24px;
}
.poster-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.poster-media.with-photo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.poster-media .pin {
  display: block;
  margin: auto;
  width: min(100%, 235px);
  height: auto;
}
.poster-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
}
.poster-contact {
  border-top: 1px solid #85a992;
  padding-top: 14px;
  margin: 18px 0 0;
}
#poster-preview {
  margin-bottom: 16px;
}
@media (max-width: 1050px) {
  .showcase-editor {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .showcase-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media print {
  body.printing-poster {
    margin: 0;
    background: white;
  }
  .printing-poster :is(header, aside, footer, .page-heading, #toast, dialog),
  .printing-poster #app > :not(.showcase-editor),
  .printing-poster .showcase-editor > section:first-child,
  .printing-poster .showcase-editor button {
    display: none !important;
  }
  .printing-poster :is(.layout, .showcase-editor) {
    display: block;
    min-height: 0;
  }
  .printing-poster :is(main, .showcase-editor > section) {
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: 0;
  }
  .printing-poster .tenant-poster {
    width: 100%;
    break-inside: avoid;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

.showcase-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
}
.showcase-navigation a {
  color: #17614f;
  font-weight: 650;
}
