/* Dedicated unauthenticated MyBuilding landing.
   The app shell remains unchanged for authenticated users. */
.app.signed-out {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.app.signed-out .sidebar {
  position: static;
  height: auto;
  min-height: 0;
  padding: 20px clamp(20px, 4vw, 52px);
  background: var(--surface);
  border: 0;
  border-bottom: 1px solid var(--line);
}
.app.signed-out .brand {
  margin: 0;
  line-height: 1.2;
}
.app.signed-out .nav,
.app.signed-out .identity,
.app.signed-out .page {
  display: none !important;
}
.app.signed-out main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-height: 0;
  padding: 0 clamp(20px, 4vw, 52px) 18px;
}
.app.signed-out .top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 66px;
  margin: 0;
  padding: 12px 0;
}
.app.signed-out .top > div:first-child { display: none !important; }
.app.signed-out .top .controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: auto;
}
.app.signed-out .top .controls #tenant,
.app.signed-out .top .controls #site,
.app.signed-out .top .controls #login,
.app.signed-out .top .controls #logout,
.app.signed-out .top .controls #refresh {
  display: none !important;
}
.app.signed-out .top .controls #language {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  grid-column: auto;
  justify-self: auto;
}
.app.signed-out .top .controls #theme-toggle {
  width: 124px;
  min-width: 124px;
  max-width: 124px;
  flex: 0 0 124px;
  min-height: 40px;
  height: 40px;
  padding: 0 26px 0 11px;
  grid-column: auto;
}
.app.signed-out .signed-out-landing {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  padding: 20px 0 40px;
}
.app.signed-out .signed-out-landing[hidden] { display: none !important; }
.app.signed-out .welcome-panel {
  width: min(100%, 640px);
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 14px 44px rgba(8, 30, 54, .07);
}
.app.signed-out .welcome-eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
}
.app.signed-out .welcome-panel h2 {
  max-width: 540px;
  margin: 0 0 16px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 780;
  letter-spacing: -.035em;
  line-height: 1.13;
}
.app.signed-out .welcome-detail {
  max-width: 480px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.65;
}
.app.signed-out .welcome-login {
  min-height: 48px;
  min-width: 176px;
  padding: 11px 24px;
  font-size: 15px;
}
.app.signed-out .welcome-footnote {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.app.signed-out .app-footer {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 16px 0 0;
  font-size: 11px;
}
html[data-theme="dark"] .app.signed-out .sidebar,
html[data-theme="dark"] .app.signed-out .welcome-panel {
  background: var(--surface);
}
html[data-theme="dark"] .app.signed-out .welcome-panel {
  box-shadow: 0 16px 50px rgba(0, 0, 0, .18);
}
@media (max-width: 640px) {
  .app.signed-out .sidebar {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
  }
  .app.signed-out .brand { margin: 0; font-size: 22px; }
  .app.signed-out .brand img { width: 32px; height: 32px; }
  .app.signed-out main { padding: 0 18px 18px; }
  .app.signed-out .top {
    align-items: center;
    min-height: 68px;
    padding: 10px 0;
    margin: 0;
  }
  .app.signed-out .top .controls {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: 100%;
    gap: 10px;
  }
  .app.signed-out .top .controls #theme-toggle {
    width: 108px;
    min-width: 108px;
    max-width: 108px;
    flex-basis: 108px;
  }
  .app.signed-out .signed-out-landing {
    flex: 1 0 auto;
    padding: 20px 0 34px;
  }
  .app.signed-out .welcome-panel {
    padding: 30px 25px;
    border-radius: 14px;
  }
  .app.signed-out .welcome-panel h2 { font-size: clamp(30px, 8vw, 38px); }
  .app.signed-out .welcome-detail { font-size: 15px; margin-bottom: 24px; }
  .app.signed-out .welcome-login { width: 100%; min-height: 48px; }
  .app.signed-out .app-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    justify-content: center;
    text-align: center;
  }
}
