* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
  background: #f9fafb;
}

.lab-header {
  padding: 24px;
  background: #fffbeb;
  border-bottom: 2px solid #fcd34d;
}

.lab-header h1 {
  margin: 8px 0 4px;
  font-size: 22px;
  color: #92400e;
}

.lab-header p {
  margin: 0;
  color: #6b7280;
}

.lab-header a {
  color: #b45309;
}

.lab-hub {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
}

.lab-links,
.lab-checklist {
  padding-left: 20px;
}

.lab-links li,
.lab-checklist li {
  margin-bottom: 8px;
}

.lab-links a {
  font-weight: 600;
  color: #b45309;
}

.lab-page-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 12px;
}

.lab-page-table th,
.lab-page-table td {
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.lab-page-table th {
  background: #fffbeb;
  color: #92400e;
}

.lab-form {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.lab-form label,
.lab-form fieldset {
  display: block;
  margin-bottom: 16px;
}

.lab-form label {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #374151;
}

.lab-form input,
.lab-form textarea,
.lab-form select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  font: inherit;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.lab-form fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px;
}

.lab-form legend {
  font-weight: 700;
  font-size: 12px;
  color: #92400e;
  padding: 0 4px;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.tag-grid input {
  margin-top: 0;
}

.materials-grid,
.variant-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.materials-grid input,
.variant-grid input {
  margin-top: 0;
}

.kv-grid {
  display: grid;
  gap: 8px;
}

.kv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.kv-row input {
  margin-top: 0;
}

.lab-advanced {
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  background: #fafafa;
}

.lab-advanced summary {
  cursor: pointer;
  font-weight: 600;
  color: #6b7280;
}

.lab-meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 16px;
}

button[data-action="mock-save"] {
  padding: 8px 16px;
  font: inherit;
  font-weight: 600;
  border: 1px solid #86efac;
  border-radius: 6px;
  background: #ecfdf5;
  color: #166534;
  cursor: pointer;
}

.edu-banner,
.edu-callout {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #fefce8;
  border: 1px solid #fde047;
  border-radius: 6px;
  font-size: 13px;
  color: #713f12;
  line-height: 1.55;
}

.edu-banner strong,
.edu-callout strong {
  color: #92400e;
}

.edu-hint {
  margin: 0 0 10px;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: #78716c;
  line-height: 1.5;
}

fieldset > .edu-hint:first-of-type {
  margin-top: 4px;
}

.edu-hint::before {
  content: "Tip: ";
  font-weight: 600;
  color: #a16207;
}

.lab-advanced .edu-hint {
  margin-bottom: 12px;
}

.test-checklist {
  margin: 20px 0 16px;
  padding: 14px 16px;
  background: #ecfdf5;
  border: 1px solid #86efac;
  border-radius: 8px;
  font-size: 13px;
  color: #14532d;
  line-height: 1.55;
}

.test-checklist h2 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #166534;
}

.test-checklist ol {
  margin: 0;
  padding-left: 1.25rem;
}

.test-checklist li {
  margin-bottom: 6px;
}

.test-checklist li:last-child {
  margin-bottom: 0;
}

.test-checklist strong {
  color: #15803d;
  font-weight: 600;
}

.test-checklist code {
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.6);
  padding: 1px 4px;
  border-radius: 3px;
}

.glossary-dl {
  margin: 0;
  display: grid;
  gap: 6px 12px;
  grid-template-columns: auto 1fr;
  font-size: 13px;
}

.glossary-dl dt {
  font-weight: 600;
  color: #92400e;
  margin: 0;
}

.glossary-dl dd {
  margin: 0;
  color: #6b7280;
  line-height: 1.5;
}
