:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.login-page {
  background: #e9eef3;
  color: #111827;
  min-height: 100vh;
}

.login-panorama {
  background: url("../img/24sea-login-3000x600.8ab3ba6364fd.webp") center top / 100% auto no-repeat;
  height: max(12rem, 20vw);
  inset: 0 0 auto;
  position: fixed;
}

.login-main {
  align-items: flex-start;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: max(7rem, 12vw) 1rem 3rem;
  position: relative;
}

.login-card {
  backdrop-filter: blur(18px);
  background: rgb(255 255 255 / 76%);
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 11px;
  box-shadow: 0 24px 70px rgb(15 23 42 / 20%);
  max-width: 460px;
  padding: 30px;
  width: 100%;
}

.login-logo {
  display: block;
  height: 48px;
  object-fit: contain;
  object-position: left center;
  width: 152px;
}

.login-eyebrow {
  color: #486176;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 1.75rem 0 0.35rem;
  text-transform: uppercase;
}

.login-card h1 {
  font-size: 1.65rem;
  letter-spacing: -0.025em;
  margin: 0;
}

.login-copy,
.login-help {
  color: #52606d;
  line-height: 1.5;
}

.login-copy {
  margin: 0.75rem 0 1.4rem;
}

.login-help {
  font-size: 0.78rem;
  margin: 1rem 0 0;
  text-align: center;
}

.microsoft-login {
  align-items: center;
  background: #202933;
  border: 1px solid #202933;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 650;
  gap: 0.75rem;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1rem;
  width: 100%;
}

.microsoft-login:hover,
.microsoft-login:focus-visible {
  background: #111827;
  outline: 2px solid #4dbefd;
  outline-offset: 2px;
}

.microsoft-mark {
  background: conic-gradient(from 90deg at 50% 50%, #7fba00 0 25%, #ffb900 0 50%, #f25022 0 75%, #00a4ef 0);
  display: inline-block;
  height: 18px;
  width: 18px;
}

.login-messages {
  background: #fff4d6;
  border: 1px solid #e4b84d;
  border-radius: 6px;
  color: #573f00;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.6rem 0.75rem;
}

.login-messages p {
  margin: 0;
}

.playground-page {
  --playground-primary: #18376a;
  --playground-text: #212529;
  --playground-muted: #4e5861;
  --playground-subtle: #9ca3af;
  --playground-background: #fff;
  --playground-canvas: #ebeef5;
  --playground-border: hsl(218 32% 78% / 50%);
  --playground-card: #fff;
  background: var(--playground-background);
  color: var(--playground-text);
  font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

[data-theme="dark"] .playground-page {
  --playground-primary: #4dbefd;
  --playground-text: #f5f7fa;
  --playground-muted: #adb5bd;
  --playground-subtle: #7b8490;
  --playground-background: #212529;
  --playground-canvas: #1a212d;
  --playground-border: hsl(218 26% 36% / 55%);
  --playground-card: #343a40;
}

.playground-page h1,
.playground-page h2,
.playground-page h3 {
  color: var(--playground-text);
  font-family: "Roboto Slab", Georgia, serif;
}

.playground-page a {
  color: inherit;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
}

.playground-nav {
  align-items: center;
  background: var(--playground-background);
  border-bottom: 1px solid var(--playground-border);
  display: flex;
  height: 88px;
  inset: 0 0 auto;
  justify-content: space-between;
  padding: 0.35rem 0.75rem;
  position: fixed;
  z-index: 50;
}

.playground-brand {
  align-items: center;
  display: inline-flex;
}

.playground-brand img {
  height: 56px;
  object-fit: contain;
  width: auto;
}

.playground-nav-actions {
  align-items: center;
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  gap: 0.25rem;
}

.playground-nav-actions > a,
.playground-sign-out {
  background: transparent;
  border: 0;
  border-radius: 0.375rem;
  color: var(--playground-text);
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
}

.playground-nav-actions > a:hover,
.playground-sign-out:hover {
  background: color-mix(in srgb, var(--playground-text) 7%, transparent);
}

.playground-theme-switch {
  align-items: center;
  background: color-mix(in srgb, var(--playground-canvas) 72%, var(--playground-background));
  border: 1px solid var(--playground-border);
  border-radius: 999px;
  display: inline-grid;
  gap: 2px;
  grid-template-columns: repeat(3, 1fr);
  margin-left: 0.5rem;
  min-height: 32px;
  padding: 2px;
}

.playground-theme-switch button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--playground-muted);
  cursor: pointer;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.playground-theme-switch button.active {
  background: var(--playground-background);
  box-shadow: 0 1px 4px rgb(24 55 106 / 14%);
  color: var(--playground-primary);
}

.playground-theme-switch svg,
.playground-sidebar-links svg,
.playground-search svg,
.playground-section summary svg {
  height: 1.125rem;
  stroke-width: 1.5;
  width: 1.125rem;
}

.playground-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: calc(100vh - 88px);
  padding-top: 88px;
}

.playground-sidebar {
  background: var(--playground-canvas);
  border-right: 1px solid var(--playground-border);
  min-height: calc(100vh - 88px);
  min-width: 300px;
  width: 300px;
}

.playground-sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: calc(100vh - 88px);
  padding: 2rem 1.25rem;
}

.playground-sidebar-icon {
  align-self: center;
  color: var(--playground-primary);
  height: 88px;
  stroke-width: 2;
  width: 88px;
}

.playground-sidebar-copy {
  display: grid;
  gap: 0.65rem;
  text-align: center;
}

.playground-sidebar-copy h1 {
  font-family: "Barlow", sans-serif;
  font-size: 1.25rem;
  margin: 0;
}

.playground-sidebar-copy p {
  color: var(--playground-muted);
  font-size: 0.95rem;
  margin: 0;
}

.playground-search {
  position: relative;
}

.playground-search svg {
  color: var(--playground-subtle);
  left: 1rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.playground-search input {
  background: var(--playground-background);
  border: 1px solid var(--playground-border);
  border-radius: 0.45rem;
  color: var(--playground-text);
  font: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.85rem 0.6rem 2.75rem;
  width: 100%;
}

.playground-sidebar-links {
  margin-top: auto;
}

.playground-sidebar-links a {
  align-items: center;
  background: var(--playground-background);
  border: 1px solid var(--playground-border);
  border-radius: 0.45rem;
  display: flex;
  font-weight: 700;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0 0.95rem;
  text-decoration: none;
}

.playground-results {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 88px);
  min-width: 0;
  padding: 2rem;
}

.playground-results-header {
  align-items: flex-end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.playground-results-header h2 {
  color: var(--playground-muted);
  font-family: "Barlow", sans-serif;
  font-size: 0.98rem;
  margin: 0;
}

.playground-results-header p {
  color: var(--playground-subtle);
  font-size: 0.9rem;
  margin: 0;
}

.playground-section summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  justify-content: space-between;
  list-style: none;
  min-height: 48px;
  padding: 0.5rem 0;
}

.playground-section summary::-webkit-details-marker {
  display: none;
}

.playground-section summary > span:first-child {
  align-items: center;
  display: inline-flex;
  gap: 0.4rem;
}

.playground-section[open] summary svg {
  transform: rotate(90deg);
}

.playground-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  padding: 0.5rem 0 1rem;
}

.playground-app-card {
  color: inherit;
  display: block;
  max-width: 300px;
  text-decoration: none;
}

.playground-app-card article {
  background: var(--playground-card);
  border: 1px solid var(--playground-border);
  border-radius: 0.5rem;
  box-shadow: 0 10px 28px rgb(24 55 106 / 6%);
  height: 100%;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.playground-app-card:hover article,
.playground-app-card:focus-visible article {
  border-color: var(--playground-primary);
  box-shadow: 0 18px 42px rgb(24 55 106 / 12%);
  transform: translateY(-2px);
}

.playground-app-card header {
  background: var(--playground-canvas);
  border-bottom: 1px solid var(--playground-border);
  padding: 0.85rem 1rem;
}

.playground-app-card h3 {
  font-size: 1.125rem;
  margin: 0;
}

.playground-app-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

.playground-app-identity {
  align-items: center;
  display: flex;
  min-height: 3rem;
}

.playground-app-identity code {
  color: var(--playground-subtle);
  font-family: "Courier Prime", monospace;
  overflow-wrap: anywhere;
}

.playground-badge {
  align-self: flex-start;
  background: #18376a;
  border-radius: 0.35rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
}

.playground-app-card p {
  color: var(--playground-muted);
  line-height: 1.5;
  margin: 0;
}

.playground-app-action {
  color: var(--playground-subtle);
  font-size: 0.875rem;
  margin-top: auto;
}

.playground-empty {
  color: var(--playground-muted);
  padding: 3rem 1rem;
  text-align: center;
}

.playground-footer {
  border-top: 1px solid var(--playground-border);
  margin-top: auto;
  padding-top: 2rem;
  text-align: center;
}

.playground-footer nav {
  border-bottom: 1px solid var(--playground-border);
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  padding-bottom: 1rem;
}

.playground-footer a {
  color: var(--playground-muted);
}

.playground-footer p {
  color: var(--playground-muted);
  font-size: 0.8rem;
  margin: 1rem 0 0;
}

@media (prefers-color-scheme: dark) {
  .login-page {
    background: #111820;
    color: #f3f4f6;
  }

  .login-card {
    background: rgb(25 33 42 / 84%);
    border-color: rgb(255 255 255 / 13%);
  }

  .login-eyebrow,
  .login-copy,
  .login-help {
    color: #c5ced8;
  }
}

@media (max-width: 600px) {
  .login-main {
    padding-top: 6rem;
  }

  .playground-shell {
    grid-template-columns: 1fr;
  }

  .playground-nav {
    padding: 0 1rem;
  }

  .playground-brand img {
    height: 46px;
  }

  .playground-nav-actions > a {
    display: none;
  }

  .playground-sign-out {
    padding-inline: 0.5rem;
  }

  .playground-sidebar {
    min-height: auto;
    min-width: 0;
    width: 100%;
  }

  .playground-sidebar-content {
    min-height: auto;
    padding: 1.5rem 1rem;
  }

  .playground-sidebar-icon {
    height: 64px;
    width: 64px;
  }

  .playground-sidebar-links {
    margin-top: 0;
  }

  .playground-results {
    min-height: auto;
    padding: 1rem;
  }

  .playground-results-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .playground-app-card {
    max-width: none;
  }
}
