.tool-card__desc--help {
  margin-top: 12px;
}

.field-group {
  min-width: 0;
}

select {
  width: 100%;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font: inherit;
  font-size: 0.9375rem;
  padding: 14px 16px;
  min-height: 52px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select:focus {
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-sys-color-primary) 22%, transparent);
}

.tool-actions {
  margin-top: 18px;
}

.camera-preview {
  position: relative;
  overflow: hidden;
  border-radius: var(--md-sys-shape-corner-large);
  background: #111827;
  border: 1px solid var(--md-sys-color-outline-variant);
  aspect-ratio: 16 / 9;
}

.camera-preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111827;
}

.camera-preview__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
  text-align: center;
  line-height: 1.6;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(31, 41, 55, 0.96));
}

.result-summary {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  color: var(--md-sys-color-on-surface);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.capture-result {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--md-sys-shape-corner-large);
  background: color-mix(in srgb, var(--md-sys-color-surface) 72%, var(--md-sys-color-surface-variant));
  border: 1px solid var(--md-sys-color-outline-variant);
}

.capture-result__title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
}

.capture-result img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
}

.capture-result__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.tool-help h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
}

@media (max-width: 600px) {
  select {
    min-height: 48px;
    padding: 12px 10px;
    font-size: 0.875rem;
  }

  .tool-actions {
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .camera-preview {
    aspect-ratio: 4 / 3;
  }}
