/* Mobile corrections discovered during the authenticated production audit (#54). */
.desk-filters .test-data-filter input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--saffron);
}

.directory-head-actions {
  display: grid;
  justify-items: end;
  gap: .65rem;
}

.directory-create-link {
  text-align: center;
  text-decoration: none;
}

.directory-create {
  scroll-margin-top: 1rem;
}

.dashboard-head {
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
  padding-bottom: 1.4rem;
}

.dashboard-head h1 {
  max-width: 900px;
  margin: .35rem 0 .7rem;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -.05em;
  overflow-wrap: anywhere;
}

.dashboard-head p:last-child {
  margin: 0;
  color: var(--muted);
}

.detail-card {
  margin-bottom: 1rem;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.detail-card h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.detail-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  align-items: end;
  gap: 1rem;
}

.detail-form label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .45rem;
  margin: 0;
  font-size: .82rem;
  font-weight: 800;
}

.detail-form input,
.detail-form select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: .75rem .85rem;
  border: 1px solid #cbd3df;
  border-radius: 9px;
  background: #fff;
}

.detail-form input:disabled,
.detail-form select:disabled {
  color: var(--muted);
  background: #f0f2f5;
}

.detail-form input:focus,
.detail-form select:focus {
  border-color: var(--saffron);
  outline: 3px solid #f59e0b44;
}

.detail-form label small {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 500;
  line-height: 1.4;
}

.detail-form .primary {
  min-height: 46px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 980px) {
  .directory-create {
    order: initial;
  }
}

@media (max-width: 620px) {
  .directory-head-actions {
    justify-items: start;
  }
}

@media (max-width: 520px) {
  .profile-ledger dl {
    grid-template-columns: 1fr;
  }

  .detail-form {
    grid-template-columns: 1fr;
  }
}
