.smile-dialog {
  max-width: 780px;
}
.smile-dialog form,
.smile-dialog label {
  display: grid;
  gap: 10px;
}
.smile-dialog form {
  gap: 16px;
  margin-block: 18px;
}
.smile-dialog .check-row {
  display: flex;
  align-items: start;
}
.smile-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-block: 20px;
}
.smile-tabs button {
  flex: 1;
  font-size: 0.85rem;
  padding: 10px;
  min-width: 130px;
}
.smile-tabs [aria-pressed="true"] {
  border-color: var(--accent, #57abff);
  color: var(--accent, #57abff);
}
.smile-map {
  display: grid;
  gap: 22px;
  padding: 18px 0;
}
.smile-jaw {
  display: grid;
  grid-template-columns: repeat(var(--teeth), minmax(0, 1fr));
  gap: 3px;
}
.smile-tooth {
  padding: 14px 0;
  border: 1px solid #526175;
  border-radius: 9px 9px 16px 16px;
  background: transparent;
  color: inherit;
  font-size: clamp(9px, 2.4vw, 15px);
  min-width: 0;
}
.smile-tooth.noted {
  background: #9a551b;
  color: white;
}
.smile-tooth.clinical {
  background: #235b9a;
  color: white;
}
.smile-tooth.done {
  background: #227056;
  color: white;
}
.smile-tooth[aria-pressed="true"] {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}
.smile-item,
.smile-total {
  padding: 18px;
  border: 1px solid var(--border, #3a4759);
  border-radius: 14px;
  margin-block: 14px;
  overflow-wrap: anywhere;
}
.smile-dialog details {
  margin-block: 16px;
}
.smile-dialog summary {
  cursor: pointer;
  font-weight: 600;
}
.smile-dialog h3 {
  font-size: 1rem;
}
.smile-dialog .clinical-text {
  white-space: pre-wrap;
}
.owner-role-user {
  border-bottom: 1px solid #526175;
  padding-block: 16px;
}
.owner-role-user form {
  display: grid;
  gap: 12px;
}
.owner-role-user input,
.owner-role-user select {
  max-width: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  #main > section,
  #main > .page-head {
    animation: dental-appear 0.18s ease-out;
  }
  dialog[open] {
    animation: dental-appear 0.18s ease-out;
  }
  button,
  .button {
    transition:
      background-color 0.16s,
      border-color 0.16s,
      box-shadow 0.16s;
  }
  .progress-track span {
    transition: width 0.2s ease-out;
  }
  @keyframes dental-appear {
    from {
      opacity: 0;
      translate: 0 5px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
