:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  color: #1f2937;
  background: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f8fafc;
}

.site-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1.25rem;
}

.site-header__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-title {
  margin: 0;
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: #1f2937;
  text-decoration: none;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  font-size: 0.95rem;
}

.site-nav a[aria-current="page"] {
  border-color: #2563eb;
  color: #2563eb;
  font-weight: 600;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.card h2 {
  margin-top: 0;
}

.status {
  margin: 0.5rem 0 0;
  color: #374151;
  font-size: 0.95rem;
}

.status--error {
  color: #b91c1c;
}

.status--ok {
  color: #065f46;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  margin-top: 1.5rem;
  padding-top: 1rem;
  color: #6b7280;
  font-size: 0.9rem;
}

ul,
ol {
  padding-left: 1.2rem;
}


.playground__presets {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.playground__presets button {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #1f2937;
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.playground__presets button[aria-pressed='true'] {
  border-color: #2563eb;
  color: #2563eb;
  font-weight: 600;
}

.playground__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.playground__controls button {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.playground__controls button[data-playground-reset] {
  background: #fff;
  color: #1f2937;
  border-color: #d1d5db;
}

.playground__layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
}

.playground__editors {
  display: grid;
  gap: 0.8rem;
}

.playground__editors label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.playground__editors textarea {
  width: 100%;
  min-height: 150px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

.playground__preview-wrap h3 {
  margin-top: 0;
}

.playground__preview-wrap iframe {
  width: 100%;
  min-height: 580px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
}

@media (max-width: 900px) {
  .playground__layout {
    grid-template-columns: 1fr;
  }

  .playground__preview-wrap iframe {
    min-height: 360px;
  }
}

.work-items {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.work-items__item {
  display: grid;
  gap: 0.2rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  padding: 0.65rem;
}

.work-items__meta {
  font-size: 0.9rem;
  color: #4b5563;
}

.work-items__badge {
  justify-self: start;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #065f46;
  border: 1px solid #6ee7b7;
  background: #ecfdf5;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}
