:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #20252b;
  background: #f4f5f3;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 58px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #f8faf9;
  background: #252a2e;
  border-bottom: 3px solid #c45d39;
}

.brand,
.environment {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 650;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  color: #252a2e;
  background: #f8faf9;
  border-radius: 4px;
  font-weight: 800;
}

.environment {
  gap: 7px;
  color: #d6dcda;
  font-size: 0.82rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #51b37d;
  border-radius: 50%;
}

main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 72px;
  flex: 1;
}

.section-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #cbd0cd;
}

.eyebrow {
  margin: 0 0 5px;
  color: #9b462e;
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.app-count {
  margin-bottom: 18px;
  color: #656d69;
  font-size: 0.84rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 14px;
}

.app-card {
  min-height: 176px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #d6dbd8;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgb(30 42 37 / 5%);
}

.app-card h2 {
  margin: 0 0 9px;
  font-size: 1.08rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.app-card p {
  margin: 0 0 22px;
  color: #5d6662;
  font-size: 0.9rem;
  line-height: 1.55;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.version {
  color: #7a827f;
  font-size: 0.75rem;
}

.open-link {
  color: #185a78;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.open-link:hover,
.open-link:focus-visible {
  color: #9b462e;
}

.state-message {
  grid-column: 1 / -1;
  margin: 28px 0;
  color: #656d69;
}

.state-message.error {
  color: #a03535;
}

footer {
  padding: 18px 32px;
  color: #747c78;
  border-top: 1px solid #d6dbd8;
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 520px) {
  .topbar {
    padding: 0 18px;
  }

  main {
    width: min(100% - 28px, 1080px);
    padding-top: 36px;
  }

  .environment {
    font-size: 0;
  }
}

