:root {
  --bg: #f6f8fa;
  --card: #fff;
  --accent: #0067c5;
  --muted: #6b7280;

  --spacing: 0.25rem;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: #111;
  margin: 0;
  padding: 24px;
  /* reserve space for the fixed classification bars */
  padding-top: calc(24px + 32px);
  padding-bottom: calc(24px + 32px);
}

.classification {
  display: block;
  unicode-bidi: isolate;
  text-align: center;

  color: #fff;
  font-size: 16px;
  left: 0;
  right: 0;
  flex-shrink: 0;
  background: oklch(72.3% .219 149.579);
  z-index: 20;
  font-weight: 400;
  padding: calc(var(--spacing) * 0);
  -webkit-font-smoothing: antialiased;
  height: calc(var(--spacing) * 8);

  position: fixed;
}

header.classification { top: 0 }
footer.classification { bottom: 0 }

.container {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.06);
}

h1 {
  margin: 0 0 14px;
  font-size: 20px;
}

button {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.notes {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.notes code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Prevent horizontal overflow on narrow screens */
h1,
.notes {
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  min-width: 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .container {
    padding: 14px;
  }

  button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .feedback {
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
}

.feedback {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.feedback button {
  background: #e5e7eb;
  color: #111;
  border: 1px solid #d1d5db;
}