:root {
  color-scheme: light;
  --ink: #073f37;
  --muted: #657b76;
  --green: #007a6a;
  --green-dark: #005f53;
  --orange: #ed5b24;
  --paper: #faf9f4;
  --surface: rgba(255, 255, 255, 0.9);
  --line: rgba(7, 63, 55, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 6% 100%, rgba(0, 168, 173, 0.12), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(237, 91, 36, 0.045), transparent 30%),
    var(--paper);
}

body::before {
  position: fixed;
  z-index: -1;
  top: 20%;
  left: -22vw;
  width: 64vw;
  height: 28vw;
  border: 1px solid rgba(7, 63, 55, 0.055);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: rotate(-7deg);
}

a {
  color: inherit;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-rows: auto 1fr auto;
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 126px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.session-chip {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 600;
}

.session-dot {
  width: 9px;
  height: 9px;
  border: 2px solid white;
  border-radius: 50%;
  background: #1e9b68;
  box-shadow: 0 0 0 2px rgba(30, 155, 104, 0.16);
}

main {
  align-self: center;
  width: 100%;
  padding: clamp(24px, 5vh, 52px) 0;
}

.workspace-head {
  margin-bottom: clamp(20px, 3.5vh, 32px);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-head {
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.app-card {
  display: flex;
  min-height: 142px;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(10, 70, 61, 0.055);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.app-card:hover,
.app-card:focus-visible {
  border-color: rgba(0, 122, 106, 0.52);
  box-shadow: 0 18px 42px rgba(6, 69, 59, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.app-card:focus-visible {
  box-shadow: 0 0 0 4px rgba(0, 122, 106, 0.16), 0 18px 42px rgba(6, 69, 59, 0.12);
}

.app-card--vendor {
  border-color: rgba(35, 28, 10, 0.18);
  background: rgba(255, 255, 255, 0.96);
}

.app-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
}

.app-icon--orange {
  background: linear-gradient(145deg, #f17b31, var(--orange));
}

.app-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.vendor-logo {
  display: flex;
  height: 48px;
  align-items: center;
}

.vendor-logo img {
  display: block;
  width: min(174px, 100%);
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
}

.app-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.app-kind {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.app-name {
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.app-description {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

footer {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

@media (max-width: 720px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-card {
    min-height: 132px;
  }
}

@media (max-width: 580px) {
  .page-shell {
    width: min(100% - 28px, 520px);
  }

  .topbar {
    min-height: 72px;
  }

  .brand img {
    width: 108px;
    height: 50px;
  }

  .session-chip {
    min-width: 40px;
    justify-content: center;
    padding: 8px;
  }

  .session-chip span:last-child {
    display: none;
  }

  main {
    align-self: start;
    padding: 24px 0 30px;
  }

  h1 {
    font-size: 2rem;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 112px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  .vendor-logo {
    width: 126px;
    flex: 0 0 auto;
  }

  .vendor-logo img {
    width: 122px;
  }

  footer {
    min-height: 66px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
  }
}

@media (min-width: 941px) and (min-height: 620px) {
  body {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
