.viewport {
  --easing: cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  justify-content: center;
  align-items: center;

  margin: 0;
  padding: 24px;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Open Sans',
    'Helvetica Neue',
    sans-serif;
  font-size: 14px;
}

.field {
  --_field-height: 1.75rem;
  display: flex;
  width: 300px;
  max-width: 100%;
  border: 1px solid #ddd;
  height: var(--_field-height);
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.field:has(.input:focus) {
  outline: 1px solid dodgerblue;
  border-color: dodgerblue;
}

.input {
  all: unset;
  flex: 1 1 auto;
  height: 100%;
  vertical-align: center;
  padding: 0 0.5rem;
}

.toggle {
  all: unset;
  height: var(--_field-height);
  aspect-ratio: 1;
  flex: 0 0 var(--_field-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle:focus-visible {
  outline: 2px solid dodgerblue;
  outline-offset: -4px;
}
