:root {
  --accent: #155e75;
  --accent-strong: #164e63;
  --accent-soft: #e0f2fe;
  --info: #0369a1;
  --info-soft: #e0f2fe;
}

.brand::before {
  background: linear-gradient(135deg, #155e75, #16a34a);
}

.task-dynamic-fields {
  margin-top: 0.75rem;
  border: none;
  padding: 0;
}

.task-dynamic-fields legend {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.task-dynamic-fields-inner {
  display: grid;
  gap: 0.5rem;
}

.task-dynamic-field {
  display: grid;
  gap: 0.25rem;
}

.task-dynamic-field span {
  font-size: 0.85rem;
}

.task-dynamic-field input,
.task-dynamic-field select {
  width: 100%;
}

.task-dynamic-group {
  border: 1px solid var(--border-color, #d4d4d8);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.task-dynamic-group legend {
  font-size: 0.85rem;
  color: var(--muted-color, #71717a);
}

.stock-lookup-result {
  display: block;
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.stock-lookup-result.hidden {
  display: none;
}

.stock-lookup-result.loading {
  color: var(--muted-color, #71717a);
}

.stock-lookup-result.valid {
  color: #15803d;
}

.stock-lookup-result.valid strong {
  color: #166534;
}

.stock-lookup-result.invalid {
  color: #dc2626;
}

.auth-shell-split {
  background: #fff;
  border: 1px solid #d7e2ee;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgb(15 23 42 / 0.14);
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1fr);
  margin: 28px auto 40px;
  max-width: 1040px;
  min-height: min(680px, calc(100vh - 170px));
  overflow: hidden;
  place-items: stretch;
  width: min(100%, calc(100vw - 44px));
}

.auth-brand {
  align-items: flex-start;
  background: #063b2e;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  padding: 56px;
}

.auth-brand h2 {
  align-self: stretch;
  font-size: 2rem;
  line-height: 1.1;
  margin: 0;
  text-align: center;
}

.auth-brand .muted {
  align-self: stretch;
  color: rgb(255 255 255 / 0.72);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
  max-width: none;
  text-align: center;
}

.auth-logo {
  display: grid;
  place-items: start;
}

.auth-logo img {
  height: 300px;
  object-fit: contain;
  width: auto;
}

.auth-form {
  align-items: center;
  background: #fff;
  display: flex;
  justify-content: center;
  padding: 64px;
}

.auth-form-inner {
  display: grid;
  gap: 24px;
  max-width: 360px;
  width: 100%;
}

.auth-form-inner h1 {
  font-size: 2.2rem;
  line-height: 1.1;
  margin: 0;
}

.auth-form-inner .muted {
  margin: 6px 0 0;
}

.auth-form .fields {
  width: 100%;
}

@media (max-width: 720px) {
  .auth-shell-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    margin: 16px auto 28px;
    min-height: auto;
    width: min(100%, calc(100vw - 28px));
  }

  .auth-brand {
    padding: 32px;
  }

  .auth-logo img {
    height: 160px;
  }

  .auth-form {
    padding: 32px;
  }
}
