/* Empty page structure stays visible while account-aware components initialize. */
.startup-pending > :not(#pageStartup) {
  visibility: hidden !important;
}
.page-startup {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow: auto;
  background: #f6f7fa;
  color: #334155;
  font-family: system-ui, sans-serif;
}
.page-startup,
.page-startup * {
  box-sizing: border-box;
}
.startup-header {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1240px, calc(100% - 24px));
  min-height: 70px;
  margin: 12px auto 0;
  padding: 12px 18px;
  border: 1px solid #fff;
  border-radius: 22px;
  background: #fcfdff;
  box-shadow: 0 12px 40px #2128360d;
}
.startup-brand {
  display: block;
  color: #f97316;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -1px;
  line-height: 1.1;
}
.startup-brand span {
  color: #ef4437;
}
.startup-header small {
  color: #7c8592;
  font-size: 9px;
  letter-spacing: 2px;
}
.startup-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}
.startup-nav span,
.startup-account,
.startup-line,
.startup-search,
.startup-cards > span,
.startup-metrics > span,
.startup-gallery,
.startup-property-details > span {
  display: block;
  background: #e8ecf1;
  border-radius: 12px;
}
.startup-nav span {
  width: 68px;
  height: 12px;
}
.startup-account {
  width: 84px;
  height: 36px;
  flex: 0 0 auto;
}
.startup-content {
  width: min(1180px, calc(100% - 40px));
  margin: 44px auto;
}
.startup-line {
  width: min(340px, 80%);
  height: 14px;
  margin-bottom: 16px;
}
.startup-heading {
  width: min(480px, 90%);
  height: 32px;
}
.startup-hero {
  display: grid;
  justify-items: center;
  padding: 40px 0 48px;
}
.startup-hero .startup-heading {
  height: 48px;
}
.startup-search {
  width: min(840px, 100%);
  height: 68px;
  margin-top: 24px;
  background: #fff;
  border: 1px solid #e8ecf1;
}
.startup-cards,
.startup-metrics,
.startup-property-details {
  display: grid;
  gap: 20px;
}
.startup-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.startup-cards > span {
  height: 240px;
}
.startup-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 32px 0;
}
.startup-metrics > span {
  height: 108px;
}
.startup-panel {
  padding: 24px;
  border: 1px solid #e5e9ef;
  border-radius: 20px;
  background: #fff;
}
.startup-chart {
  display: block;
  height: 230px;
  margin-top: 24px;
  background: repeating-linear-gradient(to top, #edf0f4 0 1px, transparent 1px 58px);
}
.startup-gallery {
  height: 360px;
  margin-bottom: 28px;
}
.startup-property-details {
  grid-template-columns: 2fr 1fr;
  margin-top: 28px;
}
.startup-property-details > span {
  height: 240px;
}
.startup-dashboard,
.startup-property {
  display: none;
}
html[data-startup-layout="dashboard"] .startup-marketplace,
html[data-startup-layout="property"] .startup-marketplace,
html[data-startup-layout="property"] .startup-header {
  display: none;
}
html[data-startup-layout="dashboard"] .startup-dashboard,
html[data-startup-layout="property"] .startup-property {
  display: block;
}
html[data-startup-layout="property"] .startup-content {
  margin-top: 20px;
}
.startup-feedback {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, calc(100% - 32px));
  padding: 16px 20px;
  border: 1px solid #e5e9ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 32px #21283614;
  font-size: 14px;
  line-height: 1.6;
  /* Also provides a reload link if the bootstrap script cannot run. */
  animation: startup-show-feedback 0s 5s both;
}
.startup-retry {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #d1d8e0;
  border-radius: 10px;
  color: #994027;
  background: #fff;
  font-weight: 650;
}
.startup-retry[hidden] {
  display: none;
}
.page-startup.startup-failed .startup-placeholder {
  display: none;
}
.startup-failed .startup-feedback {
  animation: none;
  position: static;
  transform: none;
  width: 100%;
  max-width: 560px;
  margin-top: 28px;
}
@keyframes startup-show-feedback {
  from { visibility: hidden; }
  to { visibility: visible; }
}
@media (max-width: 700px) {
  .startup-header {
    gap: 12px;
    min-height: 66px;
    padding: 10px 14px;
  }
  .startup-nav {
    display: none;
  }
  .startup-account {
    margin-left: auto;
    width: 70px;
  }
  .startup-content {
    width: calc(100% - 24px);
    margin-top: 30px;
  }
  .startup-hero {
    padding: 30px 0;
  }
  .startup-cards {
    grid-template-columns: 1fr;
  }
  .startup-cards > span:not(:first-child) {
    display: none;
  }
  .startup-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .startup-property-details {
    grid-template-columns: 1fr;
  }
  .startup-gallery {
    height: 260px;
  }
}
