/* Lab tool pages: the site's theme for the form markup the old tools use
   (.field/.label/.input/... and the is-* state classes their scripts toggle). */

.lab-hero {
  padding: 7rem 0 2rem;
}

.lab-hero h1 {
  max-width: 900px;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.lab-hero .subtitle {
  max-width: 760px;
  color: var(--muted);
}

.lab-hero .subtitle a,
.lab-tool .subtitle a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lab-hero .back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.lab-tool {
  padding-top: 0;
}

.lab-tool .container {
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 0 auto;
  max-width: none;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.lab-tool .container > * {
  max-width: 720px;
}

.lab-tool .title {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
}

.lab-tool .subtitle {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
}

.field {
  margin-bottom: 1.2rem;
}

.field.is-grouped {
  display: flex;
  gap: 0.6rem;
}

.label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.input,
.textarea,
.select select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #050c17;
  color: var(--text);
  font: 0.92rem var(--mono);
}

.textarea {
  min-height: 7rem;
  resize: vertical;
}

.select {
  position: relative;
}

.input:focus,
.textarea:focus,
.select select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.input.is-danger,
.textarea.is-danger,
.select.is-danger select {
  border-color: #ff8f8f;
}

.lab-tool .button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.lab-tool .button.is-primary {
  background: var(--accent);
  color: #04101d;
}

.lab-tool .button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.notification {
  margin-bottom: 1.2rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: rgba(141, 215, 255, 0.07);
}

.notification.is-danger {
  border-left-color: #ff8f8f;
  background: rgba(255, 143, 143, 0.08);
  color: #ffd2d2;
}

.notification.is-warning {
  border-left-color: #febc2e;
  background: rgba(254, 188, 46, 0.08);
}

.is-hidden {
  display: none !important;
}
