:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18212f;
  background: #f4f6f8;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.topbar {
  min-height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #ffffff;
  border-bottom: 1px solid #dde3ea;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #465465;
  font-weight: 650;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto;
}

.narrow {
  width: min(620px, calc(100% - 32px));
}

.panel,
.card {
  background: #ffffff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.panel {
  padding: 28px;
}

.hero {
  padding: 36px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #53657a;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0 0 12px;
  line-height: 1.15;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 20px;
}

p {
  line-height: 1.65;
}

.actions,
.lab-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #2f6feb;
  border-radius: 6px;
  background: #2f6feb;
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  color: #2f6feb;
  background: #ffffff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.card {
  padding: 20px;
}

.form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c8d2df;
  border-radius: 6px;
  padding: 11px 12px;
  font: inherit;
  background: #ffffff;
}

.result {
  min-height: 120px;
  overflow: auto;
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: #111827;
  color: #d1fae5;
  white-space: pre-wrap;
}

.table {
  display: grid;
  gap: 10px;
}

.table div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 14px;
  border: 1px solid #dde3ea;
  border-radius: 8px;
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .grid,
  .table div {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 30px;
  }
}
